添加地图数据维护中提示&存在仿真管理添加类型
This commit is contained in:
parent
fc68903ff5
commit
c5f63c9e52
@ -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); }});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 加载地图数据
|
// 加载地图数据
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user