|
@@ -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'
|
|
|
},
|