diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue b/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue index f23535f2..f64da557 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue @@ -119,6 +119,7 @@ export default { }, methods: { async getQuestions(visitTaskId) { + var isChangeVisitTask = this.visitTaskId !== visitTaskId this.visitTaskId = visitTaskId // const loading = this.$loading({ fullscreen: true }) var idx = this.visitTaskList.findIndex(i => i.VisitTaskId === visitTaskId) @@ -135,7 +136,7 @@ export default { } this.measurements.push(i) }) - if (this.readingTaskState < 2 && !this.isBaseLineTask && !this.spleenInfo) { + if (this.readingTaskState < 2 && !this.isBaseLineTask && isChangeVisitTask) { const { Result } = await getSplenicVerify(visitTaskId) this.spleenInfo = Result } diff --git a/src/views/trials/trials-panel/reading/dicoms/components/ReadPage.vue b/src/views/trials/trials-panel/reading/dicoms/components/ReadPage.vue index a76f82b6..4fc6c6b7 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/ReadPage.vue @@ -332,14 +332,16 @@ export default { if (!this.visitTaskList[index].studyListInit) { await store.dispatch('reading/getStudyInfo', { trialId: this.trialId, subjectVisitId: this.visitTaskList[index].VisitId, visitTaskId: this.visitTaskList[index].VisitTaskId, taskBlindName: this.visitTaskList[index].TaskBlindName }) } - if (!this.visitTaskList[index].readingQuestionsInit) { - await store.dispatch('reading/getReadingQuestionAndAnswer', { trialId: this.trialId, visitTaskId: this.visitTaskList[index].VisitTaskId }) - } + + await store.dispatch('reading/getReadingQuestionAndAnswer', { trialId: this.trialId, visitTaskId: this.visitTaskList[index].VisitTaskId }) + if (!this.visitTaskList[index].questionsInit) { await store.dispatch('reading/getDicomReadingQuestionAnswer', { trialId: this.trialId, visitTaskId: this.visitTaskList[index].VisitTaskId }) } await store.dispatch('reading/setStatus', { visitTaskId: this.visitTaskList[index].VisitTaskId }) + } else if (this.visitTaskList[index].IsCurrentTask && this.visitTaskList[index].ReadingTaskState === 2) { + await store.dispatch('reading/refreshMeasuredData', this.visitTaskList[index].VisitTaskId) } this.activeTaskVisitId = visitTaskId this.activeTaskIndex = index