综合演练列车显示bug调整

This commit is contained in:
fan 2021-09-28 18:16:05 +08:00
parent 8aa97948b6
commit 096e87803d
3 changed files with 3 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class Painter {
const instance = device.instance;
if (instance) {
this.mapInstanceLevel[device._type].remove(instance);
device.instance = null;
// device.instance = null;
}
}

View File

@ -344,7 +344,7 @@ export default class Train extends Group {
// 设置状态
setState(model, object) {
const flag = model && model.trainWindowModel ? model.trainWindowModel.reversal : false;
if (!this.model.sectionModel || !store.getters['map/checkDeviceShow'](this.model.sectionModel.code) || !store.state.training.started) {
if (!this.model.sectionModel || !store.getters['map/checkDeviceShow'](this.model.sectionModel.code)) {
this.eachChild(item => { item.hide(); });
} else if (model) {
this.recover();

View File

@ -370,6 +370,7 @@ export default {
},
end() {
exitRunPlan(this.group).then(()=>{
this.$store.dispatch('map/clearJlmapTrainView');
this.$store.dispatch('map/setTrainWindowShow', false);
this.$store.dispatch('map/resetActiveTrainList', false);
}).catch(() => {