获取每日运行图接口
This commit is contained in:
parent
396e901a4d
commit
21c18e8de4
@ -454,7 +454,7 @@ export function newMapOperate(group, operationId, data) {
|
||||
});
|
||||
}
|
||||
/** 新版地图根据group获取仿真运行图 */
|
||||
export function getRunPlanNew(group) {
|
||||
export function getEveryDayRunPlanNew(group) {
|
||||
return request({
|
||||
url: `/simulation/${group}/runPlan`,
|
||||
method: 'get'
|
||||
|
@ -34,7 +34,7 @@ import AddQuest from './demon/addQuest';
|
||||
import { mapGetters } from 'vuex';
|
||||
import { OperateMode } from '@/scripts/ConstDic';
|
||||
import { getStationList, queryRunPlan } from '@/api/runplan';
|
||||
import { getEveryDayRunPlanData } from '@/api/simulation';
|
||||
import { getEveryDayRunPlanNew } from '@/api/simulation';
|
||||
import {getRpDetailByUserMapId} from '@/api/designPlatform';
|
||||
|
||||
// 右上角操作
|
||||
@ -134,17 +134,17 @@ export default {
|
||||
}
|
||||
|
||||
} else {
|
||||
// getEveryDayRunPlanData(this.group).then(resp => {
|
||||
// this.$store.dispatch('runPlan/setPlanData', resp.data);
|
||||
// this.viewDisabled = false;
|
||||
// }).catch(error => {
|
||||
// this.$store.dispatch('runPlan/setPlanData', []);
|
||||
// if (error.code == 30001) {
|
||||
// this.$messageBox(this.$t('display.schema.todayRunDiagramNoLoad'));
|
||||
// } else {
|
||||
// this.$messageBox(this.$t('display.schema.getRunDiagramFail'));
|
||||
// }
|
||||
// });
|
||||
getEveryDayRunPlanNew(this.group).then(resp => {
|
||||
this.$store.dispatch('runPlan/setPlanData', resp.data);
|
||||
this.viewDisabled = false;
|
||||
}).catch(error => {
|
||||
this.$store.dispatch('runPlan/setPlanData', []);
|
||||
if (error.code == 30001) {
|
||||
this.$messageBox(this.$t('display.schema.todayRunDiagramNoLoad'));
|
||||
} else {
|
||||
this.$messageBox(this.$t('display.schema.getRunDiagramFail'));
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}).catch(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user