|
@@ -136,7 +136,9 @@ export default {
|
|
|
mutiCount: 0,
|
|
|
infectedTotal: 0,
|
|
|
infectedCurfloor: 0,
|
|
|
- otherType: ''
|
|
|
+ otherType: '',
|
|
|
+ tabsListLoadOver: false,
|
|
|
+ isGetType: true, // 防止请求图时 分区类型还没有请求回来
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -221,6 +223,7 @@ export default {
|
|
|
}
|
|
|
return t;
|
|
|
}).filter(item => item);
|
|
|
+ this.tabsListLoadOver = true;
|
|
|
if (this.childBackParam.zone) {
|
|
|
this.activeName = this.childBackParam.zone;
|
|
|
this.buildFloorSelectd = this.childBackParam.buildFloorSelectd;
|
|
@@ -302,12 +305,17 @@ export default {
|
|
|
this.$message.warning('请选择建筑楼层')
|
|
|
return
|
|
|
}
|
|
|
+ if (!this.activeTabType.code) {
|
|
|
+ this.isGetType = false;
|
|
|
+ return
|
|
|
+ }
|
|
|
if (num == 2) {
|
|
|
this.initMessage();
|
|
|
} else {
|
|
|
this.getInfected(this.buildFloorSelectd[1]);
|
|
|
///
|
|
|
console.log(this.FloorMap, '========================');
|
|
|
+ this.isGetType = true;
|
|
|
this.$refs.graphy.getData(this.buildFloorSelectd, this.FloorMap, this.activeTabType);
|
|
|
this.childBackParam = {}
|
|
|
}
|
|
@@ -389,6 +397,16 @@ export default {
|
|
|
},
|
|
|
projectId() {
|
|
|
this.init()
|
|
|
+ },
|
|
|
+ tabsListLoadOver: {
|
|
|
+ handler: function (n) {
|
|
|
+ if (n) {
|
|
|
+ if (!this.isGetType) {
|
|
|
+ console.log(n,'0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0');
|
|
|
+ this.changeGraphyOrTable(this.isMyTab)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|