Browse Source

多选

master
gengby 2 years ago
parent
commit
858e82a2c7
  1. 20
      hd/nladmin-system/src/main/java/org/nl/modules/quartz/task/AutoCreateInst.java
  2. 9
      qd/src/views/acs/route/routeLine/index.vue

20
hd/nladmin-system/src/main/java/org/nl/modules/quartz/task/AutoCreateInst.java

@ -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());

9
qd/src/views/acs/route/routeLine/index.vue

@ -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>

Loading…
Cancel
Save