diff --git a/src/components/Dicom/DicomViewer.vue b/src/components/Dicom/DicomViewer.vue index f5b20013..1af67276 100644 --- a/src/components/Dicom/DicomViewer.vue +++ b/src/components/Dicom/DicomViewer.vue @@ -247,7 +247,7 @@ - + - + - {{ $t('trials:dicom-show:default') }} + 5 + 10 15 20 30 @@ -386,7 +387,8 @@ export default { wwwcList: [], layout: null, seriesList: [], - customWwc: { visible: false, title: null } + customWwc: { visible: false, title: null }, + fps: 15 } }, mounted() { @@ -566,6 +568,10 @@ export default { setDicomCanvasfps(event) { this.currentDicomCanvas.setFps(event.target.value) }, + clipPlay() { + this.currentDicomCanvas.setFps(this.fps) + this.currentDicomCanvas.toggleClipPlay() + }, fitToType(e, type) { const toolButtons = document.querySelectorAll('[data-tool]') Array.from(toolButtons).forEach((toolBtn) => { diff --git a/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue b/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue index f1eab321..3eeac316 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue @@ -328,9 +328,9 @@ - + - {{ $t('trials:dicom-show:default') }} + 5 10 15 @@ -838,7 +838,8 @@ export default { activeCanvasWW: null, activeCanvasWC: null, activeTaskInfo: {}, - clipPlaying: false + clipPlaying: false, + fps: 15 } }, @@ -902,6 +903,7 @@ export default { this.clipPlaying = this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].toolState.clipPlaying } else { this.clipPlaying = false + this.fps = 15 } } } @@ -1258,6 +1260,7 @@ export default { }, loadImageStack(dicomSeries) { this.clipPlaying = false + this.fps = 15 this.canvasObj[this.currentDicomCanvasIndex] = dicomSeries this.$nextTick(() => { this.activeSeries = dicomSeries @@ -1948,6 +1951,7 @@ export default { const isLoaded = this.getSeriesLoadStatus() if (!isLoaded) return this.clipPlaying = isPlay + this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].setFps(this.fps) this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].toggleClipPlay(isPlay) }, getSeriesLoadStatus() { diff --git a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue index 9e1fc2b3..9856780e 100644 --- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue +++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue @@ -448,9 +448,8 @@ class="select-wrapper" :disabled="clipPlaying" @change="setDicomCanvasfps($event)" + v-model="fps" > - - {{ $t("trials:dicom-show:default") }} 5 10 15 @@ -857,7 +856,7 @@ export default { isFullscreen: false, manualsDialog: { visible: false }, clipPlaying: false, - + fps: 15, // 上传 uploadImageVisible: false, trialCriterion: {}, @@ -900,6 +899,7 @@ export default { ][0].toolState.clipPlaying; } else { this.clipPlaying = false; + this.fps = 15 } }, }, @@ -1358,6 +1358,7 @@ export default { }, loadImageStack(dicomSeries) { this.clipPlaying = false; + this.fps = 15 this.canvasObj[this.currentDicomCanvasIndex] = dicomSeries; if (this.activeTool) { if (dicomSeries.isCurrentTask && dicomSeries.readingTaskState < 2) { @@ -2053,7 +2054,6 @@ export default { dicomSeries.readingTaskState < 2 ) { if (this.activeTool && !type) { - console.log(1111122222); this.measuredTools.forEach((item) => { this.$refs[ `dicomCanvas${this.currentDicomCanvasIndex}` @@ -2068,7 +2068,6 @@ export default { `dicomCanvas${this.currentDicomCanvasIndex}` ][0].setToolActive(toolName); } else { - console.log(222233333); this.measuredTools.forEach((item) => { this.$refs[ `dicomCanvas${this.currentDicomCanvasIndex}` @@ -2080,7 +2079,6 @@ export default { ][0].setToolActive(toolName); } } else { - console.log(3333344444); if (!this.activeTool) return; this.measuredTools.forEach((item) => { this.$refs[ @@ -2093,7 +2091,6 @@ export default { this.activeTool = ""; } } else { - console.log(44445555); if (this.activeTool === toolName) { this.$refs[ `dicomCanvas${this.currentDicomCanvasIndex}` @@ -2160,6 +2157,7 @@ export default { const isLoaded = this.getSeriesLoadStatus(); if (!isLoaded) return; this.clipPlaying = isPlay; + this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].setFps(this.fps) this.$refs[ `dicomCanvas${this.currentDicomCanvasIndex}` ][0].toggleClipPlay(isPlay);