From 9d1a6b56695fb25623afc2af5e35da36a9178c9d Mon Sep 17 00:00:00 2001 From: "wu.jian2" Date: Wed, 21 Jun 2023 15:22:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=84=E4=BB=B6=E5=BA=93=EF=BC=8C?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E4=B8=9A=E5=8A=A1=E7=BB=84=E4=BB=B6=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E8=BF=94=E5=9B=9E=E6=BF=80=E6=B4=BB=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E7=9A=84=E4=BE=A7=E8=BE=B9menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/customDatasetComponents/jsDataSet/index.vue | 1 - data-room-ui/packages/BigScreenComponentMag/SideMenu.vue | 5 +++++ data-room-ui/packages/BizComponent/index.vue | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/data-room-ui/example/customDatasetComponents/jsDataSet/index.vue b/data-room-ui/example/customDatasetComponents/jsDataSet/index.vue index 6b78b881..4b955cac 100644 --- a/data-room-ui/example/customDatasetComponents/jsDataSet/index.vue +++ b/data-room-ui/example/customDatasetComponents/jsDataSet/index.vue @@ -602,7 +602,6 @@ export default { }, // 脚本执行 scriptExecute (isInit = false) { - console.log(isInit) if (this.dataForm.config.script) { const javascript = this.dataForm.config.script let scriptMethod = null diff --git a/data-room-ui/packages/BigScreenComponentMag/SideMenu.vue b/data-room-ui/packages/BigScreenComponentMag/SideMenu.vue index fb8d904a..68538e02 100644 --- a/data-room-ui/packages/BigScreenComponentMag/SideMenu.vue +++ b/data-room-ui/packages/BigScreenComponentMag/SideMenu.vue @@ -37,6 +37,11 @@ export default { } }, mounted () { + const type = this.$route?.query?.type + if (type) { + this.activeType = type + this.$emit('getPageInfo', type) + } }, methods: { // 点击左侧组件 diff --git a/data-room-ui/packages/BizComponent/index.vue b/data-room-ui/packages/BizComponent/index.vue index e9b0ff9f..eee0fb4c 100644 --- a/data-room-ui/packages/BizComponent/index.vue +++ b/data-room-ui/packages/BizComponent/index.vue @@ -220,7 +220,10 @@ export default { }, backManagement () { this.$router.push({ - path: window.BS_CONFIG?.routers?.componentUrl || '/big-screen-components' + path: window.BS_CONFIG?.routers?.componentUrl || '/big-screen-components', + query: { + type: 'bizComponent' + } }) }, save () {