From 42112659c5b19b1292b40bd5ee7d354340322f01 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 2 Nov 2022 10:28:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/simulationMenu.vue | 16 ++++++++++++++-- src/views/trainingManage/designIndex.vue | 13 +------------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/views/newMap/display/simulationMenu.vue b/src/views/newMap/display/simulationMenu.vue index 8b2e41b54..beda0afbd 100644 --- a/src/views/newMap/display/simulationMenu.vue +++ b/src/views/newMap/display/simulationMenu.vue @@ -57,7 +57,7 @@ - + @@ -65,7 +65,7 @@ import {getPublishTrainingDetail, loadPublishTraining} from '@/api/jmap/training'; // import DistributeDraft from '@/views/components/limits/distribute'; import { getPostByProjectCode } from '@/api/learn'; -import { getSessionStorage } from '@/utils/auth'; +import { getSessionStorage, getLocalStorage } from '@/utils/auth'; import { ProjectCode } from '@/scripts/ProjectConfig'; import ContectUs from './contectUs'; import ModifyTime from './modifyTime'; @@ -144,6 +144,7 @@ export default { return { isShowMenuList: false, scriptMode: ScriptMode.TEACH, + showConfig: {}, menuList: [], active: -1, openBigLPF: null, @@ -498,6 +499,9 @@ export default { }, trainingDetail() { return this.$store.state.trainingNew.trainingDetail; + }, + trainingDesignShow() { + return this.showConfig.trainingDesign || false; } }, watch:{ @@ -531,6 +535,9 @@ export default { } } }, + created() { + this.getDomConfig(); + }, mounted() { // jl3dmodel // const dataMap = { @@ -569,6 +576,11 @@ export default { this.$store.dispatch('trainingNew/changeTeachMode', ''); }, methods: { + getDomConfig() { + let domConfig = getLocalStorage('domConfig') || `{}`; + domConfig = JSON.parse(domConfig); + this.showConfig = domConfig; + }, showChidren(data, index) { event.stopPropagation(); this.active = index; diff --git a/src/views/trainingManage/designIndex.vue b/src/views/trainingManage/designIndex.vue index 0a7b1c11f..b243204f1 100644 --- a/src/views/trainingManage/designIndex.vue +++ b/src/views/trainingManage/designIndex.vue @@ -1,7 +1,7 @@