添加地图数据维护中提示&存在仿真管理添加类型

This commit is contained in:
fan 2020-05-09 19:35:56 +08:00
parent fc68903ff5
commit c5f63c9e52
2 changed files with 5 additions and 2 deletions

View File

@ -400,7 +400,7 @@ export default {
} }
} else if (resp && resp.code == 200 && resp.data && resp.data.dataError) { } else if (resp && resp.code == 200 && resp.data && resp.data.dataError) {
this.dataError = true; this.dataError = true;
this.$messageBox('此地图数据正在维护中!'); this.$alert('此地图数据正在维护中!', {confirmButtonText: '确定', callback: action => { this.$router.go(-1); }});
} }
}, },
// //

View File

@ -298,7 +298,7 @@ export default {
}, },
async loadSimulationInfo() { async loadSimulationInfo() {
const resp = await getSimulationInfoNew(this.group); const resp = await getSimulationInfoNew(this.group);
if (resp && resp.code == 200) { if (resp && resp.code == 200 && resp.data && !resp.data.dataError) {
this.$store.dispatch('scriptRecord/updateSimulationPause', resp.data.pause); this.$store.dispatch('scriptRecord/updateSimulationPause', resp.data.pause);
this.questId = Number(resp.data.questId) || 0; this.questId = Number(resp.data.questId) || 0;
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().getFullYear()} ${timeFormat(resp.data.systemTime)}`)); this.$store.dispatch('training/setInitTime', +new Date(`${new Date().getFullYear()} ${timeFormat(resp.data.systemTime)}`));
@ -312,6 +312,9 @@ export default {
} else if (this.isScript) { } else if (this.isScript) {
this.$refs.menuScript.initPlannedDriving(resp.data.planRunning); this.$refs.menuScript.initPlannedDriving(resp.data.planRunning);
} }
} else if (resp && resp.code == 200 && resp.data && resp.data.dataError) {
this.dataError = true;
this.$alert('此地图数据正在维护中!', {confirmButtonText: '确定', callback: action => { this.$router.go(-1); }});
} }
}, },
async getUserRole() { async getUserRole() {