综合演练列车显示bug调整
This commit is contained in:
parent
8aa97948b6
commit
096e87803d
@ -96,7 +96,7 @@ class Painter {
|
|||||||
const instance = device.instance;
|
const instance = device.instance;
|
||||||
if (instance) {
|
if (instance) {
|
||||||
this.mapInstanceLevel[device._type].remove(instance);
|
this.mapInstanceLevel[device._type].remove(instance);
|
||||||
device.instance = null;
|
// device.instance = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ export default class Train extends Group {
|
|||||||
// 设置状态
|
// 设置状态
|
||||||
setState(model, object) {
|
setState(model, object) {
|
||||||
const flag = model && model.trainWindowModel ? model.trainWindowModel.reversal : false;
|
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(); });
|
this.eachChild(item => { item.hide(); });
|
||||||
} else if (model) {
|
} else if (model) {
|
||||||
this.recover();
|
this.recover();
|
||||||
|
@ -370,6 +370,7 @@ export default {
|
|||||||
},
|
},
|
||||||
end() {
|
end() {
|
||||||
exitRunPlan(this.group).then(()=>{
|
exitRunPlan(this.group).then(()=>{
|
||||||
|
this.$store.dispatch('map/clearJlmapTrainView');
|
||||||
this.$store.dispatch('map/setTrainWindowShow', false);
|
this.$store.dispatch('map/setTrainWindowShow', false);
|
||||||
this.$store.dispatch('map/resetActiveTrainList', false);
|
this.$store.dispatch('map/resetActiveTrainList', false);
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user