mushencc 4 jaren geleden
bovenliggende
commit
d0049fcccc

+ 25 - 0
src/views/BasicSettings/SuppliersManage/SippliersClassify.vue

@@ -163,8 +163,33 @@ export default {
       }).then((res) => {
         this.treeData[0].sub = res.data
         // this.openChildrenNode(this.treeData)
+      // this.ergodic(this.treeData)
+      function a (row){debugger;
+          row.forEach(item=>{
+       if(item.sub.length==0){
+         item.expand = true
+      
+       }else{
+         item.expand = true
+         this.ergodic(item)
+       }
+     })
+      }
+      a(this.treeData)
+    console.log(this.treeData)
       }).catch((err) => { });
     },
+  ergodic(row){
+     row.forEach(item=>{
+       if(item.sub.length==0){
+         item.expand = true
+      
+       }else{
+         item.expand = true
+         this.ergodic(item)
+       }
+     })
+  },
     handleSet () {
       this.type = 1
       this.showModal = true

+ 1 - 1
src/views/leadMatch/roomList/edit.vue

@@ -20,7 +20,7 @@
             </Upload> -->
           <div class="inputWrap"  v-if="$route.query.type != 2">
     <button class="inputWrapButton"
-            @click="onClickBtn">图纸导入</button>
+            @click="onClickBtn">导入</button>
     <input type="file"
            multiple
          

+ 1 - 1
src/views/leadMatch/weightMemo/edit.vue

@@ -20,7 +20,7 @@
             </Upload> -->
               <div class="inputWrap"  v-if="$route.query.type != 2">
     <button class="inputWrapButton"
-            @click="onClickBtn">图纸导入</button>
+            @click="onClickBtn">导入</button>
     <input type="file"
            multiple
          

+ 1 - 1
vue.config.js

@@ -1,6 +1,6 @@
 const axios_default_ip =
     process.env.NODE_ENV == 'dev' ?
-    'http://121.37.173.82:82' :
+    'http://121.41.102.225:82' :
     process.env.NODE_ENV == 'test-prd' ?
     'http://121.41.102.225:82' //测试服
     :