haojianlong 4 роки тому
батько
коміт
37942bb155

+ 1 - 1
src/components/ledger/cenote/relatedSpaceList.vue

@@ -143,7 +143,7 @@ export default {
           item.value = item.id;
           item.label = item.localName;
           item.children = [];
-          if (item.Floor instanceof Array) {
+          if (item.floor instanceof Array) {
             item.children = item.floor.map(fitem => {
               fitem.value = fitem.id
               fitem.label = fitem.localName

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

@@ -137,7 +137,7 @@ export default {
       let promise1 = new Promise((resolve, reject) => {
         let params = {
           data: {
-            Filters: `not RoomID isNull;ObjectType = '${this.space}';buildingId = '${this.buildingData[0]}';floorId = '${this.buildingData[1]}'`,
+            filters: `not id isNull;objectType = '${this.space}';buildingId = '${this.buildingData[0]}';floorId = '${this.buildingData[1]}'`,
             Orders: "localName desc"
           },
           ShaftId: this.$route.query.ShaftId
@@ -148,10 +148,10 @@ export default {
       });
       let promise2 = new Promise((resolve, reject) => {
         let pa = {
-          Filters: `not RoomID isNull`,
-          Orders: "createTime desc, RoomID asc",
-          PageSize: 1000,
-          ZoneType: this.space
+          filters: `not id isNull`,
+          orders: "createTime desc, id asc",
+          pageSize: 1000,
+          zoneType: this.space
         }
         if (this.buildingData.length && this.buildingData.length > 1) {
           pa.BuildingId = this.buildingData[0];