|
|
@ -6,11 +6,11 @@ |
|
|
|
<!-- 搜索 --> |
|
|
|
<el-input v-model="query.driverCode" clearable size="small" placeholder="输入驱动编码" style="width: 200px;" class="filter-item" @keyup.enter.native="toQuery" /> |
|
|
|
<el-input v-model="query.driverName" clearable size="small" placeholder="输入驱动名称" style="width: 200px;" class="filter-item" @keyup.enter.native="toQuery" /> |
|
|
|
<el-select class="filter-item" style="width: 200px" size="small" v-model="query.fitDeviceTypes" placeholder="驱动类型" @change="crud.toQuery" clearable> |
|
|
|
<el-option label="输送机-Conveyor" value="conveyor"></el-option> |
|
|
|
<el-option label="固定货台-Station" value="station"></el-option> |
|
|
|
<el-option label="堆垛机-Stacker" value="stacker"></el-option> |
|
|
|
<el-option label="自动导引搬运车辆-AGV" value="agv"></el-option> |
|
|
|
<el-select v-model="query.fitDeviceTypes" class="filter-item" style="width: 200px" size="small" placeholder="驱动类型" clearable @change="crud.toQuery"> |
|
|
|
<el-option label="输送机-Conveyor" value="conveyor" /> |
|
|
|
<el-option label="固定货台-Station" value="station" /> |
|
|
|
<el-option label="堆垛机-Stacker" value="stacker" /> |
|
|
|
<el-option label="自动导引搬运车辆-AGV" value="agv" /> |
|
|
|
</el-select> |
|
|
|
<rrOperation /> |
|
|
|
</div> |
|
|
@ -33,7 +33,7 @@ |
|
|
|
{{ form.deviceDriverType }} |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="适用驱动类型:"> |
|
|
|
<el-tag v-for="city in form.fitDeviceTypes" :label="city" :key="city" effect="dark">{{city}}</el-tag> |
|
|
|
<el-tag v-for="city in form.fitDeviceTypes" :key="city" :label="city" effect="dark">{{ city }}</el-tag> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
@ -68,7 +68,7 @@ import pagination from '@crud/Pagination' |
|
|
|
|
|
|
|
const defaultForm = { driverCode: null, driverName: null, driverDescription: null, deviceDriverType: null, fitDeviceTypes: null } |
|
|
|
export default { |
|
|
|
name: 'devicedriver', |
|
|
|
name: 'Devicedriver', |
|
|
|
components: { pagination, crudOperation, rrOperation, udOperation }, |
|
|
|
mixins: [presenter(), header(), form(defaultForm)], |
|
|
|
cruds() { |
|
|
@ -91,7 +91,6 @@ export default { |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
dialogFormVisible: false, |
|
|
|
queryTypeOptions: [ |
|
|
@ -104,8 +103,8 @@ export default { |
|
|
|
methods: { |
|
|
|
// 获取异常详情 |
|
|
|
handleClick(row) { |
|
|
|
this.form = row; |
|
|
|
this.dialogFormVisible=true; |
|
|
|
this.form = row |
|
|
|
this.dialogFormVisible = true |
|
|
|
}, |
|
|
|
// 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
|
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
|