|
|
|
@ -1,272 +1,279 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
|
|
<el-form-item label="轮胎厂编码" prop="tyreFacCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.tyreFacCode"
|
|
|
|
|
placeholder="请输入轮胎厂编码"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.tyreFacCode"
|
|
|
|
|
placeholder="请输入轮胎厂编码"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="企业编码" prop="companyCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.companyCode"
|
|
|
|
|
placeholder="请输入企业编码"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.companyCode"
|
|
|
|
|
placeholder="请输入企业编码"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="车牌号" prop="carLicense">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.carLicense"
|
|
|
|
|
placeholder="请输入车牌号"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.carLicense"
|
|
|
|
|
placeholder="请输入车牌号"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="轮胎编号" prop="tureCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.tureCode"
|
|
|
|
|
placeholder="请输入轮胎编号"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.tureCode"
|
|
|
|
|
placeholder="请输入轮胎编号"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="RFID" prop="tyreRfid">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.tyreRfid"
|
|
|
|
|
placeholder="请输入RFID"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.tyreRfid"
|
|
|
|
|
placeholder="请输入RFID"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="轮位" prop="tyrePosition">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.tyrePosition"
|
|
|
|
|
placeholder="请输入轮位"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.tyrePosition"
|
|
|
|
|
placeholder="请输入轮位"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="当前轮胎传感器ID" prop="sensorId">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.sensorId"
|
|
|
|
|
placeholder="请输入当前轮胎传感器ID"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.sensorId"
|
|
|
|
|
placeholder="请输入当前轮胎传感器ID"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="当前花纹深度" prop="currentTextureDepth">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.currentTextureDepth"
|
|
|
|
|
placeholder="请输入当前花纹深度"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.currentTextureDepth"
|
|
|
|
|
placeholder="请输入当前花纹深度"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="状态" prop="state">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.state"
|
|
|
|
|
placeholder="请输入状态"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.state"
|
|
|
|
|
placeholder="请输入状态"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="是否删除" prop="isDelete">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.isDelete"
|
|
|
|
|
placeholder="请输入是否删除"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.isDelete"
|
|
|
|
|
placeholder="请输入是否删除"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="创建者姓名" prop="createName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.createName"
|
|
|
|
|
placeholder="请输入创建者姓名"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.createName"
|
|
|
|
|
placeholder="请输入创建者姓名"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="修改时间" prop="modifyTime">
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
v-model="queryParams.modifyTime"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
placeholder="请选择修改时间">
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
v-model="queryParams.modifyTime"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
placeholder="请选择修改时间">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="修改者账号" prop="modifyBy">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.modifyBy"
|
|
|
|
|
placeholder="请输入修改者账号"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.modifyBy"
|
|
|
|
|
placeholder="请输入修改者账号"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="编辑者姓名" prop="modifyName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.modifyName"
|
|
|
|
|
placeholder="请输入编辑者姓名"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
v-model="queryParams.modifyName"
|
|
|
|
|
placeholder="请输入编辑者姓名"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="Search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
<el-button icon="Refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
icon="Plus"
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:add']"
|
|
|
|
|
>新增</el-button>
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
icon="Plus"
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:add']"
|
|
|
|
|
>新增
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="success"
|
|
|
|
|
plain
|
|
|
|
|
icon="Edit"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
type="success"
|
|
|
|
|
plain
|
|
|
|
|
icon="Edit"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:edit']"
|
|
|
|
|
>修改
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="danger"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
type="danger"
|
|
|
|
|
plain
|
|
|
|
|
icon="Delete"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:remove']"
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="Download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:export']"
|
|
|
|
|
>导出
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="basetyreList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column label="轮胎厂编码" align="center" prop="tyreFacCode" />
|
|
|
|
|
<el-table-column label="企业编码" align="center" prop="companyCode" />
|
|
|
|
|
<el-table-column label="车辆ID" align="center" prop="carId" />
|
|
|
|
|
<el-table-column label="车牌号" align="center" prop="carLicense" />
|
|
|
|
|
<el-table-column label="轮胎编号" align="center" prop="tureCode" />
|
|
|
|
|
<el-table-column label="轮胎型号" align="center" prop="tureModel" />
|
|
|
|
|
<el-table-column label="轮胎型号表ID" align="center" prop="tureModelId" />
|
|
|
|
|
<el-table-column label="品牌ID" align="center" prop="tureBrandId" />
|
|
|
|
|
<el-table-column label="RFID" align="center" prop="tyreRfid" />
|
|
|
|
|
<el-table-column label="轮位" align="center" prop="tyrePosition" />
|
|
|
|
|
<el-table-column label="当前轮胎传感器ID" align="center" prop="sensorId" />
|
|
|
|
|
<el-table-column label="当前花纹深度" align="center" prop="currentTextureDepth" />
|
|
|
|
|
<el-table-column label="状态" align="center" prop="state" />
|
|
|
|
|
<el-table-column label="是否删除" align="center" prop="isDelete" />
|
|
|
|
|
<el-table-column label="创建者ID" align="center" prop="createId" />
|
|
|
|
|
<el-table-column label="创建者姓名" align="center" prop="createName" />
|
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
|
<el-table-column label="轮胎厂编码" align="center" prop="tyreFacCode"/>
|
|
|
|
|
<el-table-column label="企业编码" align="center" prop="companyCode"/>
|
|
|
|
|
<el-table-column label="车辆ID" align="center" prop="carId"/>
|
|
|
|
|
<el-table-column label="车牌号" align="center" prop="carLicense"/>
|
|
|
|
|
<el-table-column label="轮胎编号" align="center" prop="tureCode"/>
|
|
|
|
|
<el-table-column label="轮胎型号" align="center" prop="tureModel"/>
|
|
|
|
|
<el-table-column label="轮胎型号表ID" align="center" prop="tureModelId"/>
|
|
|
|
|
<el-table-column label="品牌ID" align="center" prop="tureBrandId"/>
|
|
|
|
|
<el-table-column label="RFID" align="center" prop="tyreRfid"/>
|
|
|
|
|
<el-table-column label="轮位" align="center" prop="tyrePosition"/>
|
|
|
|
|
<el-table-column label="当前轮胎传感器ID" align="center" prop="sensorId"/>
|
|
|
|
|
<el-table-column label="当前花纹深度" align="center" prop="currentTextureDepth"/>
|
|
|
|
|
<el-table-column label="状态" align="center" prop="state"/>
|
|
|
|
|
<el-table-column label="是否删除" align="center" prop="isDelete"/>
|
|
|
|
|
<el-table-column label="创建者ID" align="center" prop="createId"/>
|
|
|
|
|
<el-table-column label="创建者姓名" align="center" prop="createName"/>
|
|
|
|
|
<el-table-column label="修改时间" align="center" prop="modifyTime" width="180">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.modifyTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="修改者ID" align="center" prop="modifyId" />
|
|
|
|
|
<el-table-column label="修改者账号" align="center" prop="modifyBy" />
|
|
|
|
|
<el-table-column label="编辑者姓名" align="center" prop="modifyName" />
|
|
|
|
|
<el-table-column label="修改者ID" align="center" prop="modifyId"/>
|
|
|
|
|
<el-table-column label="修改者账号" align="center" prop="modifyBy"/>
|
|
|
|
|
<el-table-column label="编辑者姓名" align="center" prop="modifyName"/>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:edit']"
|
|
|
|
|
>修改
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['basetyre:basetyre:remove']"
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
:total="total"
|
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
:total="total"
|
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改轮胎基础信息对话框 -->
|
|
|
|
|
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
|
<el-form-item label="轮胎厂编码" prop="tyreFacCode">
|
|
|
|
|
<el-input v-model="form.tyreFacCode" placeholder="请输入轮胎厂编码" />
|
|
|
|
|
<el-input v-model="form.tyreFacCode" placeholder="请输入轮胎厂编码"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="企业编码" prop="companyCode">
|
|
|
|
|
<el-input v-model="form.companyCode" placeholder="请输入企业编码" />
|
|
|
|
|
<el-input v-model="form.companyCode" placeholder="请输入企业编码"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="车牌号" prop="carLicense">
|
|
|
|
|
<el-input v-model="form.carLicense" placeholder="请输入车牌号" />
|
|
|
|
|
<el-input v-model="form.carLicense" placeholder="请输入车牌号"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="轮胎编号" prop="tureCode">
|
|
|
|
|
<el-input v-model="form.tureCode" placeholder="请输入轮胎编号" />
|
|
|
|
|
<el-input v-model="form.tureCode" placeholder="请输入轮胎编号"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="RFID" prop="tyreRfid">
|
|
|
|
|
<el-input v-model="form.tyreRfid" placeholder="请输入RFID" />
|
|
|
|
|
<el-input v-model="form.tyreRfid" placeholder="请输入RFID"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="轮位" prop="tyrePosition">
|
|
|
|
|
<el-input v-model="form.tyrePosition" placeholder="请输入轮位" />
|
|
|
|
|
<el-input v-model="form.tyrePosition" placeholder="请输入轮位"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="当前轮胎传感器ID" prop="sensorId">
|
|
|
|
|
<el-input v-model="form.sensorId" placeholder="请输入当前轮胎传感器ID" />
|
|
|
|
|
<el-input v-model="form.sensorId" placeholder="请输入当前轮胎传感器ID"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="当前花纹深度" prop="currentTextureDepth">
|
|
|
|
|
<el-input v-model="form.currentTextureDepth" placeholder="请输入当前花纹深度" />
|
|
|
|
|
<el-input v-model="form.currentTextureDepth" placeholder="请输入当前花纹深度"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="状态" prop="state">
|
|
|
|
|
<el-input v-model="form.state" placeholder="请输入状态" />
|
|
|
|
|
<el-input v-model="form.state" placeholder="请输入状态"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="是否删除" prop="isDelete">
|
|
|
|
|
<el-input v-model="form.isDelete" placeholder="请输入是否删除" />
|
|
|
|
|
<el-input v-model="form.isDelete" placeholder="请输入是否删除"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="创建者姓名" prop="createName">
|
|
|
|
|
<el-input v-model="form.createName" placeholder="请输入创建者姓名" />
|
|
|
|
|
<el-input v-model="form.createName" placeholder="请输入创建者姓名"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="修改时间" prop="modifyTime">
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
v-model="form.modifyTime"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
placeholder="请选择修改时间">
|
|
|
|
|
v-model="form.modifyTime"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
placeholder="请选择修改时间">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="修改者账号" prop="modifyBy">
|
|
|
|
|
<el-input v-model="form.modifyBy" placeholder="请输入修改者账号" />
|
|
|
|
|
<el-input v-model="form.modifyBy" placeholder="请输入修改者账号"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="编辑者姓名" prop="modifyName">
|
|
|
|
|
<el-input v-model="form.modifyName" placeholder="请输入编辑者姓名" />
|
|
|
|
|
<el-input v-model="form.modifyName" placeholder="请输入编辑者姓名"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
@ -278,7 +285,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listBasetyre, getBasetyre, delBasetyre, addBasetyre, updateBasetyre } from "@/api/basetyre/basetyre";
|
|
|
|
|
import {addBasetyre, delBasetyre, getBasetyre, listBasetyre, updateBasetyre} from "@/api/basetyre/basetyre";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Basetyre",
|
|
|
|
@ -330,8 +337,7 @@ export default {
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {
|
|
|
|
|
}
|
|
|
|
|
rules: {}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -394,7 +400,7 @@ export default {
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
|
this.single = selection.length!==1
|
|
|
|
|
this.single = selection.length !== 1
|
|
|
|
|
this.multiple = !selection.length
|
|
|
|
|
},
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
@ -437,12 +443,13 @@ export default {
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
|
this.$modal.confirm('是否确认删除轮胎基础信息编号为"' + ids + '"的数据项?').then(function() {
|
|
|
|
|
this.$modal.confirm('是否确认删除轮胎基础信息编号为"' + ids + '"的数据项?').then(function () {
|
|
|
|
|
return delBasetyre(ids);
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
handleExport() {
|
|
|
|
|