|
@@ -996,10 +996,6 @@ export default {
|
|
|
this.msgError('请添加至少一名巡查成员')
|
|
|
return
|
|
|
}
|
|
|
- if(this.dialogForm.checkCategory == 2 && !this.deviceIsEmpty){
|
|
|
- this.msgError('请选择检查内容')
|
|
|
- return
|
|
|
- }
|
|
|
let obj = {
|
|
|
title:this.dialogForm.title,
|
|
|
checkType:this.dialogForm.checkType,
|
|
@@ -1106,7 +1102,7 @@ export default {
|
|
|
}
|
|
|
this.$set(this.dialogForm,'hazardIds',list.join(','));
|
|
|
this.$set(this.dialogForm,'hazardNum',list.length);
|
|
|
- this.dialogClickType(1);
|
|
|
+
|
|
|
//实验室是否有当前设备
|
|
|
let obj={
|
|
|
"checkRange":this.dialogForm.checkRange,
|
|
@@ -1116,9 +1112,10 @@ export default {
|
|
|
}
|
|
|
haveHazardInSub(obj).then(response => {
|
|
|
if(response.code==200){
|
|
|
- this.deviceIsEmpty=true;
|
|
|
+ this.dialogClickType(1);
|
|
|
}else{
|
|
|
- this.deviceIsEmpty=false;
|
|
|
+ this.$set(this.dialogForm,'hazardIds','');
|
|
|
+ this.$set(this.dialogForm,'hazardNum',0);
|
|
|
}
|
|
|
});
|
|
|
}
|