修改类型跳转后图纸不显示问题

main
jinna 2 years ago
parent b38a00b5f5
commit 746d39202f
  1. 10
      src/components/monitoring/clickCp.vue

@ -277,6 +277,7 @@ export default {
"暖":3, "暖":3,
"监控":4, "监控":4,
"照明":5, "照明":5,
"空开":5,
"消防":6, "消防":6,
"电梯":7, "电梯":7,
"空调":8, "空调":8,
@ -304,7 +305,7 @@ export default {
this.active = this.active == '' ? 25 : this.active this.active = this.active == '' ? 25 : this.active
this.ttActive = this.ttActive == '' ? 20 : this.ttActive this.ttActive = this.ttActive == '' ? 20 : this.ttActive
console.log('进入此方法111111111111111',this.type); console.log('进入此方法111111111111111',this.type);
this.getTypeList(this.bimModel==1?this.active:this.ttActive,this.type,this.bimModel) this.getTypeList(this.type)
},500) },500)
}, },
@ -312,6 +313,7 @@ export default {
// //
getTypeList(type){ getTypeList(type){
console.log('专业-区域-楼号-楼层 ====>',this.sbType,this.bimModel,'type ====>',type,'active ====>',this.active,'ttActive ===>',this.ttActive, this.tower) console.log('专业-区域-楼号-楼层 ====>',this.sbType,this.bimModel,'type ====>',type,'active ====>',this.active,'ttActive ===>',this.ttActive, this.tower)
console.log('类型 ====>','type ====>',type,)
let _draweClass = this.sbTypeKeys[this.sbType]; let _draweClass = this.sbTypeKeys[this.sbType];
if(type == 'build'){ if(type == 'build'){
this.typeList = []; this.typeList = [];
@ -400,7 +402,7 @@ export default {
if(this.isShowType) { if(this.isShowType) {
this.page.current = 1; this.page.current = 1;
// //
this.getTypeList('',this.type,''); this.getTypeList(this.type);
} }
}, },
// //
@ -516,7 +518,7 @@ export default {
this.active = activeNum; this.active = activeNum;
this.tower = tower; this.tower = tower;
this.type = type this.type = type
this.getTypeList('',type,''); this.getTypeList(type);
if (this.sbType == '空开' && activeNum != 25) { if (this.sbType == '空开' && activeNum != 25) {
bfHelper.lookPipeline2(null, null, tower, bfHelper.lookPipeline2(null, null, tower,
@ -787,7 +789,7 @@ export default {
clickTt(num,type) { clickTt(num,type) {
this.ttActive = num; this.ttActive = num;
this.isShowType = false; this.isShowType = false;
this.getTypeList(num,type,2) this.getTypeList(type)
let camera = this.ttCameraPosition[num] let camera = this.ttCameraPosition[num]
window.sessionStorage.setItem('ttcamera', JSON.stringify(camera)); window.sessionStorage.setItem('ttcamera', JSON.stringify(camera));
window.sessionStorage.setItem('ttbuild', num); window.sessionStorage.setItem('ttbuild', num);

Loading…
Cancel
Save