dedsudiyu 1 rok pred
rodič
commit
0e5fa7a860

+ 12 - 0
src/views/safetyCheck/components/addPage/addPage.vue

@@ -574,6 +574,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
             }
           }