Browse Source

更新传参

zhulizhen1111 4 years ago
parent
commit
610ad70812
1 changed files with 6 additions and 12 deletions
  1. 6 12
      src/components/ledger/lib/bimDialog.vue

+ 6 - 12
src/components/ledger/lib/bimDialog.vue

@@ -67,7 +67,11 @@
             floorToMap: {},
         }
     },
-    created() {},
+    watch:{
+      bimcode:function(n,o){
+        this.init()
+      }
+    },
     mounted() {
         console.log(this.bimcodeobj)
         this.init()
@@ -190,17 +194,7 @@
                   FloorId: this.Buildfloor[1],
                   BIMLocation
                 },
-              ],
-              // Projection: ['BIMLocation', 'BuildingId', 'FloorId'],
-            }
-            if(BIMLocation){
-              param.Projection.push('BIMLocation')
-            }
-            if(this.Buildfloor[0]){
-               param.Projection.push('BuildingId')
-            }
-            if(this.Buildfloor[1]){
-               param.Projection.push('FloorId')
+              ]
             }
             updateEquip(param, (res) => {
               if (res.Result == 'success') {