diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/Recist/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/Recist/QuestionList.vue index 2fcda215..b913e0c5 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/Recist/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/Recist/QuestionList.vue @@ -449,12 +449,12 @@ export default { const res = await saveTaskQuestion(0, params) if (res.IsSuccess) { this.$message.success(this.$t('common:message:savedSuccessfully')) - if (!this.isBaseLineTask && (this.criterionType === 1 || this.criterionType === 2 || this.criterionType === 3 || this.criterionType === 17)) { + if (!this.isBaseLineTask) { if (parseInt(imageQuality) === 2) { this.$confirm(this.$t('trials:reading:warnning:unableEvaluate'), '', { type: 'warning' }).then(() => { - this.changeLesionState(2) + this.changeLesionState() }).catch(() => { }) @@ -1703,9 +1703,16 @@ export default { this.activeName = '' } }, - changeLesionState(state) { + changeLesionState() { Object.values(this.innerFormData).forEach(i => { - console.log(i) + if (isNaN(parseInt(i.LesionState)) && i.IsCurrentTaskAdd === 'False') { + i.LesionState = 2 + const targetTable = this.tableQuestions[0].Childrens.find( + child => child.Id === i.TableId + ) + const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions) + i[stateId] = 2 + } }) }, removeAnswer(tableId, rowIndex) { diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/mRecist/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/mRecist/QuestionList.vue index b376bb43..1d3197f7 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/mRecist/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/mRecist/QuestionList.vue @@ -455,12 +455,12 @@ export default { const res = await saveTaskQuestion(0, params) if (res.IsSuccess) { this.$message.success(this.$t('common:message:savedSuccessfully')) - if (!this.isBaseLineTask && (this.criterionType === 1 || this.criterionType === 2 || this.criterionType === 3 || this.criterionType === 17)) { + if (!this.isBaseLineTask) { if (parseInt(imageQuality) === 2) { this.$confirm(this.$t('trials:reading:warnning:unableEvaluate'), '', { type: 'warning' }).then(() => { - this.changeLesionState(2) + this.changeLesionState() }).catch(() => { }) @@ -1830,9 +1830,16 @@ export default { this.activeName = '' } }, - changeLesionState(state) { + changeLesionState() { Object.values(this.innerFormData).forEach(i => { - console.log(i) + if (isNaN(parseInt(i.LesionState)) && i.IsCurrentTaskAdd === 'False') { + i.LesionState = 2 + const targetTable = this.tableQuestions[0].Childrens.find( + child => child.Id === i.TableId + ) + const stateId = this.getQuestionId(7, targetTable.TableQuestions.Questions) + i[stateId] = 2 + } }) }, removeAnswer(tableId, rowIndex) {