|
|
@ -124,6 +124,16 @@ export default {
|
|
|
|
this.getBuildingList();
|
|
|
|
this.getBuildingList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
clickResult: {
|
|
|
|
|
|
|
|
handler(newVal, oldVal) {
|
|
|
|
|
|
|
|
if (newVal.id && this.loading == false) {
|
|
|
|
|
|
|
|
this.handlerWindow();
|
|
|
|
|
|
|
|
console.log("已经是本楼");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
deep: true,
|
|
|
|
|
|
|
|
// immediate: true,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {},
|
|
|
|
created() {},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
@ -134,6 +144,8 @@ export default {
|
|
|
|
this.currentIndex = 0;
|
|
|
|
this.currentIndex = 0;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
clickHouse(item) {
|
|
|
|
clickHouse(item) {
|
|
|
|
|
|
|
|
this.$store.commit("SET_CLICK_RESULT", {});
|
|
|
|
|
|
|
|
debugger;
|
|
|
|
this.$store.commit("SET_BUILDING_WIDTH", {
|
|
|
|
this.$store.commit("SET_BUILDING_WIDTH", {
|
|
|
|
id: item.id,
|
|
|
|
id: item.id,
|
|
|
|
buildingId: item.building_id,
|
|
|
|
buildingId: item.building_id,
|
|
|
@ -146,7 +158,6 @@ export default {
|
|
|
|
keyId: item.id,
|
|
|
|
keyId: item.id,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.currentIndex = item.id;
|
|
|
|
this.currentIndex = item.id;
|
|
|
|
this.$store.commit("SET_CLICK_RESULT", {});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getBuildingInfo() {
|
|
|
|
async getBuildingInfo() {
|
|
|
|
let info = await getBuilding(this.queryParamsXiaoqu.buildingId);
|
|
|
|
let info = await getBuilding(this.queryParamsXiaoqu.buildingId);
|
|
|
@ -165,6 +176,11 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.$store.commit("SET_REFRESH", 1);
|
|
|
|
this.$store.commit("SET_REFRESH", 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.handlerWindow();
|
|
|
|
|
|
|
|
console.log("接口找");
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handlerWindow() {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
const list = document.getElementsByClassName("foldPane-bottom")[0];
|
|
|
|
const list = document.getElementsByClassName("foldPane-bottom")[0];
|
|
|
|
const build = document.getElementsByClassName("building-container")[0];
|
|
|
|
const build = document.getElementsByClassName("building-container")[0];
|
|
|
@ -173,12 +189,9 @@ export default {
|
|
|
|
list.style.width = `calc(100% - (390px + ${build.offsetWidth}px) )`;
|
|
|
|
list.style.width = `calc(100% - (390px + ${build.offsetWidth}px) )`;
|
|
|
|
list.style.transform = `translateX(0)`;
|
|
|
|
list.style.transform = `translateX(0)`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.clickResult.id) {
|
|
|
|
if (this.clickResult.id) this.clickHouse(this.clickResult);
|
|
|
|
this.clickHouse(this.clickResult);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 颜色处理
|
|
|
|
// 颜色处理
|
|
|
|
handleColor(item) {
|
|
|
|
handleColor(item) {
|
|
|
|
if (!item.color) {
|
|
|
|
if (!item.color) {
|
|
|
|