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)