Jelajahi Sumber

Merge branch 'master' of github.com:gcpaas/DataRoom

liu.tao3 1 tahun lalu
induk
melakukan
af3e00e163
1 mengubah file dengan 11 tambahan dan 7 penghapusan
  1. 11 7
      data-room-ui/packages/BasicComponents/LinkChart/index.vue

+ 11 - 7
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) {
       // 文本数据配置原则:选择数据集则以后端返回的数据为主,否则以设置面板中标题设置为准