heyang 1 год назад
Родитель
Сommit
17fee69665
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      src/views/safetyCheck/startInspection/index.vue

+ 8 - 0
src/views/safetyCheck/startInspection/index.vue

@@ -573,6 +573,10 @@
                   this.msgError('请添加隐患检查项')
                   return
                 }
+                if(!obj.checkHazardInfoVoList[0].checkHazardDtoList[0]){
+                  this.msgError('请添加隐患检查项')
+                  return
+                }
                 let list=[]
                 let checkFlagList=[];
                 for(let i=0;i<this.addForm.checkHazardInfoVoList.length;i++){
@@ -637,6 +641,10 @@
                   this.msgError('请添加隐患检查项')
                   return
                 }
+                if(!obj.checkHazardInfoVoList[0].checkHazardDtoList[0]){
+                  this.msgError('请添加隐患检查项')
+                  return
+                }
                 let list=[]
                 let checkFlagList=[];
                 for(let i=0;i<this.addForm.checkHazardInfoVoList.length;i++){