南京二号线调整

This commit is contained in:
fan 2021-06-01 14:06:18 +08:00
parent 9ac45050f9
commit a8ce67ee4a
4 changed files with 8 additions and 27 deletions

View File

@ -46,6 +46,7 @@ class Jlmap {
this.stationCode = '';
this.isUpdateShowTrainList = false;
this.isUpdateRunLineTrain = false;
this._disposeFlag = false;
}
// 初始化属性有鼠标事件 缩放等
@ -668,6 +669,7 @@ class Jlmap {
this.$keyboardController.dispose();
this.$zr && zrender.dispose(this.$zr);
this.$painter.dispose();
this._disposeFlag = true;
}
on(eventname, cb, context) {

View File

@ -63,7 +63,7 @@ export default {
}
},
beforeDestroy() {
if (!this.dialogShow) {
if (this.selfJmap && this.selfJmap._disposeFlag) {
this.destroy();
}
},
@ -85,9 +85,7 @@ export default {
});
},
destroy() {
if (this.selfJmap) {
this.selfJmap.dispose();
}
this.selfJmap.dispose();
},
handleUpdateScreen() {
this.maskOpen = false;

View File

@ -76,7 +76,7 @@ export default {
}
},
beforeDestroy() {
if (!this.dialogShow) {
if (this.selfJmap && this.selfJmap._disposeFlag) {
this.destroy();
}
},
@ -98,25 +98,9 @@ export default {
});
},
destroy() {
if (this.selfJmap) {
this.selfJmap.dispose();
}
this.selfJmap.dispose();
},
showTroMode() {
// const nameList = Object.keys(this.$store.state.map.map || {});
// let list = [];
// nameList.forEach(item => {
// if (item !== 'skinVO') {
// const data = this.$store.state.map.map[item];
// if (data && data.constructor === Array) {
// list = [...list, ...data];
// }
// }
// });
// const trainList = [];
// this.trainList.forEach(item => {
// trainList.push({ code: item.groupNumber, deviceType:'TRAIN' });
// });
const mapDevice = this.$store.state.map.mapDevice;
const list = [];
for (const key in mapDevice) {
@ -124,7 +108,6 @@ export default {
}
this.handleUpdateScreen();
this.$jlmap.updateShowMode(list, '05'); //
// this.$store.dispatch('training/updateMapState', trainList);
},
handleUpdateScreen() {
this.maskOpen = false;

View File

@ -84,7 +84,7 @@ export default {
}
},
beforeDestroy() {
if (!this.dialogShow) {
if (this.selfJmap && !this.selfJmap._disposeFlag) {
this.destroy();
}
},
@ -112,9 +112,7 @@ export default {
this.selfJmap = Vue.prototype.$jlmap;
},
destroy() {
if (this.selfJmap) {
this.selfJmap.dispose();
}
this.selfJmap.dispose();
},
goTroDialog() {
this.doClose();