Browse Source

修改设备台账bim坐标问题

haojianlong 4 years ago
parent
commit
094d9021c8
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/components/ledger/lib/bimDialog.vue

+ 5 - 5
src/components/ledger/lib/bimDialog.vue

@@ -88,7 +88,6 @@ export default {
     },
     //切换楼层
     changeFloor(value) {
-      this.Buildfloor = value
       this.isShow = true
       if (value.length > 1) {
         this.isShow = false
@@ -184,12 +183,13 @@ export default {
           } else {
             BIMLocation = `${obj.x.toFixed(2)},${(obj.y * -1).toFixed(2)},0`
           }
+          const bfloor = this.$refs.floors.value
           let param = {
             content: [
               {
-                equipId: this.bimcodeobj.id,
-                buildingId: this.Buildfloor[0],
-                floorId: this.Buildfloor[1],
+                id: this.bimcodeobj.id,
+                buildingId: bfloor[0] == 'noKnow'?undefined:bfloor[0],
+                floorId: bfloor[1] == 'noKnow'?undefined:bfloor[1],
                 bimLocation: BIMLocation
               },
             ],
@@ -221,7 +221,7 @@ export default {
     },
     // canvas点击事件
     canvasClick(item, event) {
-      if (item instanceof SGraphyItem) {
+      if (item instanceof SGraphItem) {
         this.clearMark()
         let obj = {
           X: event[0].x,