From 771b70843f1944354c4559dee9ff9a163b0c138c Mon Sep 17 00:00:00 2001 From: TradeMate Dev Date: Sun, 21 Jun 2026 23:06:16 +0800 Subject: [PATCH] feat: add AI agent and quotation routing options to admin config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add agent (数字员工), followup (智能跟进), outreach (开发信), competitor (竞品分析) to ai_routing field labels in admin Config.vue Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- admin-frontend/src/views/Config.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-frontend/src/views/Config.vue b/admin-frontend/src/views/Config.vue index 8a19a7d..888c5a7 100644 --- a/admin-frontend/src/views/Config.vue +++ b/admin-frontend/src/views/Config.vue @@ -57,7 +57,7 @@ const configs = ref([]) const edits = reactive({}) const providers = ref([]) const configLabels = { system_maintenance: '系统维护', feature_flags: '功能开关', translation_providers: '翻译服务', ai_model_config: 'AI模型', cache_ttl: '缓存时间', ai_routing: 'AI路由规则' } -const fieldLabelsMap = { system_maintenance: { maintenance_mode: '维护模式', maintenance_message: '维护消息' }, feature_flags: { feature_wechat_login: '微信登录', feature_export: '数据导出' }, translation_providers: { primary: '首选服务', fallback: '备用服务' }, ai_model_config: { default_model: '默认模型', max_tokens: '最大Token' }, ai_routing: { translate: '翻译', reply: '回复建议', marketing: '营销文案', extract: '信息提取', quotation: '报价单', chat: 'AI助手' } } +const fieldLabelsMap = { system_maintenance: { maintenance_mode: '维护模式', maintenance_message: '维护消息' }, feature_flags: { feature_wechat_login: '微信登录', feature_export: '数据导出' }, translation_providers: { primary: '首选服务', fallback: '备用服务' }, ai_model_config: { default_model: '默认模型', max_tokens: '最大Token' }, ai_routing: { translate: '翻译', reply: '回复建议', marketing: '营销文案', extract: '信息提取', quotation: '报价单', chat: 'AI助手', agent: '数字员工', followup: '智能跟进', outreach: '开发信', competitor: '竞品分析' } } const taskFieldLabels = { primary: '主选', fallback: '备用' } function fieldLabel(key, k) { if (key === 'ai_routing') return configLabels[key] + ' > ' + (taskFieldLabels[k] || k)