重新构建路由和配置样式文件
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* 文件数据模型
|
||||
*/
|
||||
|
||||
export type FileStatus = 'pending' | 'reviewing' | 'completed';
|
||||
export type ReviewStatus = 'pass' | 'warning' | 'fail' | 'pending';
|
||||
|
||||
export interface File {
|
||||
id: string;
|
||||
fileName: string;
|
||||
fileType: string;
|
||||
documentTypeId: string;
|
||||
documentTypeName?: string; // 关联查询
|
||||
fileSize: number;
|
||||
uploaderId: string;
|
||||
uploaderName?: string; // 关联查询
|
||||
status: FileStatus;
|
||||
reviewStatus: ReviewStatus;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface DocumentType {
|
||||
id: string;
|
||||
name: string;
|
||||
code: string;
|
||||
description: string;
|
||||
isActive: boolean;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export const FILE_STATUS_LABELS: Record<FileStatus, string> = {
|
||||
pending: '待评查',
|
||||
reviewing: '评查中',
|
||||
completed: '已完成'
|
||||
};
|
||||
|
||||
export const REVIEW_STATUS_LABELS: Record<ReviewStatus, string> = {
|
||||
pass: '通过',
|
||||
warning: '警告',
|
||||
fail: '不通过',
|
||||
pending: '待人工确认'
|
||||
};
|
||||
|
||||
export const REVIEW_STATUS_COLORS: Record<ReviewStatus, string> = {
|
||||
pass: 'success',
|
||||
warning: 'warning',
|
||||
fail: 'error',
|
||||
pending: 'default'
|
||||
};
|
||||
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* 评查结果数据模型
|
||||
*/
|
||||
|
||||
import type { ReviewStatus } from './file';
|
||||
|
||||
export interface ReviewResult {
|
||||
id: string;
|
||||
fileId: string;
|
||||
fileName?: string; // 关联查询
|
||||
totalPoints: number;
|
||||
passPoints: number;
|
||||
warningPoints: number;
|
||||
errorPoints: number;
|
||||
score: number;
|
||||
reviewStatus: ReviewStatus;
|
||||
reviewedAt: string;
|
||||
reviewerId: string;
|
||||
reviewerName?: string; // 关联查询
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export type RuleCheckStatus = 'pass' | 'warning' | 'fail';
|
||||
|
||||
export interface RuleCheckResult {
|
||||
id: string;
|
||||
reviewResultId: string;
|
||||
ruleId: string;
|
||||
ruleName?: string; // 关联查询
|
||||
status: RuleCheckStatus;
|
||||
location: string;
|
||||
content: string;
|
||||
suggestion: string;
|
||||
manualReviewed: boolean;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface AIAnalysis {
|
||||
id: string;
|
||||
reviewResultId: string;
|
||||
content: string;
|
||||
riskLevel: 'low' | 'medium' | 'high';
|
||||
suggestions: string[];
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
// 评查点结果映射颜色
|
||||
export const RULE_CHECK_STATUS_COLORS: Record<RuleCheckStatus, string> = {
|
||||
pass: 'success',
|
||||
warning: 'warning',
|
||||
fail: 'error'
|
||||
};
|
||||
|
||||
// 评查点结果映射标签
|
||||
export const RULE_CHECK_STATUS_LABELS: Record<RuleCheckStatus, string> = {
|
||||
pass: '通过',
|
||||
warning: '警告',
|
||||
fail: '错误'
|
||||
};
|
||||
@@ -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