多选
This commit is contained in:
@@ -102,18 +102,18 @@ public class AutoCreateInst {
|
||||
String startDriverCode = startdevice.getDeviceDriverDefination().getDriverCode();
|
||||
String nextDriverCode = nextdevice.getDeviceDriverDefination().getDriverCode();
|
||||
if (StrUtil.isNotEmpty(startDriverCode)){
|
||||
DriverDeviceService deviceService = applicationContext.getBean(startDriverCode, DriverDeviceService.class);
|
||||
Boolean checkStartPoint = deviceService.createInstCheckStartPoint(startdevice, acsTask);
|
||||
if (!checkStartPoint){
|
||||
continue;
|
||||
}
|
||||
// DriverDeviceService deviceService = applicationContext.getBean(startDriverCode, DriverDeviceService.class);
|
||||
// Boolean checkStartPoint = deviceService.createInstCheckStartPoint(startdevice, acsTask);
|
||||
// if (!checkStartPoint){
|
||||
// continue;
|
||||
// }
|
||||
}
|
||||
if (StrUtil.isNotEmpty(nextDriverCode)){
|
||||
DriverDeviceService deviceService = applicationContext.getBean(nextDriverCode, DriverDeviceService.class);
|
||||
Boolean checkNextPoint = deviceService.createInstCheckNextPoint(nextdevice, acsTask);
|
||||
if (!checkNextPoint){
|
||||
continue;
|
||||
}
|
||||
// DriverDeviceService deviceService = applicationContext.getBean(nextDriverCode, DriverDeviceService.class);
|
||||
// Boolean checkNextPoint = deviceService.createInstCheckNextPoint(nextdevice, acsTask);
|
||||
// if (!checkNextPoint){
|
||||
// continue;
|
||||
// }
|
||||
}
|
||||
Instruction instdto = new Instruction();
|
||||
instdto.setInstruction_type(acsTask.getTask_type());
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
>
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column v-if="false" prop="line_uuid" label="路线标识" />
|
||||
<el-table-column prop="device_code" label="设备编码" width="120"/>
|
||||
<el-table-column prop="device_code" label="设备编码" width="120" />
|
||||
<el-table-column v-if="false" prop="device_code" label="设备名称" />
|
||||
<el-table-column prop="route_plan_id" label="路由方案" width="140">
|
||||
<template slot-scope="scope">
|
||||
@@ -310,6 +310,11 @@ export default {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
return true
|
||||
},
|
||||
[CRUD.HOOK.beforeToEdit](data) {
|
||||
this.form.device_code = Array.of(data.form.device_code.split('').join(''))
|
||||
this.form.next_device_code = Array.of(data.form.next_device_code.split('').join(''))
|
||||
return true
|
||||
},
|
||||
// 改变状态
|
||||
changeEnabled(data) {
|
||||
var msg = '停用'
|
||||
@@ -337,7 +342,7 @@ export default {
|
||||
}).catch(err => {
|
||||
console.log(err.response.data.message)
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user