From 50e95b985a72fcec4a93a2470e9efdfb2620148a Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 02 四月 2026 15:46:09 +0800
Subject: [PATCH] #i18n
---
rsf-design/src/views/system/ai-prompt/aiPromptPage.helpers.js | 28 +++++++++++++++-------------
1 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/rsf-design/src/views/system/ai-prompt/aiPromptPage.helpers.js b/rsf-design/src/views/system/ai-prompt/aiPromptPage.helpers.js
index 5f22a4c..888f588 100644
--- a/rsf-design/src/views/system/ai-prompt/aiPromptPage.helpers.js
+++ b/rsf-design/src/views/system/ai-prompt/aiPromptPage.helpers.js
@@ -1,8 +1,10 @@
-const AI_PROMPT_REPORT_TITLE = 'Prompt 绠$悊鎶ヨ〃'
+import { $t } from '@/locales'
+
+const AI_PROMPT_REPORT_TITLE = () => $t('pages.system.aiPrompt.reportTitle')
const STATUS_OPTIONS = [
- { label: '鍚敤', value: 1 },
- { label: '鍋滅敤', value: 0 }
+ { label: () => $t('common.status.enabled'), value: 1 },
+ { label: () => $t('common.status.disabled'), value: 0 }
]
function createAiPromptSearchState() {
@@ -37,13 +39,13 @@
}
function getAiPromptStatusOptions() {
- return STATUS_OPTIONS
+ return STATUS_OPTIONS.map((item) => ({ ...item, label: item.label() }))
}
function getAiPromptStatusMeta(status) {
return Number(status) === 1
- ? { text: '鍚敤', type: 'success' }
- : { text: '鍋滅敤', type: 'info' }
+ ? { text: $t('common.status.enabled'), type: 'success' }
+ : { text: $t('common.status.disabled'), type: 'info' }
}
function buildAiPromptSearchParams(params = {}) {
@@ -138,13 +140,13 @@
function getAiPromptReportColumns() {
return [
- { label: '鍚嶇О', prop: 'name' },
- { label: '缂栫爜', prop: 'code' },
- { label: '鍦烘櫙', prop: 'scene' },
- { label: '鐘舵��', prop: 'statusText' },
- { label: '绯荤粺鎻愮ず璇�', prop: 'systemPrompt' },
- { label: '鐢ㄦ埛鎻愮ず璇嶆ā鏉�', prop: 'userPromptTemplate' },
- { label: '鏇存柊鏃堕棿', prop: 'updateTime' }
+ { label: $t('pages.system.aiPrompt.table.name'), prop: 'name' },
+ { label: $t('pages.system.aiPrompt.table.code'), prop: 'code' },
+ { label: $t('pages.system.aiPrompt.table.scene'), prop: 'scene' },
+ { label: $t('pages.system.aiPrompt.table.status'), prop: 'statusText' },
+ { label: $t('pages.system.aiPrompt.table.systemPrompt'), prop: 'systemPrompt' },
+ { label: $t('pages.system.aiPrompt.table.userPromptTemplate'), prop: 'userPromptTemplate' },
+ { label: $t('table.updateTime'), prop: 'updateTime' }
]
}
--
Gitblit v1.9.1