From f0ec6432055f534bc2da4d321c95d1a3857e5fc5 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Sun, 29 Sep 2024 17:17:47 +0800 Subject: [PATCH] =?UTF-8?q?dicom=E9=98=85=E7=89=87=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms/components/DicomCanvas.vue | 12 ++++++------ .../dicoms/customize/CustomizeDicomCanvas.vue | 9 ++++----- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue b/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue index 531fe346..921df42d 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue @@ -1039,7 +1039,7 @@ export default { loadImageStack(dicomSeries) { return new Promise(resolve => { this.isCurrentTask = dicomSeries.isCurrentTask - this.isBaseline = dicomSeries.isBaseline + this.isBaseline = dicomSeries.isBaseLineTask this.readingTaskState = dicomSeries.readingTaskState if (this.isCurrentTask && this.readingTaskState < 2) { this.activeTool = 1 @@ -1088,16 +1088,16 @@ export default { var frame = imageInfo.frame this.stack.frame = this.stack.isExistMutiFrames ? parseInt(frame) : null this.stack.instanceId = instanceId + + const element = this.$refs.canvas + cornerstone.enable(element) + element.tabIndex = 0 + element.focus() const ToolStateManager = cornerstoneTools.globalImageIdSpecificToolStateManager ToolStateManager.clearImageIdToolState(dicomSeries.imageIds) this.toggleClipPlay(false) this.toolState.viewportInvert = false this.toolState.dicomInfoVisible = false - - const element = this.$refs.canvas - cornerstone.enable(element) - element.tabIndex = 0 - element.focus() var scope = this // var p = parseInt(new Date().getTime()) // requestPoolManager.loadAndCacheImagePlus(this.stack.imageIds[this.stack.currentImageIdIndex], this.stack.seriesId, p*100).then(image=>{ diff --git a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomCanvas.vue b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomCanvas.vue index 05ddc862..32d43319 100644 --- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomCanvas.vue +++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomCanvas.vue @@ -1064,16 +1064,15 @@ export default { var frame = imageInfo.frame this.stack.frame = this.stack.isExistMutiFrames ? parseInt(frame) : null this.stack.instanceId = instanceId + const element = this.$refs.canvas + cornerstone.enable(element) + element.tabIndex = 0 + element.focus() const ToolStateManager = cornerstoneTools.globalImageIdSpecificToolStateManager ToolStateManager.clearImageIdToolState(dicomSeries.imageIds) this.toggleClipPlay(false) this.toolState.viewportInvert = false this.toolState.dicomInfoVisible = false - - const element = this.$refs.canvas - cornerstone.enable(element) - element.tabIndex = 0 - element.focus() var scope = this // var p = parseInt(new Date().getTime()) // requestPoolManager.loadAndCacheImagePlus(this.stack.imageIds[this.stack.currentImageIdIndex], this.stack.seriesId, p*100).then(image=>{