From 84d162cc5c9134f14bf35c239049faf9cbbe3029 Mon Sep 17 00:00:00 2001 From: "liu.shiyi" Date: Wed, 13 Sep 2023 16:48:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=93=BE=E6=8E=A5=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E6=80=81=E4=B8=8D=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BasicComponents/LinkChart/index.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/data-room-ui/packages/BasicComponents/LinkChart/index.vue b/data-room-ui/packages/BasicComponents/LinkChart/index.vue index badb154e..0b95952f 100644 --- a/data-room-ui/packages/BasicComponents/LinkChart/index.vue +++ b/data-room-ui/packages/BasicComponents/LinkChart/index.vue @@ -46,17 +46,21 @@ export default { methods: { ...mapMutations('bigScreen', ['changeIframeDialog']), linkHandle () { - if (this.config.customize.url) { - if (this.config.customize.openType === 'dialog') { - if (this.isPreview) { - this.$refs.iframeDialogPreview.dialogVisible = true + // 设计态点击不进行跳转,预览态进行跳转 + if (this.isPreview){ + if (this.config.customize.url) { + if (this.config.customize.openType === 'dialog') { + if (this.isPreview) { + this.$refs.iframeDialogPreview.dialogVisible = true + } else { + this.changeIframeDialog(true) + } } else { - this.changeIframeDialog(true) + window.open(this.config.customize.url, this.config.customize.openType) } - } else { - window.open(this.config.customize.url, this.config.customize.openType) } } + }, dataFormatting (config, data) { // 文本数据配置原则:选择数据集则以后端返回的数据为主,否则以设置面板中标题设置为准