diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue index d5dd4d56..8d53f335 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue @@ -647,7 +647,7 @@ export default { let res = await submitTableQuestion(params) if (res.IsSuccess) { this.QuestionsForm.RowId = res.Result.RowId - obj.rowId = res.Result.RowId + // obj.rowId = res.Result.RowId data.RowId = res.Result.RowId this.AnswersList.push(this.QuestionsForm) this.$emit('setFormItemData', { key: this.question.Id, val: this.AnswersList, question: this.question }) @@ -1375,7 +1375,7 @@ export default { // 移除问题标记值 this.$set(this.questionForm, obj.question.Id, null) } - if (obj.question.IsTableQuestion && obj.operateStateEnum === 4) { + if (obj.question.IsTableQuestion && (obj.operateStateEnum === 4 || obj.operateStateEnum === 24)) { // 移除表格问题标记 this.$set(this.QuestionsForm, obj.question.Id, null) } else if (obj.question.IsTableQuestion && obj.operateStateEnum === 7 && this.question.Id === obj.question.ParentQsId) { diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue index 6e791fdd..6178855f 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue @@ -545,7 +545,16 @@ export default { const { question } = obj let confirm = await this.$confirm(this.$t('segment:confirm:sureDelete')) if (!confirm) return false - this.$set(this.questionForm, question.Id, '') + if (this.isTableQuestion) { + this.questionForm[question.ParentQsId].some((item, index) => { + if (item.RowId === question.RowId) { + this.$set(this.questionForm[question.ParentQsId][index], question.Id, '') + } + return item.RowId === question.RowId + }) + } else { + this.$set(this.questionForm, question.Id, '') + } let o = { Answer: '', SegmentId: null, @@ -1555,4 +1564,5 @@ export default { // min-height:400px; // color: #ddd; -// } +// } +