重新构建路由和配置样式文件
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* 评查点数据模型
|
||||
*/
|
||||
|
||||
export type RuleType = 'essential' | 'content' | 'format' | 'legal' | 'business';
|
||||
export type RulePriority = 'high' | 'medium' | 'low';
|
||||
|
||||
export interface Rule {
|
||||
id: string;
|
||||
code: string;
|
||||
name: string;
|
||||
ruleGroupId: string;
|
||||
groupName?: string; // 关联查询名称
|
||||
ruleType: RuleType;
|
||||
priority: RulePriority;
|
||||
description: string;
|
||||
checkMethod: 'automatic' | 'manual' | 'mixed';
|
||||
prompt: string;
|
||||
isActive: boolean;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface RuleGroup {
|
||||
id: string;
|
||||
name: string;
|
||||
code: string;
|
||||
description: string;
|
||||
isActive: boolean;
|
||||
orderIndex: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export const RULE_TYPE_LABELS: Record<RuleType, string> = {
|
||||
essential: '基本要素类',
|
||||
content: '内容合规类',
|
||||
format: '格式规范类',
|
||||
legal: '法律风险类',
|
||||
business: '业务专项类'
|
||||
};
|
||||
|
||||
export const RULE_TYPE_COLORS: Record<RuleType, string> = {
|
||||
essential: 'blue',
|
||||
content: 'purple',
|
||||
format: 'green',
|
||||
legal: 'cyan',
|
||||
business: 'orange'
|
||||
};
|
||||
|
||||
export const RULE_PRIORITY_LABELS: Record<RulePriority, string> = {
|
||||
high: '高',
|
||||
medium: '中',
|
||||
low: '低'
|
||||
};
|
||||
|
||||
export const RULE_PRIORITY_COLORS: Record<RulePriority, string> = {
|
||||
high: 'red',
|
||||
medium: 'orange',
|
||||
low: 'green'
|
||||
};
|
||||
Reference in New Issue
Block a user