|
|
|
@ -47,18 +47,21 @@
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
onShow(){
|
|
|
|
|
this.getBuildData()
|
|
|
|
|
|
|
|
|
|
this.currentIndex = this.currentIndex ? this.currentIndex : 0
|
|
|
|
|
this.getBuildData(this.currentIndex)
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 获取该楼层数据
|
|
|
|
|
async getBuildData(index) {
|
|
|
|
|
this.list = buildjson[this.deptname.replace("幢", "")];
|
|
|
|
|
|
|
|
|
|
let res = await getNumNew({
|
|
|
|
|
buildingId: this.buildingId,
|
|
|
|
|
});
|
|
|
|
|
this.buildData = res.data
|
|
|
|
|
|
|
|
|
|
this.clickFoort(this.list[0], 0)
|
|
|
|
|
this.clickFoort(this.list[index],index)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -88,7 +91,7 @@
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
clickFoort(item, index) {
|
|
|
|
|
if (this.currentIndex == index) return
|
|
|
|
|
|
|
|
|
|
this.filterListData(index)
|
|
|
|
|
this.mapData = item
|
|
|
|
|
this.currentIndex = index
|
|
|
|
|