|
|
@ -14,6 +14,8 @@
|
|
|
|
<div class="building-name">{{ info.deptname }}{{ info.name }}</div>
|
|
|
|
<div class="building-name">{{ info.deptname }}{{ info.name }}</div>
|
|
|
|
<div class="house" v-for="(item, index) in list" :key="index">
|
|
|
|
<div class="house" v-for="(item, index) in list" :key="index">
|
|
|
|
<colorCell
|
|
|
|
<colorCell
|
|
|
|
|
|
|
|
:active="currentIndex == house.id ? 'activeCell' : ''"
|
|
|
|
|
|
|
|
:isClcik="true"
|
|
|
|
:item="house"
|
|
|
|
:item="house"
|
|
|
|
v-for="(house, houseIndex) in item"
|
|
|
|
v-for="(house, houseIndex) in item"
|
|
|
|
:key="index + houseIndex"
|
|
|
|
:key="index + houseIndex"
|
|
|
@ -36,6 +38,7 @@ export default {
|
|
|
|
show: false,
|
|
|
|
show: false,
|
|
|
|
info: {},
|
|
|
|
info: {},
|
|
|
|
list: [],
|
|
|
|
list: [],
|
|
|
|
|
|
|
|
currentIndex: 0,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
@ -58,11 +61,13 @@ export default {
|
|
|
|
this.show = false;
|
|
|
|
this.show = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
"houseItem.id"(newValue, oldValue) {
|
|
|
|
|
|
|
|
if (!newValue) this.currentIndex = 0;
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {},
|
|
|
|
created() {},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
clickHouse(item) {
|
|
|
|
clickHouse(item) {
|
|
|
|
console.log(item);
|
|
|
|
|
|
|
|
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,
|
|
|
@ -81,6 +86,8 @@ export default {
|
|
|
|
leftColor: item.leftColor,
|
|
|
|
leftColor: item.leftColor,
|
|
|
|
rightTopColor: item.rightTopColor,
|
|
|
|
rightTopColor: item.rightTopColor,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
this.currentIndex = item.id;
|
|
|
|
|
|
|
|
console.log(this.currentIndex);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getBuildingInfo() {
|
|
|
|
async getBuildingInfo() {
|
|
|
|
let info = await getBuilding(this.queryParamsXiaoqu.buildingId);
|
|
|
|
let info = await getBuilding(this.queryParamsXiaoqu.buildingId);
|
|
|
|