From e26d40f885560c8ca97f47cb6d0b806e62830cb2 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Wed, 7 Aug 2024 10:27:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=98=85=E7=89=87=E5=8D=95?= =?UTF-8?q?=E5=85=83=E9=85=8D=E7=BD=AE=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting/reading-unit/components/QuestionsList.vue | 8 +++++++- .../setting/reading-unit/components/TableQsList.vue | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) 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) {