修复脾脏状态自动计算缺陷
parent
5d6780e6ee
commit
14a397b70b
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue