获取每日运行图接口

This commit is contained in:
fan 2020-01-02 09:22:44 +08:00
parent 396e901a4d
commit 21c18e8de4
2 changed files with 13 additions and 13 deletions

View File

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

View File

@ -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(() => {