diff --git a/src/api/simulation.js b/src/api/simulation.js index 2ce57b204..f5dd8ed1b 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -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' diff --git a/src/views/newMap/displayNew/menuSchema.vue b/src/views/newMap/displayNew/menuSchema.vue index 8d5ba0cb3..efffb7621 100644 --- a/src/views/newMap/displayNew/menuSchema.vue +++ b/src/views/newMap/displayNew/menuSchema.vue @@ -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(() => {