|
@@ -133,40 +133,15 @@ export default {
|
|
|
this.popoverPosition.top = `${e.clientY}px`;
|
|
|
this.popoverPosition.left = `${e.clientX}px`;
|
|
|
this.$nextTick(() => {
|
|
|
- if (this.tabData.tableData.length && !this.tabData.pointData.length) { //只绑定了设备
|
|
|
- if (this.tabData.tableData.length == 1) { //绑定了一个设备(跳详情)
|
|
|
-
|
|
|
- } else { //绑定了多个设备(跳表格)
|
|
|
-
|
|
|
- }
|
|
|
- } else if (!this.tabData.tableData.length && this.tabData.pointData.length) { //只绑定了位置
|
|
|
- if (
|
|
|
- item.data.GraphElementId == '100050' ||
|
|
|
- item.data.GraphElementId == '100055' ||
|
|
|
- item.data.GraphElementId == '100056' ||
|
|
|
- item.data.GraphElementId == '100057'
|
|
|
- ) { //判断是否为电井
|
|
|
- this.visible = true;
|
|
|
- this.showBtnWell = true;
|
|
|
- } else {
|
|
|
- if (this.tabData.pointData.length == 1) { //不是电井并且只绑定了一个位置(跳详情)
|
|
|
- if (this.tabData.pointData[0].id)
|
|
|
- this.$refs.boxRoom.open({ name: item.name, type: this.type, location: this.tabData.pointData[0].id });
|
|
|
- } else {
|
|
|
- this.visible = true;
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (this.tabData.tableData.length && this.tabData.pointData.length) { //既绑定了设备又绑定了位置
|
|
|
- if (
|
|
|
- item.data.GraphElementId == '100050' ||
|
|
|
- item.data.GraphElementId == '100055' ||
|
|
|
- item.data.GraphElementId == '100056' ||
|
|
|
- item.data.GraphElementId == '100057'
|
|
|
- ) { //判断是否为电井
|
|
|
- this.showBtnWell = true;
|
|
|
- }
|
|
|
- this.visible = true;
|
|
|
+ if (
|
|
|
+ item.data.GraphElementId == '100050' ||
|
|
|
+ item.data.GraphElementId == '100055' ||
|
|
|
+ item.data.GraphElementId == '100056' ||
|
|
|
+ item.data.GraphElementId == '100057'
|
|
|
+ ) { //判断是否为电井
|
|
|
+ this.showBtnWell = true;
|
|
|
}
|
|
|
+ this.visible = true;
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -415,27 +390,28 @@ export default {
|
|
|
this.view = new FloorView(`canvas${this.id}`)
|
|
|
},
|
|
|
listChange(item, ev) {
|
|
|
- if (ev[0].length) {
|
|
|
- let selectItem1 = ev[0][0],
|
|
|
- location = selectItem1.data.AttachObjectIds[0] ? selectItem1.data.AttachObjectIds[0].id : ''
|
|
|
- // 空间类型都可打开弹窗(除防火分区 编号100131,商管办公室 编号100112,铺装石材 编号100129)
|
|
|
- // if (selectItem1.data.GraphElementType == 'Zone') {
|
|
|
- // if (
|
|
|
- // selectItem1.data.GraphElementId != '100131' &&
|
|
|
- // selectItem1.data.GraphElementId != '100112' &&
|
|
|
- // selectItem1.data.GraphElementId != '100129'
|
|
|
- // ) {
|
|
|
- // if (location) {
|
|
|
- // this.$refs.boxRoom.open({ name: selectItem1.name, type: this.type, location: location })
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // // 选中电井设置电井关联的商铺高亮
|
|
|
- // this.setHightLight(ev[0])
|
|
|
- }
|
|
|
+ // if (ev[0].length) {
|
|
|
+ // let selectItem1 = ev[0][0],
|
|
|
+ // location = selectItem1.data.AttachObjectIds[0] ? selectItem1.data.AttachObjectIds[0].id : ''
|
|
|
+ // // 空间类型都可打开弹窗(除防火分区 编号100131,商管办公室 编号100112,铺装石材 编号100129)
|
|
|
+ // if (selectItem1.data.GraphElementType == 'Zone') {
|
|
|
+ // if (
|
|
|
+ // selectItem1.data.GraphElementId != '100131' &&
|
|
|
+ // selectItem1.data.GraphElementId != '100112' &&
|
|
|
+ // selectItem1.data.GraphElementId != '100129'
|
|
|
+ // ) {
|
|
|
+ // if (location) {
|
|
|
+ // this.$refs.boxRoom.open({ name: selectItem1.name, type: this.type, location: location })
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // // // 选中电井设置电井关联的商铺高亮
|
|
|
+ // // this.setHightLight(ev[0])
|
|
|
+ // }
|
|
|
// else {
|
|
|
- this.clearHightLight()
|
|
|
+ // this.clearHightLight()
|
|
|
// }
|
|
|
+ this.clearHightLight()
|
|
|
},
|
|
|
// 选中电井关联的商铺高亮
|
|
|
setHightLight(arr) {
|
|
@@ -607,6 +583,12 @@ export default {
|
|
|
this.getEvent()
|
|
|
},
|
|
|
created() {
|
|
|
+ document.onclick = () => {
|
|
|
+ if (this.visible) {
|
|
|
+ debugger
|
|
|
+ console.log(this.visible)
|
|
|
+ }
|
|
|
+ }
|
|
|
this.urlMsg = {
|
|
|
categoryId: this.$cookie.get('categoryId'),
|
|
|
ProjectID: this.plazaId,
|