From e09decd90031bd764a664f44643d4818f0e414a1 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 2 Sep 2025 16:13:48 +0800 Subject: [PATCH] =?UTF-8?q?mrecist=E5=88=86=E8=A3=82=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9C=AA=E6=98=BE=E7=A4=BA=E6=84=9F=E5=8F=B9=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/MRecist/QuestionList.vue | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/MRecist/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms/components/MRecist/QuestionList.vue index 6d83fc6..0ddaa92 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/MRecist/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/MRecist/QuestionList.vue @@ -272,7 +272,7 @@ export default { this.$nextTick(() => { this.$refs['ecrf'].getQuestions(this.visitTaskId) this.getTableQuestions() - this.getQuestions(this.tableQuestions) + this.getQuestions(this.tableQuestions, false) this.tableQuestions.forEach(item => { item.TableQuestions.Answers.forEach(i => { var refName = `${item.Id}_${i.RowIndex}` @@ -287,7 +287,7 @@ export default { await store.dispatch('reading/setReadingQuestionAndAnswer', { questions: this.questions, visitTaskId: this.visitTaskId }) this.getTableQuestions() - this.getQuestions(this.tableQuestions) + this.getQuestions(this.tableQuestions, false) }, setQuestions(questions, obj) { questions.forEach(item => { @@ -331,7 +331,7 @@ export default { } }) }, - getQuestions(questions) { + getQuestions(questions, changeSaveTypeEnum = true) { questions.forEach(item => { if (item.Type === 'table' && item.TableQuestions && item.TableQuestions.Answers.length > 0) { item.TableQuestions.Answers.forEach(answerObj => { @@ -347,22 +347,24 @@ export default { var lesionState = this.getQuestionAnswer(item.TableQuestions.Questions, 7, answerObj) lesionState = !isNaN(parseInt(lesionState)) ? parseInt(lesionState) : '' this.$set(answerObj, 'lesionState', lesionState) - if (answerObj.RowId) { - var idx = item.TableQuestions.Questions.findIndex(i => i.QuestionMark === 11) - if (idx > -1) { - var lesionNum = this.getQuestionAnswer(item.TableQuestions.Questions, 11, answerObj) - lesionNum = !isNaN(parseInt(lesionNum)) ? parseInt(lesionNum) : '' - this.$set(answerObj, 'saveTypeEnum', isNaN(parseInt(lesionNum)) ? 1 : 2) + if (changeSaveTypeEnum) { + if (answerObj.RowId) { + var idx = item.TableQuestions.Questions.findIndex(i => i.QuestionMark === 11) + if (idx > -1) { + var lesionNum = this.getQuestionAnswer(item.TableQuestions.Questions, 11, answerObj) + lesionNum = !isNaN(parseInt(lesionNum)) ? parseInt(lesionNum) : '' + this.$set(answerObj, 'saveTypeEnum', isNaN(parseInt(lesionNum)) ? 1 : 2) + } else { + this.$set(answerObj, 'saveTypeEnum', isNaN(parseInt(lesionState)) ? 1 : 2) + } } else { - this.$set(answerObj, 'saveTypeEnum', isNaN(parseInt(lesionState)) ? 1 : 2) + this.$set(answerObj, 'saveTypeEnum', 0) } - } else { - this.$set(answerObj, 'saveTypeEnum', 0) } }) } if (item.Childrens.length > 0) { - this.getQuestions(item.Childrens) + this.getQuestions(item.Childrens, changeSaveTypeEnum) } }) return questions @@ -413,7 +415,7 @@ export default { this.isCurrentTask = this.visitTaskList[idx].IsCurrentTask } this.getTableQuestions() - this.getQuestions(this.tableQuestions) + this.getQuestions(this.tableQuestions, false) this.$nextTick(() => { this.tableQuestions.forEach(item => { item.TableQuestions.Answers.forEach(i => {