修复脾脏状态自动计算缺陷

uat_us
caiyiling 2024-01-17 09:42:01 +08:00
parent 5d6780e6ee
commit 14a397b70b
2 changed files with 7 additions and 4 deletions

View File

@ -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
}

View File

@ -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