From 14a397b70bf9abdb832fa6b0a5b55848d0a5c58d Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Wed, 17 Jan 2024 09:42:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=84=BE=E8=84=8F=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E8=87=AA=E5=8A=A8=E8=AE=A1=E7=AE=97=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trials-panel/reading/dicoms/components/Questions.vue | 3 ++- .../trials-panel/reading/dicoms/components/ReadPage.vue | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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