From 9ffd70de6391c32cc95f5aea4dee4227ba2f84c2 Mon Sep 17 00:00:00 2001 From: fan Date: Mon, 28 Nov 2022 17:59:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/simulation.js | 2 +- src/store/modules/runplan.js | 10 +- src/utils/loaddata.js | 14 +- src/views/newMap/display/index.vue | 104 +-- .../display/memberManage/membersManage.vue | 21 - src/views/newMap/display/simulationMenu.vue | 6 +- .../{ => simulationMenu}/contectUs.vue | 5 - .../display/simulationMenu/deviceManage.vue | 198 ++++++ .../display/simulationMenu/diagramLoad.vue | 79 +++ .../display/simulationMenu/diagramPreview.vue | 651 ++++++++++++++++++ .../display/{ => simulationMenu}/flowData.vue | 2 - .../display/{ => simulationMenu}/setTime.vue | 0 .../simulationMenu.vue} | 270 ++++---- src/views/planSchedule/schedule.vue | 1 + .../publish/publishMap/editSubsystem.vue | 5 +- 15 files changed, 1138 insertions(+), 230 deletions(-) rename src/views/newMap/display/{ => simulationMenu}/contectUs.vue (88%) create mode 100644 src/views/newMap/display/simulationMenu/deviceManage.vue create mode 100644 src/views/newMap/display/simulationMenu/diagramLoad.vue create mode 100644 src/views/newMap/display/simulationMenu/diagramPreview.vue rename src/views/newMap/display/{ => simulationMenu}/flowData.vue (98%) rename src/views/newMap/display/{ => simulationMenu}/setTime.vue (100%) rename src/views/newMap/display/{newSimulationMenu.vue => simulationMenu/simulationMenu.vue} (50%) diff --git a/src/api/simulation.js b/src/api/simulation.js index a4817ffee..7cb030123 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -296,7 +296,7 @@ export function modifySystemTime(data, group) { /** 新版地图按计划行车 */ export function ranAsPlan(data, group) { return request({ - url: `/simulation/${group}/ranAsPlan`, + url: `/simulation/new/${group}/runAsPlan`, method: 'post', data: data }); diff --git a/src/store/modules/runplan.js b/src/store/modules/runplan.js index a56649ab3..6857f69e5 100644 --- a/src/store/modules/runplan.js +++ b/src/store/modules/runplan.js @@ -176,10 +176,7 @@ const runPlan = { }, /** 设置stations数据 */ setStations: ({ commit }, mapModel) => { - return new Promise((resolve) => { - commit('setStations', mapModel); - resolve(mapModel); - }); + commit('setStations', mapModel); }, /** 重置运行图数据更新池 */ resetRunPlanData:({ commit }) => { @@ -218,10 +215,7 @@ const runPlan = { }, /** 清空数据*/ clear: ({ commit }) => { - return new Promise((resolve) => { - commit('clear'); - resolve(); - }); + commit('clear'); }, draftClear: ({ commit }) => { return new Promise(resolve => { diff --git a/src/utils/loaddata.js b/src/utils/loaddata.js index f08ca5b0c..351c8dd23 100644 --- a/src/utils/loaddata.js +++ b/src/utils/loaddata.js @@ -57,7 +57,7 @@ export function handleMapData(mapData, type) { }); } } -export function loadRunPlanData(group, dataError) { +export function loadRunPlanData(group) { if (!store.state.runPlan.runPlanInfo || !store.state.runPlan.runPlanInfo.templateId) { MessageBox.confirm('未获取到运行图信息!', '提示', { confirmButtonText: '确定', @@ -78,7 +78,7 @@ export function loadRunPlanData(group, dataError) { resp.data.version = store.state.runPlan.runPlanInfo.version; dbUpdateData('runPlan', resp.data); }).catch(error => { - runPlanErrorHandle(error, dataError); + runPlanErrorHandle(error); }); } else { getEveryDayRunPlanNew(group).then(async (resp) => { @@ -88,12 +88,12 @@ export function loadRunPlanData(group, dataError) { resp.data.version = store.state.runPlan.runPlanInfo.version; dbAddData('runPlan', resp.data); }).catch(error => { - runPlanErrorHandle(error, dataError); + runPlanErrorHandle(error); }); } }); } -export function runPlanErrorHandle(error, dataError) { +export function runPlanErrorHandle(error) { store.dispatch('runPlan/setPlanData', []); if (error.code == 30001) { MessageBox.confirm('今日运行图未加载', '提示', { @@ -101,12 +101,6 @@ export function runPlanErrorHandle(error, dataError) { showCancelButton: false, type: 'warning' }); - } else if (!dataError) { - MessageBox.confirm('获取运行图数据失败', '提示', { - confirmButtonText: '确定', - showCancelButton: false, - type: 'warning' - }); } } diff --git a/src/views/newMap/display/index.vue b/src/views/newMap/display/index.vue index 31bf01166..d843b55e7 100644 --- a/src/views/newMap/display/index.vue +++ b/src/views/newMap/display/index.vue @@ -5,29 +5,50 @@ + + + + + + diff --git a/src/views/newMap/display/simulationMenu.vue b/src/views/newMap/display/simulationMenu.vue index 5809cc75f..2d7e5cc0e 100644 --- a/src/views/newMap/display/simulationMenu.vue +++ b/src/views/newMap/display/simulationMenu.vue @@ -65,10 +65,10 @@ import {getPublishTrainingDetail, loadPublishTraining} from '@/api/jmap/training import { getPostByProjectCode } from '@/api/learn'; import { getSessionStorage } from '@/utils/auth'; import { ProjectCode } from '@/scripts/ProjectConfig'; -import ContectUs from './contectUs'; +import ContectUs from './simulationMenu/contectUs'; import ModifyTime from './modifyTime'; -import FlowData from './flowData'; -import SetTime from './setTime'; +import FlowData from './simulationMenu/flowData'; +import SetTime from './simulationMenu/setTime'; import Jl3dDevice from '@/views/jlmap3d/device/jl3ddevice'; import { clearSimulation, ranAsPlan, exitRunPlan } from '@/api/simulation'; import { getToken } from '@/utils/auth'; diff --git a/src/views/newMap/display/contectUs.vue b/src/views/newMap/display/simulationMenu/contectUs.vue similarity index 88% rename from src/views/newMap/display/contectUs.vue rename to src/views/newMap/display/simulationMenu/contectUs.vue index 05ebd0d1c..d24838220 100644 --- a/src/views/newMap/display/contectUs.vue +++ b/src/views/newMap/display/simulationMenu/contectUs.vue @@ -10,11 +10,6 @@
电    话:4000500081
邮    箱:zhrc@richortech.com
网    址:www.richortech.com
-
联系人:许经理
diff --git a/src/views/newMap/display/simulationMenu/deviceManage.vue b/src/views/newMap/display/simulationMenu/deviceManage.vue new file mode 100644 index 000000000..222cc0244 --- /dev/null +++ b/src/views/newMap/display/simulationMenu/deviceManage.vue @@ -0,0 +1,198 @@ + + + + + diff --git a/src/views/newMap/display/simulationMenu/diagramLoad.vue b/src/views/newMap/display/simulationMenu/diagramLoad.vue new file mode 100644 index 000000000..653962ad4 --- /dev/null +++ b/src/views/newMap/display/simulationMenu/diagramLoad.vue @@ -0,0 +1,79 @@ + + + + diff --git a/src/views/newMap/display/simulationMenu/diagramPreview.vue b/src/views/newMap/display/simulationMenu/diagramPreview.vue new file mode 100644 index 000000000..c78b7b564 --- /dev/null +++ b/src/views/newMap/display/simulationMenu/diagramPreview.vue @@ -0,0 +1,651 @@ + + + + diff --git a/src/views/newMap/display/flowData.vue b/src/views/newMap/display/simulationMenu/flowData.vue similarity index 98% rename from src/views/newMap/display/flowData.vue rename to src/views/newMap/display/simulationMenu/flowData.vue index 918ef4902..57f1f44ce 100644 --- a/src/views/newMap/display/flowData.vue +++ b/src/views/newMap/display/simulationMenu/flowData.vue @@ -29,10 +29,8 @@ - diff --git a/src/views/planSchedule/schedule.vue b/src/views/planSchedule/schedule.vue index ed1062c25..80d377e43 100644 --- a/src/views/planSchedule/schedule.vue +++ b/src/views/planSchedule/schedule.vue @@ -193,6 +193,7 @@ export default { let series = []; const stations = this.$store.state.runPlan.stations; const planData = this.$store.state.runPlan.planData; + console.log(stations, planData, '-----------'); this.kmRangeMap = this.PlanParser.convertStationsToMap(stations); if (this.$route.query.lineCode === '07') { series = this.pushModels(series, [this.PlanParser.initializeAxisX(stations)]); diff --git a/src/views/publish/publishMap/editSubsystem.vue b/src/views/publish/publishMap/editSubsystem.vue index 83615ea91..2b9a9a6b7 100644 --- a/src/views/publish/publishMap/editSubsystem.vue +++ b/src/views/publish/publishMap/editSubsystem.vue @@ -150,13 +150,16 @@ export default { lpfDataList: [], frontTableData: [ { key: 'singleMember', label: '是否单角色', value: false, type: 'checkbox' }, + { key: 'singleRoleType', label: '是否单类型角色', value: false, type: 'checkbox' }, { key: 'singleClient', label: '是否单客户端', value: false, type: 'checkbox' }, { key: 'client', label: '初始客户端', value: '', type: 'select', optionList: clientList}, { key: 'hasTraining', label: '是否有实训', value: false, type: 'checkbox'}, { key: 'hasExam', label: '是否有考试', value: false, type: 'checkbox' }, { key: 'trainingDesign', label: '是否实训设计', value: false, type: 'checkbox' }, { key: 'hasLpf', label: '是否有大客流', value: false, type: 'checkbox' }, - { key: 'hasVoice', label: '是否有语音指令', value: false, type: 'checkbox' } + { key: 'hasVoice', label: '是否有语音指令', value: false, type: 'checkbox' }, + { key: 'isJoint', label: '是否综合演练', value: false, type: 'checkbox' }, + { key: 'hasDeviceManage', label: '是否有设备管理', value: false, type: 'checkbox' } ], endTableData: [ { key: 'DEFAULT_MEMBER', label: '默认仿真成员', value: '', type: 'select', optionList: [] },