diff --git a/src/components/NavigationBar/index.vue b/src/components/NavigationBar/index.vue index 9ea492b..cb94fff 100644 --- a/src/components/NavigationBar/index.vue +++ b/src/components/NavigationBar/index.vue @@ -114,12 +114,28 @@ export default { }, lookBuild(item) { this.open = false; - this.$store.commit("SET_CLICK_RESULT", { - id: item.houseId, - buildingId: item.buildingId, - name: item.housename, - keyId: item.houseId, - }); + if (item.xiaoquId == 267) { + this.$store.commit("SET_BUILDING_WIDTH", { + id: item.houseId, + buildingId: item.buildingId, + deptId: item.deptId, + buildingWidth: + this.houseItem.buildingWidth > 0 + ? this.houseItem.buildingWidth + : window.innerWidth, + name: item.housename, + keyId: item.houseId, + sm: true, + }); + } else { + this.$store.commit("SET_CLICK_RESULT", { + id: item.houseId, + buildingId: item.buildingId, + name: item.housename, + keyId: item.houseId, + }); + } + this.$store.commit("CHANGE_QUERY", { buildingId: item.buildingId }); }, /** @@ -137,7 +153,7 @@ export default { }, }, computed: { - ...mapGetters(["name", "yjTotal", "dept"]), + ...mapGetters(["name", "yjTotal", "dept", "houseItem"]), handlerBtn() { return ( this.$route.name == "xiaoqu" && diff --git a/src/views/components/xiaoqu/house.vue b/src/views/components/xiaoqu/house.vue index 767a860..d5a6538 100644 --- a/src/views/components/xiaoqu/house.vue +++ b/src/views/components/xiaoqu/house.vue @@ -830,6 +830,11 @@ export default { handleClose() { this.show = false; + if (this.houseItem.sm) { + this.$store.commit("CHANGE_QUERY", { + buildingId: undefined, + }); //存储全局参数 + } this.$store.commit("SET_BUILDING_WIDTH", {}); }, async getPersonList() { diff --git a/src/views/components/xiaoqu/leftData/networkInfo.vue b/src/views/components/xiaoqu/leftData/networkInfo.vue index dd3f778..c048542 100644 --- a/src/views/components/xiaoqu/leftData/networkInfo.vue +++ b/src/views/components/xiaoqu/leftData/networkInfo.vue @@ -1,7 +1,7 @@