综合演练代码调整
This commit is contained in:
parent
3b2d431400
commit
e69840c87f
@ -75,6 +75,7 @@ export default {
|
||||
}
|
||||
});
|
||||
lastData = JSON.parse(lastData);
|
||||
lastData = lastData.filter(memberIn=>{ return memberIn.role != '观众'; });
|
||||
lastData.map(member=>{
|
||||
const deviceName = member.deviceName ? '-' + member.deviceName : '';
|
||||
const memberName = member.name ? '-' + member.name : '';
|
||||
|
@ -320,6 +320,7 @@ export default {
|
||||
this.$store.dispatch('scriptRecord/updateSimulationPause', resp.data.pause);
|
||||
this.questId = Number(resp.data.questId) || 0;
|
||||
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().getFullYear()} ${timeFormat(resp.data.systemTime)}`));
|
||||
this.$store.dispatch('map/setRunPlanStatus', resp.data.planRunning);
|
||||
if (resp.data.planRunning) {
|
||||
this.$store.dispatch('training/simulationStart');
|
||||
} else {
|
||||
|
@ -113,12 +113,16 @@ export default {
|
||||
if (val) {
|
||||
this.$store.dispatch('training/simulationStart', { start: true });
|
||||
}
|
||||
},
|
||||
'$store.state.map.runPlanStatus': function (val) {
|
||||
this.isDisable = val;
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
this.userId = this.$store.state.user.id;
|
||||
this.backLoading = false;
|
||||
await this.initLoadPage();
|
||||
this.isDisable = this.$store.state.map.runPlanStatus;
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.$store.dispatch('training/setGroup', '');
|
||||
|
Loading…
Reference in New Issue
Block a user