From 4188c0110f02a83a6cadb82ce9a12250e99f7491 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Wed, 26 Mar 2025 15:23:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Edicom=E9=98=85=E7=89=87=E5=8F=97?= =?UTF-8?q?=E8=AF=95=E8=80=85=E5=86=85=E9=9A=8F=E6=9C=BA=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E5=9B=BE=E5=83=8F=E9=80=BB=E8=BE=91=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/visit-review/components/FileViewer.vue | 2 +- .../reading/visit-review/components/ReadPage.vue | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue b/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue index e5f8eefb..7ec2136d 100644 --- a/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue +++ b/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue @@ -390,7 +390,7 @@ export default { mounted() { this.taskInfo = JSON.parse(localStorage.getItem('taskInfo')) this.readingTaskState = this.taskInfo.ReadingTaskState - if (this.taskInfo.VisitNum > 0 && this.taskInfo.IsReadingTaskViewInOrder !== 0) { + if (!this.taskInfo.IsBaseLine && this.taskInfo.IsReadingTaskViewInOrder !== 0) { this.rows = 1 this.cols = 2 this.activeCanvasIndex = 1 diff --git a/src/views/trials/trials-panel/reading/visit-review/components/ReadPage.vue b/src/views/trials/trials-panel/reading/visit-review/components/ReadPage.vue index 3b37072f..65093dbd 100644 --- a/src/views/trials/trials-panel/reading/visit-review/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/visit-review/components/ReadPage.vue @@ -200,7 +200,8 @@ export default { this.$refs[res.Result[idx].VisitTaskId][0].setInitActiveFile() }) } - if (this.taskInfo.IsReadingTaskViewInOrder !== 0 && res.Result.length > 1) { + if (this.taskInfo.IsReadingTaskViewInOrder === 1 && res.Result.length > 1) { + // 按时间顺序 const i = this.visitTaskList.findIndex(i => i.IsBaseLineTask) if (i > -1) { await this.getReadingImageFile(res.Result[i].VisitTaskId, i) @@ -215,6 +216,14 @@ export default { } } } + if (this.taskInfo.IsReadingTaskViewInOrder === 2) { + // 受试者内随机 + const studyList = this.visitTaskList[idx].StudyList + if (studyList.length > 0) { + const fileInfo = studyList[0].NoneDicomStudyFileList[0] + this.relatedStudyInfo = { fileInfo, visitTaskInfo: this.visitTaskList[idx], fileList: studyList[0].NoneDicomStudyFileList, fileIndex: 0, studyId: studyList[0].Id } + } + } this.loading = false } catch (e) { console.log(e)