|
@@ -114,17 +114,12 @@ export default {
|
|
|
floorToMap: {}, //楼层及其对应的模型图
|
|
|
FloorMap: "", //当前选中的楼层平面图
|
|
|
buildFloorSelectd: [], //当前所选的建筑楼层
|
|
|
+ childBackParam: {}
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.init();
|
|
|
- let params = this.$route.params;
|
|
|
- if (params.BuildingId) {
|
|
|
- this.buildFloorSelectd = [params.BuildingId, params.FloorId];
|
|
|
- this.activeName = params.zone;
|
|
|
- this.isMyTab = params.isMyTab;
|
|
|
- this.changeRadio(this.isMyTab)
|
|
|
- }
|
|
|
+ this.childBackParam = this.$route.params;
|
|
|
},
|
|
|
mounted() { },
|
|
|
methods: {
|
|
@@ -153,6 +148,9 @@ export default {
|
|
|
}
|
|
|
return t;
|
|
|
})
|
|
|
+ if (this.childBackParam.zone) {
|
|
|
+ this.changeCascader(this.buildFloorSelectd)
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
// 切换平面图和列表
|
|
@@ -166,9 +164,13 @@ export default {
|
|
|
}
|
|
|
queryDictionaryHead(pa, res => {
|
|
|
this.tabsList = res.Content;
|
|
|
- console.log(this.activeName == '0')
|
|
|
- console.log(this.activeName == '0' ? 'GeneralZone' : this.activeName)
|
|
|
- this.activeName = this.activeName == '0' ? 'GeneralZone' : this.activeName;
|
|
|
+ if (this.childBackParam.zone) {
|
|
|
+ this.activeName = this.childBackParam.zone;
|
|
|
+ this.buildFloorSelectd = [this.childBackParam.BuildingId, this.childBackParam.FloorId];
|
|
|
+ this.isMyTab = this.childBackParam.isMyTab;
|
|
|
+ } else {
|
|
|
+ this.activeName = 'GeneralZone';
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
// 通过选中的tab-Code 获取选中的tab的所有数据
|