feat: 添加线索引擎、NLQ、场景检测、前端界面等核心功能模块

This commit is contained in:
freedakgmail
2026-06-16 08:15:15 +08:00
parent 7b1e2b10a8
commit 48340f6011
62 changed files with 6772 additions and 65 deletions
+38
View File
@@ -0,0 +1,38 @@
// 后端英文枚举值 → 中文显示映射
export const confidenceLabel: Record<string, string> = {
high: "高置信",
medium: "中置信",
low: "低置信",
};
export const statusLabel: Record<string, string> = {
new: "待处理",
assigned: "已分派",
reviewing: "研判中",
confirmed: "已确认(属实)",
dismissed: "已排除(误报)",
rectifying: "整改中",
transferred: "已移交",
closed: "已销项",
};
export const feedbackLabel: Record<string, string> = {
confirmed: "属实",
false_positive: "误报",
};
export const scenarioLabel: Record<string, string> = {
R8: "政企拆单",
R9: "养卡骗补",
};
export const providerLabel: Record<string, string> = {
mock: "本地Mock",
vllm: "本地vLLM",
dashscope: "公网千问",
};
// 带兜底的取值函数
export const L = (map: Record<string, string>, key: string | null | undefined): string =>
key ? map[key] ?? key : "-";