heyang 1 year ago
parent
commit
90b012cdb7
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/views/safetyCheck/startInspection/index.vue

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

@@ -850,6 +850,18 @@
                 i--
                 i--
               }
               }
             }else{
             }else{
+              if(list[i].level == 3){
+                if(list[i].children[0]){
+                  let mainPoint=[]
+                  for(let b=0;b<list[i].children.length;b++){
+                    mainPoint.push(list[i].children[b].name)
+                    list[i].mainPoint=mainPoint.join(',')
+                  }
+                }else{
+                  list[i].mainPoint='';
+                }
+              }
+
               delete list[i].children
               delete list[i].children
             }
             }
           }
           }
@@ -1143,6 +1155,7 @@
             this.msgError('未找到相关项目')
             this.msgError('未找到相关项目')
             return
             return
           }
           }
+          console.log(obj)
           this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckCode',obj.code);
           this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckCode',obj.code);
           this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckName',obj.name);
           this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckName',obj.name);
           this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckPoint',obj.mainPoint);
           this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckPoint',obj.mainPoint);