diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsList.vue b/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsList.vue index 8a9ee7c1..a99e4019 100644 --- a/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsList.vue +++ b/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsList.vue @@ -336,7 +336,13 @@ export default { this.isLook = true this.rowData.ReadingQuestionCriterionTrialId = this.trialCriterionId this.rowData.ReadingCriterionPageId = this.readingCriterionPageId - this.addOrEdit.title = this.$t('trials:readingUnit:qsList:title:view')// '查看' + let title = '' + if (this.$i18n.locale === 'zh' && (row.QuestionName || row.GroupName)) { + title =`:${row.QuestionName ? row.QuestionName : row.GroupName}` + } else if (this.$i18n.locale === 'en' && (row.QuestionEnName || row.GroupEnName)) { + title =`: ${row.QuestionEnName ? row.QuestionEnName : row.GroupEnName}` + } + this.addOrEdit.title = `${this.$t('trials:readingUnit:qsList:title:view')} ${title} `// '查看' this.addOrEdit.visible = true }, handleEdit(row) { diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/TableQsList.vue b/src/views/trials/trials-panel/setting/reading-unit/components/TableQsList.vue index e201ff32..2274a4a5 100644 --- a/src/views/trials/trials-panel/setting/reading-unit/components/TableQsList.vue +++ b/src/views/trials/trials-panel/setting/reading-unit/components/TableQsList.vue @@ -256,7 +256,13 @@ export default { handleLook(row) { this.rowData = { ...row } this.type = 'look' - this.addOrEdit.title = this.$t('trials:readingPeriod:button:view') + let title = '' + if (this.$i18n.locale === 'zh' && (row.QuestionName || row.GroupName)) { + title =`:${row.QuestionName ? row.QuestionName : row.GroupName}` + } else if (this.$i18n.locale === 'en' && (row.QuestionEnName || row.GroupEnName)) { + title =`: ${row.QuestionEnName ? row.QuestionEnName : row.GroupEnName}` + } + this.addOrEdit.title = `${this.$t('trials:readingPeriod:button:view')}${title}` this.addOrEdit.visible = true }, handleDelete(row) {