Files
Neo-ZQYY/apps/demo-miniprogram/miniprogram/utils/task-config.ts
Neo 779b2f6d52 chore: v1 整理 — 清理历史文件、DDL 合并、文档归档
- 清理 1155 个已删除的历史文件(废弃 prompt_logs、tmp、旧 ops 脚本)
- export/ 数据文件从 git 移除(已在 .gitignore)
- demo-miniprogram 从 tmp/ 移入 apps/,添加 CLAUDE.md 注解
- DDL 合并:完整 schema 定义填充到 db/*/schemas/(从 docs/database/ddl/ 复制)
- 39 个 v1 迁移脚本归档到 db/_archived/migrations_v1_merged/
- 4 个迁移变更类 BD_Manual 文档归档到 docs/database/_archived/
- .gitignore 补充 .vite/ 和 apps/*.zip
- settings.json 添加 effortLevel 默认配置
- scripts/ops/ 新增运维脚本入库

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 00:39:27 +08:00

59 lines
1.2 KiB
TypeScript

/**
* 任务类型配置
*/
export const TASK_TYPE_CONFIG = {
high_priority: {
label: '高优先召回',
color: 'red',
bgColor: '#fee2e2',
borderColor: '#fca5a5',
textColor: '#b91c1c',
bannerBg: '/assets/images/banner-bg-red-aurora.svg',
},
priority_recall: {
label: '优先召回',
color: 'orange',
bgColor: '#fed7aa',
borderColor: '#fdba74',
textColor: '#b45309',
bannerBg: '/assets/images/banner-bg-orange-aurora.svg',
},
relationship: {
label: '关系构建',
color: 'pink',
bgColor: '#fce7f3',
borderColor: '#f9a8d4',
textColor: '#be185d',
bannerBg: '/assets/images/banner-bg-pink-aurora.svg',
},
callback: {
label: '客户回访',
color: 'teal',
bgColor: '#ccfbf1',
borderColor: '#99f6e4',
textColor: '#0d9488',
bannerBg: '/assets/images/banner-bg-teal-aurora.svg',
},
} as const
/**
* 任务状态配置
*/
export const TASK_STATUS_CONFIG = {
normal: {
label: '进行中',
icon: '📋',
},
pinned: {
label: '已置顶',
icon: '📌',
},
abandoned: {
label: '已放弃',
icon: '❌',
},
} as const
export type TaskType = keyof typeof TASK_TYPE_CONFIG
export type TaskStatus = keyof typeof TASK_STATUS_CONFIG