Compare commits

...

1 Commits
master ... lb

Author SHA1 Message Date
lb
22772fecbc update 关闭3d图的详情小框 2023-02-01 11:09:52 +08:00

View File

@ -142,6 +142,7 @@ export default {
data() {
return {
eqId: null,
oldEqId: null,
currentEquipment: null,
showPage: false,
toggleResize: 'toggle-1' // <=== no need to worry this
@ -170,8 +171,17 @@ export default {
},
handle3DClick() {
this.eqId = document.getElementById('V3DData').rel
// alert(this.eqId)
if (this.oldEqId && this.oldEqId === this.eqId) {
//
console.log('here.........关闭框', this.oldEqId, this.eqId)
this.currentEquipment = null
this.oldEqId = null
return
}
if (this.eqId) {
this.oldEqId = this.eqId
this.currentEquipment = eqList.find(item => item.id === this.eqId)
}
}