From 6fb8812039731a7705de42e2df1951f4a47b942c Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Tue, 1 Nov 2022 17:45:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E8=AE=BE=E8=AE=A1=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/simulationMenu.vue | 4 - src/views/trainingManage/create.vue | 2 +- src/views/trainingManage/designIndex.vue | 472 ++++++++++++++++++++ src/views/trainingManage/index.vue | 33 +- src/views/trainingManage/list.vue | 329 ++++++++++++++ src/views/trainingPlatform/simulation.vue | 3 +- 6 files changed, 821 insertions(+), 22 deletions(-) create mode 100644 src/views/trainingManage/designIndex.vue create mode 100644 src/views/trainingManage/list.vue diff --git a/src/views/newMap/display/simulationMenu.vue b/src/views/newMap/display/simulationMenu.vue index 49f8c8992..8b2e41b54 100644 --- a/src/views/newMap/display/simulationMenu.vue +++ b/src/views/newMap/display/simulationMenu.vue @@ -434,7 +434,6 @@ export default { { label: '联系方式', name: 'contectUs', click: this.contectUs, isShow: true }, { label: '成员管理', name: 'memberManage', click: this.memberManage, isShow: true }, { label: '实训', name: 'trainingPane', click: this.trainingPane, isShow: true }, - { label: '实训设计', name: 'trainingDesign', click: this.trainingDesign, isShow: true }, { label: '切换客流数据', name: 'changeFlowData', click: this.changeFlowData, isShow: true }, // { label: '权限分发', name: 'distribute', click: this.distribute, isShow: true }, { @@ -957,9 +956,6 @@ export default { trainingPane() { this.$refs.trainingList.doShow(); }, - trainingDesign() { - this.$refs.trainingDesign.doShow(); - }, changeFlowData() { this.hideMenuList(); this.$refs.flowData.doShow(); diff --git a/src/views/trainingManage/create.vue b/src/views/trainingManage/create.vue index 5d0f7e5c8..4c1ad8cea 100644 --- a/src/views/trainingManage/create.vue +++ b/src/views/trainingManage/create.vue @@ -168,7 +168,7 @@ export default { }); }, doClose() { - this.$refs.dataform.resetForm(); + this.$refs.dataform && this.$refs.dataform.resetForm(); this.dialogVisible = false; } } diff --git a/src/views/trainingManage/designIndex.vue b/src/views/trainingManage/designIndex.vue new file mode 100644 index 000000000..0a7b1c11f --- /dev/null +++ b/src/views/trainingManage/designIndex.vue @@ -0,0 +1,472 @@ + + + + diff --git a/src/views/trainingManage/index.vue b/src/views/trainingManage/index.vue index 4df2804d9..51367eec2 100644 --- a/src/views/trainingManage/index.vue +++ b/src/views/trainingManage/index.vue @@ -1,28 +1,28 @@ + diff --git a/src/views/trainingPlatform/simulation.vue b/src/views/trainingPlatform/simulation.vue index 25fa8ad06..092f4c4f0 100644 --- a/src/views/trainingPlatform/simulation.vue +++ b/src/views/trainingPlatform/simulation.vue @@ -27,7 +27,7 @@ import { superAdmin, admin } from '@/router/index'; import selectRole from './selectRole/list'; import { launchFullscreen } from '@/utils/screen'; import { createSimulation } from '@/api/simulation'; -import { getSessionStorage } from '@/utils/auth'; +import { getSessionStorage, setLocalStorage } from '@/utils/auth'; export default { name: 'Simulation', @@ -217,6 +217,7 @@ export default { }, enterSimulation(system) { const data = {...system.paramVO, mapId: system.mapId}; + setLocalStorage('domConfig', JSON.stringify(system.paramVO.domConfig || {})); createSimulation(data).then(resp => { const query = { lineCode: this.$route.query.lineCode, group: resp.data, mapId: system.mapId, project: this.project}; if (this.loadingProjectList.includes(this.project)) {