From 608bd428365094f1306cb3efbc89d4c97d810ce5 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 20 Apr 2026 17:59:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=8E=86=E5=8F=B2=E8=AE=BF?= =?UTF-8?q?=E8=A7=86=E5=9C=A8=E6=96=B0=E7=AA=97=E5=8F=A3=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/splitScreen.js | 6 +++++- .../trials-panel/reading/dicoms3D/components/ReportPage.vue | 2 +- .../reading/dicoms3D/components/VolumeViewport.vue | 6 ++---- .../reading/dicoms3D/components/customize/ReportPage.vue | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/utils/splitScreen.js b/src/utils/splitScreen.js index 1112c68a..c973bdd4 100644 --- a/src/utils/splitScreen.js +++ b/src/utils/splitScreen.js @@ -52,9 +52,13 @@ function getScreen() { }) } -export async function openWindow(url, name, Skip = false) { +export async function openWindow(url, name, Skip = false, Currently = false) { // 判断浏览器是否兼容 // 高版本的谷歌,edge不支持跨屏,需要降低浏览器版本86.0版 + if (Currently) { + let fulls = 'left=0,top=0,isPrimary=true,isInternal=true' + return window.open(url, name, fulls); + } if (!window.getScreens && !window.getScreenDetails) { console.log('你的浏览器版本不支持多屏展示功能!'); return window.open(url, name); diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/ReportPage.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/ReportPage.vue index b937df3d..bcc5c0ab 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReportPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReportPage.vue @@ -742,7 +742,7 @@ export default { this.openWindow = await openWindow(routeData.href, '', true) } } else { - this.openWindow = window.open(routeData.href, "_blank"); + this.openWindow = await openWindow(routeData.href, '', true, true) } // this.openWindow = window.open(routeData.href, '_blank') }, diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue index d732e1a1..9c740f1a 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue @@ -59,10 +59,10 @@