调整综合仿真开始状态管理
This commit is contained in:
parent
57aabfc973
commit
fb64429ee8
@ -605,7 +605,6 @@ const training = {
|
|||||||
const payLoad = { start: true, mode: TrainingMode.NORMAL };
|
const payLoad = { start: true, mode: TrainingMode.NORMAL };
|
||||||
dispatch('startTraining', payLoad);
|
dispatch('startTraining', payLoad);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 结束模式
|
* 结束模式
|
||||||
*/
|
*/
|
||||||
|
@ -319,7 +319,7 @@ export default {
|
|||||||
this.$store.dispatch('training/countTime');
|
this.$store.dispatch('training/countTime');
|
||||||
this.$store.dispatch('map/setRunPlanStatus', resp.data.planRunning);
|
this.$store.dispatch('map/setRunPlanStatus', resp.data.planRunning);
|
||||||
if (resp.data.planRunning) {
|
if (resp.data.planRunning) {
|
||||||
this.$store.dispatch('training/simulationStart');
|
this.$store.dispatch('training/start');
|
||||||
} else {
|
} else {
|
||||||
this.$store.dispatch('training/over');
|
this.$store.dispatch('training/over');
|
||||||
}
|
}
|
||||||
|
@ -260,13 +260,13 @@ export default {
|
|||||||
time: model.initTime
|
time: model.initTime
|
||||||
};
|
};
|
||||||
ranAsPlan(data, this.group).then(res => {
|
ranAsPlan(data, this.group).then(res => {
|
||||||
this.$store.dispatch('training/simulationStart').then(() => {
|
// this.$store.dispatch('training/simulationStart').then(() => {
|
||||||
if (this.project == 'jsxt') {
|
if (this.project == 'jsxt') {
|
||||||
this.jsStart = false;
|
this.jsStart = false;
|
||||||
}
|
}
|
||||||
this.$store.dispatch('map/setRunPlanStatus', true);
|
this.$store.dispatch('map/setRunPlanStatus', true);
|
||||||
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${model.initTime}`));
|
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${model.initTime}`));
|
||||||
});
|
// });
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.isDisable = false;
|
this.isDisable = false;
|
||||||
if (error.code == '5001') {
|
if (error.code == '5001') {
|
||||||
|
Loading…
Reference in New Issue
Block a user