diff --git a/core/core-frontend/src/components/visualization/LinkJumpSet.vue b/core/core-frontend/src/components/visualization/LinkJumpSet.vue index e5a18bf34f..777952fb42 100644 --- a/core/core-frontend/src/components/visualization/LinkJumpSet.vue +++ b/core/core-frontend/src/components/visualization/LinkJumpSet.vue @@ -106,10 +106,12 @@ > {{ t('visualization.now_window') }} {{ t('visualization.new_window') }} + {{ t('visualization.pop_window') }} {{ t('visualization.now_window') }} {{ t('visualization.new_window') }} + {{ t('visualization.pop_window') }} diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index cd3fea3096..d3dad42e75 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -2352,6 +2352,7 @@ export default { open_mode: '打开方式', new_window: '新开页面', now_window: '当前页面', + pop_window: '弹窗页面', hyperLinks: '目标地址', link_open_tips: '仪表板非编辑状态可打开链接', data_loading: '数据准备中...', diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index 4ff271bf23..1c9a812ba4 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -375,10 +375,19 @@ const divEmbedded = type => { const windowsJump = (url, jumpType) => { try { - const newWindow = window.open(url, jumpType) + let newWindow + if ('newPop' === jumpType) { + window.open( + url, + '_blank', + 'width=800,height=600,left=200,top=100,toolbar=no,scrollbars=yes,resizable=yes,location=no' + ) + } else { + newWindow = window.open(url, jumpType) + } initOpenHandler(newWindow) } catch (e) { - ElMessage.error(t('visualization.url_check_error') + ':' + url) + console.warn(t('visualization.url_check_error') + ':' + url) } }