heyang 1 년 전
부모
커밋
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++){