调整综合仿真开始状态管理

This commit is contained in:
fan 2020-08-04 14:17:47 +08:00
parent 57aabfc973
commit fb64429ee8
3 changed files with 8 additions and 9 deletions

View File

@ -605,7 +605,6 @@ const training = {
const payLoad = { start: true, mode: TrainingMode.NORMAL };
dispatch('startTraining', payLoad);
},
/**
* 结束模式
*/

View File

@ -319,7 +319,7 @@ export default {
this.$store.dispatch('training/countTime');
this.$store.dispatch('map/setRunPlanStatus', resp.data.planRunning);
if (resp.data.planRunning) {
this.$store.dispatch('training/simulationStart');
this.$store.dispatch('training/start');
} else {
this.$store.dispatch('training/over');
}

View File

@ -260,13 +260,13 @@ export default {
time: model.initTime
};
ranAsPlan(data, this.group).then(res => {
this.$store.dispatch('training/simulationStart').then(() => {
// this.$store.dispatch('training/simulationStart').then(() => {
if (this.project == 'jsxt') {
this.jsStart = false;
}
this.$store.dispatch('map/setRunPlanStatus', true);
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${model.initTime}`));
});
// });
}).catch((error) => {
this.isDisable = false;
if (error.code == '5001') {