From 06761092e3eea2a4cc24403c7165fa50b6b9ce74 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 12 Apr 2024 16:56:57 +0800 Subject: [PATCH] =?UTF-8?q?PET=205PS=E8=AF=84=E5=88=86=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dicoms/components/Fusion/Questions.vue | 23 +++++++++--------- .../components/Fusion/TableQuestions.vue | 24 ------------------- 2 files changed, 11 insertions(+), 36 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue index eb0e8767..be54c48b 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue @@ -545,6 +545,16 @@ export default { this.questionForm[obj.key] = obj.val if (obj.key === this.pet5PSId) { this.setPet5PSCommentDisplay() + // 自动计算与基线相比摄取值变化 + if (!this.isBaseLineTask && this.questionForm[this.pet5PSId] > 0) { + // 当前访视的PET 5ps评分大于基线的PET 5ps评分 增大 + // 当前访视的PET 5ps评分小于基线的PET 5ps评分 减小 + if (this.questionForm[this.pet5PSId] > this.baseLinePET5PS) { + this.questionForm[this.uptakeFromBaselineId] = '1' + } else if (this.questionForm[this.pet5PSId] < this.baseLinePET5PS) { + this.questionForm[this.uptakeFromBaselineId] = '2' + } + } } }, setPet5PSCommentDisplay() { @@ -563,17 +573,6 @@ export default { } } } - // 自动计算与基线相比摄取值变化 - if (!this.isBaseLineTask && this.questionForm[this.pet5PSId] > 0) { - // 当前访视的PET 5ps评分大于基线的PET 5ps评分 增大 - // 当前访视的PET 5ps评分小于基线的PET 5ps评分 减小 - if (this.questionForm[this.pet5PSId] > this.baseLinePET5PS) { - this.questionForm[this.uptakeFromBaselineId] = '1' - } else if (this.questionForm[this.pet5PSId] < this.baseLinePET5PS) { - this.questionForm[this.uptakeFromBaselineId] = '2' - } - // this.questionForm[this.uptakeFromBaselineId] = this.questionForm[this.pet5PSId] > this.baseLinePET5PS ? '1' : this.questionForm[this.pet5PSId] < this.baseLinePET5PS ? '2' : '' - } }, setpet5PS() { console.log('setpet5PS') @@ -623,7 +622,7 @@ export default { this.setSuvChild(v.Childrens) } var pet5PS = this.setpet5PS() - this.questionForm[this.pet5PSId] = pet5PS + // this.questionForm[this.pet5PSId] = pet5PS this.calculatePet5PS = pet5PS this.setPet5PSCommentDisplay() this.questionFormChangeState = true diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/TableQuestions.vue b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/TableQuestions.vue index 6c6b8c28..91104b60 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/TableQuestions.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/TableQuestions.vue @@ -193,30 +193,6 @@ export default { this.loading = false }).catch(() => { this.loading = false }) }, - async initList1() { - var i = this.visitTaskList.findIndex(i => i.VisitTaskId === this.visitTaskId) - if (i > -1) { - this.visitTaskId = this.visitTaskList[i].VisitTaskId - this.taskBlindName = this.visitTaskList[i].TaskBlindName - this.readingTaskState = this.visitTaskList[i].ReadingTaskState - this.isBaseLineTask = this.visitTaskList[i].IsBaseLineTask - this.isCurrentTask = this.visitTaskList[i].IsCurrentTask - this.activeName = '' - this.activeItem.activeRowIndex = null - this.activeItem.activeCollapseId = null - this.questions = this.visitTaskList[i].ReadingQuestions - this.$nextTick(() => { - this.getTableQuestions() - this.tableQuestions.forEach(item => { - item.TableQuestions.Answers.forEach(i => { - var refName = `${item.Id}_${i.RowIndex}` - this.$refs[refName] && this.$refs[refName][0].initForm() - }) - }) - }) - } - }, - getQuestions(questions, isRerender) { questions.forEach(item => { if (item.Type === 'table' && item.TableQuestions && item.TableQuestions.Answers.length > 0) {