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