|
@@ -113,7 +113,7 @@ export default {
|
|
|
},
|
|
|
floorToMap: {}, //楼层及其对应的模型图
|
|
|
FloorMap: {}, //当前选中的楼层对象
|
|
|
- buildFloorSelectd: ['all'], //当前所选的建筑楼层
|
|
|
+ buildFloorSelectd: [''], //当前所选的建筑楼层
|
|
|
childBackParam: {}
|
|
|
};
|
|
|
},
|
|
@@ -151,6 +151,8 @@ export default {
|
|
|
if (this.childBackParam.zone) {
|
|
|
this.changeCascader(this.buildFloorSelectd);
|
|
|
this.$refs.floorCascader.setValue(this.buildFloorSelectd)
|
|
|
+ } else {
|
|
|
+ this.$refs.floorCascader.setValue([''])
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -213,6 +215,10 @@ export default {
|
|
|
// 判断切换至图还是表
|
|
|
changeGraphyOrTable(num) {
|
|
|
this.activeTabType = this.getItemForType()
|
|
|
+ if(!this.buildFloorSelectd[0]) {
|
|
|
+ this.$message.warning('请选择建筑楼层')
|
|
|
+ return
|
|
|
+ };
|
|
|
if (num == 2) {
|
|
|
this.initMessage();
|
|
|
} else {
|
|
@@ -233,10 +239,6 @@ export default {
|
|
|
this.$refs.handsontable.getHeader(res.Content, this.buildFloorSelectd);
|
|
|
})
|
|
|
},
|
|
|
- // 批量创建业务空间
|
|
|
- groupCreateBSpace() {
|
|
|
- this.$refs.graphy.groupCreateBSpace()
|
|
|
- },
|
|
|
checkSpace(list, build, graphyId) {
|
|
|
this.floor.notRelated = true;
|
|
|
this.$refs.notRelated.getIdList(list, build, graphyId, this.activeTabType);
|