综合演练代码调整

This commit is contained in:
joylink_cuiweidong 2020-05-19 17:05:23 +08:00
parent 3b2d431400
commit e69840c87f
3 changed files with 6 additions and 0 deletions

View File

@ -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 : '';

View File

@ -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 {

View File

@ -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', '');