shaun-sheep 4 år sedan
förälder
incheckning
9410b6f1ad
1 ändrade filer med 13 tillägg och 6 borttagningar
  1. 13 6
      src/views/legendLibrary/index.vue

+ 13 - 6
src/views/legendLibrary/index.vue

@@ -38,8 +38,8 @@
                         tipPlace='top'
                         width='280'
                         style='margin:0 12px'
-                        :returnParentNode='false'
                         :isShowAllChoice='true'
+                        :returnParentNode='true'
                         :choseArea='true'
                         :data='deviceList'
                         :hideClear='true'
@@ -344,11 +344,18 @@ export default {
         // },
         //位置/设备
         treeConfirmDevice(id, info) {
-            console.log(id, info)
-            let type = id.map(i => i[i.length - 1])
-            console.log(type, 'type')
-            // this.InfoLocals = id
-            // this.getTableList()
+            // console.log(id, info)
+
+            // id.forEach(i => {
+            //     let id = i.substring(0, 4)
+            //     // 1 位置 2 设备
+            //     if (i[i.length - 1] == 1) {
+            //         this.InfoLocals = id
+            //     } else {
+            //     }
+            // })
+            this.InfoLocals = id
+            this.getTableList()
         },
         //说明书位置
         treeConfirmPosition(id, info) {