heyang 1 年之前
父節點
當前提交
90b012cdb7
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      src/views/safetyCheck/startInspection/index.vue

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

@@ -850,6 +850,18 @@
                 i--
               }
             }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
             }
           }
@@ -1143,6 +1155,7 @@
             this.msgError('未找到相关项目')
             return
           }
+          console.log(obj)
           this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckCode',obj.code);
           this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckName',obj.name);
           this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckPoint',obj.mainPoint);