重新构建路由和配置样式文件
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'
|
||||
};
|
||||
Reference in New Issue
Block a user