From bb36bcc64503d362daefeecbd154ec06295c06bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Fri, 24 Apr 2026 14:51:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=82=AE=E4=BB=B6=E6=A8=A1?= =?UTF-8?q?=E7=89=88=E9=A2=84=E8=A7=88=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page/components/email/TmrEmailEditor.vue | 23 +- src/components/page/countryManagement.vue | 218 ++++++++++-------- src/components/page/mailboxMouldDetail.vue | 1 + 3 files changed, 141 insertions(+), 101 deletions(-) diff --git a/src/components/page/components/email/TmrEmailEditor.vue b/src/components/page/components/email/TmrEmailEditor.vue index 9a2915a..ac2e1af 100644 --- a/src/components/page/components/email/TmrEmailEditor.vue +++ b/src/components/page/components/email/TmrEmailEditor.vue @@ -62,6 +62,10 @@ export default { default: '' }, + language: { + type: String, + default: 'en' + }, placeholder: { type: String, default: '' @@ -87,13 +91,29 @@ export default { expert_name: "John Doe", // 专家姓名 expert_field: "Biomedical Engineering", // 专家研究领域 representative_work_title: "Advanced Applications of AI in Medical Imaging", // 专家代表作标题 - // ai_content_analysis: "", // AI 约稿理由分析 + ai_content_analysis: "【AI分析文章,一句话总结】", // AI solicitation rationale + ai_advised_topics: "Based on your research expertise, we would particularly welcome submissions on topics such as 【这里是AI针对学者领域给特定约稿主题】, or other closely related areas that align with your work.", // AI suggested directions } } }, computed: { + isZhLanguage() { + return String(this.language || '').toLowerCase() === 'zh'; + }, + localizedAiMockData() { + if (this.isZhLanguage) { + return { + ai_content_analysis: '【AI分析这篇文章,一句话总结】。【我们希望也关注个领域】', + ai_advised_topics: '我们尤其关注如【方向/题目建议1】、【方向/题目建议2】以及【方向/题目建议3】等相关议题的研究进展。' + }; + } + return { + ai_content_analysis: '【AI分析文章,一句话总结】', + ai_advised_topics: 'Based on your research expertise, we would particularly welcome submissions on topics such as 【这里是AI针对学者领域给特定约稿主题】, or other closely related areas that align with your work.' + }; + }, resolvedPlaceholder() { return this.placeholder || (this.$t && this.$t('tmrEmailEditor.placeholder')) || '请输入邮件内容...'; }, @@ -141,6 +161,7 @@ const deadlineStr = oneMonthLater.toISOString().split('T')[0]; const map = { ...this.variableMockData, + ...this.localizedAiMockData, journal_abbr: journal_info.jabbr, // 期刊缩写 journal_name: journal_info.title,// 期刊全称 journal_url: journal_info.website, // 期刊官网链接 diff --git a/src/components/page/countryManagement.vue b/src/components/page/countryManagement.vue index 644a1b6..e09f711 100644 --- a/src/components/page/countryManagement.vue +++ b/src/components/page/countryManagement.vue @@ -2,7 +2,6 @@
- {{ $t('countryManagement.title') }}
@@ -36,9 +35,11 @@ {{ $t('countryManagement.searchBtn') }} {{ $t('countryManagement.resetBtn') }} - + +
@@ -132,101 +133,115 @@ destroy-on-close @closed="resetBatchPartitionDialog" > -
-
- - - - - - - - - -

{{ $t('countryManagement.batchPartitionHelp') }}

- -
- - {{ $t('countryManagement.batchPartitionPreview') }} - - - {{ $t('countryManagement.batchPartitionApply') }} - -
-
- -
-
- {{ - $t('countryManagement.batchPartitionSummaryLine', { - input: String(batchPartitionStats.input), - matched: String(batchPartitionStats.matched), - miss: String(batchPartitionStats.miss), - same: String(batchPartitionStats.skipSame), - will: String(batchPartitionStats.willUpdate) - }) - }} -
-

{{ $t('countryManagement.batchPartitionSelectionHint') }}

- - - - - - - - - - - - - - - - - + {{ $t('countryManagement.batchPartitionApply') }} + +
+
+ +
+
+ {{ + $t('countryManagement.batchPartitionSummaryLine', { + input: String(batchPartitionStats.input), + matched: String(batchPartitionStats.matched), + miss: String(batchPartitionStats.miss), + same: String(batchPartitionStats.skipSame), + will: String(batchPartitionStats.willUpdate) + }) + }} +
+

+ {{ $t('countryManagement.batchPartitionSelectionHint') }} +

+ + + + + + + + + + + + + + + + + +
- - - @@ -286,9 +301,7 @@ export default { }, batchPartitionToApplyBaseRows() { return (this.batchPartitionPreviewRows || []).filter( - (r) => - r._row && - String(r._row.partition != null ? r._row.partition : '') !== String(r.partition) + (r) => r._row && String(r._row.partition != null ? r._row.partition : '') !== String(r.partition) ); }, batchPartitionEffectiveToApplyRows() { @@ -603,7 +616,12 @@ export default { } const lower = key.toLowerCase(); return ( - rows.find((r) => String(r.en_name || '').trim().toLowerCase() === lower) || + rows.find( + (r) => + String(r.en_name || '') + .trim() + .toLowerCase() === lower + ) || rows.find((r) => String(r.zh_name || '').trim() === key) || null ); diff --git a/src/components/page/mailboxMouldDetail.vue b/src/components/page/mailboxMouldDetail.vue index 5358d77..899c88d 100644 --- a/src/components/page/mailboxMouldDetail.vue +++ b/src/components/page/mailboxMouldDetail.vue @@ -100,6 +100,7 @@ v-model="form.body" :journalList="journalList" :journalId="form.journalId" + :language="form.lang" placeholder="" />