剧本编制代码调整

This commit is contained in:
joylink_cuiweidong 2020-07-09 16:54:31 +08:00
parent 9b3cd2dc3d
commit 3aa0d55ea3
3 changed files with 5 additions and 1 deletions

View File

@ -749,8 +749,9 @@ const map = {
state.activeTrainListUpdate++;
},
resetActiveTrainList:(state) => {
state.activeTrainListUpdate = 0;
state.activeTrainList = [];
state.activeTrainListUpdate = 0;
state.activeTrainListChange = 0;
},
setDeleteCount: (state) => {
state.deleteCount++;

View File

@ -177,6 +177,7 @@ export default {
this.$store.dispatch('training/setMapDefaultState').then(() => {
this.$store.dispatch('map/setRunPlanStatus', false);
this.$store.dispatch('map/clearJlmapTrainView');
this.$store.dispatch('map/resetActiveTrainList');
this.$store.dispatch('map/setTrainWindowShow', false);
});
});
@ -193,6 +194,7 @@ export default {
back() {
this.$store.dispatch('training/over').then(() => {
EventBus.$emit('runPlanStop');
this.$store.dispatch('map/resetActiveTrainList');
EventBus.$emit('chatSubscribeStop');
history.go(-1);
Notification.closeAll();

View File

@ -301,6 +301,7 @@ export default {
this.memberId = '';
this.$store.dispatch('map/setRunPlanStatus', false);
this.$store.dispatch('training/setPrdType', '01');
this.$store.dispatch('map/resetActiveTrainList');
// this.initAutoSaveScript();
this.$store.state.scriptRecord.bgSet;
this.$store.dispatch('scriptRecord/updateBgSet', false);