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') }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.currentPartition || '—' }}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
{{ $t('countryManagement.batchPartitionHelp') }}
+
+
+
+ {{ $t('countryManagement.batchPartitionPreview') }}
+
+
- {{ scope.row.matchLabel }}
-
-
-
-
+ {{ $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') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.currentPartition || '—' }}
+
+
+
+
+
+
+
+ {{ scope.row.matchLabel }}
+
+
+
+
+
-
-
-
@@ -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=""
/>