فهرست منبع

业务空间修改

haojianlong 4 سال پیش
والد
کامیت
8537956586
2فایلهای تغییر یافته به همراه17 افزوده شده و 6 حذف شده
  1. 16 5
      src/components/business_space/newGraphy/graphy.vue
  2. 1 1
      src/components/business_space/newGraphy/unRelateBSP.vue

+ 16 - 5
src/components/business_space/newGraphy/graphy.vue

@@ -429,6 +429,7 @@
           })
           // 绘制业务空间
           let tempArr = this.BSPRelaISPList.map((t, i) => {
+            console.log(t);
             return {
               RoomLocalName: t.localName || t.name,
               OutLine: t.outline,
@@ -553,7 +554,9 @@
             outline: [t.outline],
             buildingId: this.buildFloor[0],
             floorId: this.buildFloor[1],
-            height: this.spaceHeight
+            height: this.spaceHeight,
+            ///
+            ///
           }
           if (t.customParam) {
             obj.customParam = t.customParam
@@ -674,6 +677,8 @@
       zoneObj.localName = val;
       zoneObj.buildingId = this.buildFloor[0];
       zoneObj.floorId = this.buildFloor[1];
+      ///
+      ///
       this.createSingleBSP(zoneObj, IspaceIdList)
     },
     // 根据图从未关联平面图的业务空间中选择--按钮返回关联信号
@@ -777,13 +782,13 @@
     confirmZoneSpace() {
       let ObjectType = this.tab.code == 'OtherZone' ? this.OtherValue : this.tab.code;
       let space = {
-        RoomID: this.curZoneItem.data.id,
-        State: 0,
-        ObjectType: ObjectType
+        id: this.curZoneItem.data.RoomID,
+        state: 0,
+        classCode: ObjectType
       }
       let pa = {
         content: [space],
-        projection: ['State']
+        projection: ['state']
       }
       zoneUpdate(pa, res => {
         this.curZoneItem.isInfected = false;
@@ -953,6 +958,8 @@
               buildingId: this.buildFloor[0],
               floorId: this.buildFloor[1],
               height: this.spaceHeight
+              ///
+              ///
             }
           }).filter(item => item)
         } else {
@@ -979,6 +986,8 @@
               buildingId: this.buildFloor[0],
               floorId: this.buildFloor[1],
               height: this.spaceHeight
+              ///
+              ///
             }
           }).filter(item => item);
         }
@@ -1072,6 +1081,8 @@
       zoneObj.classCode = ObjectType;
       zoneObj.buildingId = this.buildFloor[0];
       zoneObj.floorId = this.buildFloor[1];
+      ///
+      ///
       let pa = {
         content: [zoneObj],
         projection: ['bimLocation', 'classCode', 'outline', 'height', 'buildingId', 'floorId']

+ 1 - 1
src/components/business_space/newGraphy/unRelateBSP.vue

@@ -156,7 +156,7 @@ export default {
         pa.filters += `;localName contain "${this.keycode}" or name contain "${this.keycode}"`
       }
       zoneQuery(pa, res => {
-        this.page.total = res.Total;
+        this.page.total = res.total;
         this.tableData = res.content.map(t => {
           t.BNAME = this.bfData[t.buildingId];
           t.FNAME = this.bfData[t.floorId];