From 21c18e8de4a5b60bc55e1830923f7c9acb407f90 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 2 Jan 2020 09:22:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=AF=8F=E6=97=A5=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E5=9B=BE=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/simulation.js | 2 +- src/views/newMap/displayNew/menuSchema.vue | 24 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) 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(() => {