Просмотр исходного кода

修改切换项目数据未更新bug

haojianlong 5 лет назад
Родитель
Сommit
8472eff727

+ 1 - 1
package.json

@@ -28,7 +28,7 @@
         "@saga-web/base": "2.1.9",
         "@saga-web/draw": "2.1.61",
         "@saga-web/graphy": "2.1.34",
-        "@saga-web/cad-engine": "2.0.420"
+        "@saga-web/cad-engine": "2.0.422"
     },
     "devDependencies": {
         "ajv": "^6.9.1",

+ 9 - 0
src/components/ledger/rentList/roomCountDrawer.vue

@@ -51,6 +51,7 @@ import {
   buildingQuery, //建筑查询
   queryParentZone, //业务空间查询GeneralZone-TenantZone
 } from '@/api/scan/request'
+import { mapGetters } from "vuex";
 export default {
   data() {
     return {
@@ -78,6 +79,14 @@ export default {
       default: true
     }
   },
+  computed: {
+    ...mapGetters("layout", ["projectId"])
+  },
+  watch: {
+    projectId() {
+      this.init();
+    }
+  },
   mounted() {
     this.drawerBodyHeight = document.body.clientHeight - 152 + 'px'
   },

+ 1 - 1
src/views/ledger/rentlist/manageTenantZone.vue

@@ -312,7 +312,7 @@ export default {
     getBusinessSpace() {
       let buildid = this.floorList[this.activeFloor].BuildID;
       let floorid = this.floorList[this.activeFloor].FloorID;
-      if (buildid && floorid) {
+      if (buildid && floorid && this.value) {
         this.canvasLoading = true
         let pa = {
           zone: this.value,