Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e238691040 | |||
| 159edc9fc3 |
@@ -142,7 +142,6 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
eqId: null,
|
eqId: null,
|
||||||
oldEqId: null,
|
|
||||||
currentEquipment: null,
|
currentEquipment: null,
|
||||||
showPage: false,
|
showPage: false,
|
||||||
toggleResize: 'toggle-1' // <=== no need to worry this
|
toggleResize: 'toggle-1' // <=== no need to worry this
|
||||||
@@ -171,17 +170,8 @@ export default {
|
|||||||
},
|
},
|
||||||
handle3DClick() {
|
handle3DClick() {
|
||||||
this.eqId = document.getElementById('V3DData').rel
|
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) {
|
if (this.eqId) {
|
||||||
this.oldEqId = this.eqId
|
|
||||||
this.currentEquipment = eqList.find(item => item.id === this.eqId)
|
this.currentEquipment = eqList.find(item => item.id === this.eqId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user