在职位管理和行业管理中,转为树形表格数据结构

This commit is contained in:
yy
2025-04-02 19:07:15 +08:00
parent b140dd9aae
commit 994ec60616
10 changed files with 442 additions and 254 deletions

24
src/typings.d.ts vendored
View File

@@ -18,3 +18,27 @@ declare module 'react-fittext';
declare module 'bizcharts-plugin-slider';
declare const REACT_APP_ENV: 'test' | 'dev' | 'pre' | false;
declare namespace API {
namespace ClassifyJobs {
interface Params {
tree?: boolean;
pageSize?: number;
current?: number;
jobName?: string;
status?: string;
[key: string]: any; // 允许其他未定义属性
}
// 表格和表单使用的职业数据
interface Job {
jobId: number;
parentId: number;
jobName: string;
orderNum?: number;
status?: string;
createTime?: string;
parentName?: string;
children?: Job[];
}
}
}