167 lines
3.2 KiB
TypeScript
167 lines
3.2 KiB
TypeScript
import { Outlet } from 'react-router-dom';
|
|
export interface SceneInfo {
|
|
applicableTask: string;
|
|
createTime: string;
|
|
deleted: number;
|
|
id: number;
|
|
relatedAgent: string;
|
|
sceneCode: string;
|
|
sceneIntro: string;
|
|
sceneName: string;
|
|
sceneType: string;
|
|
status: number;
|
|
updateTime: string;
|
|
version: string;
|
|
}
|
|
|
|
export interface TaskListItem {
|
|
createBy: number;
|
|
createTime: string;
|
|
deptId: null;
|
|
id: number;
|
|
isTop: number;
|
|
issuingDept: string;
|
|
keywords: null;
|
|
overview: string;
|
|
planTaskTop: number;
|
|
platform: null;
|
|
ptaskId: null;
|
|
recommendedBasis: null;
|
|
scene: string; // 或 SceneInfo,如果你已经解析
|
|
sourceType: number;
|
|
step: null;
|
|
taskContent: string;
|
|
taskDirection: string;
|
|
taskEndDate: string;
|
|
taskLevel: number;
|
|
taskName: string;
|
|
taskNo: string;
|
|
taskStartDate: string;
|
|
taskStatus: number;
|
|
taskSuperiorFlag: number;
|
|
taskTimeLimit: null;
|
|
taskType: number;
|
|
column: string;
|
|
updateBy: number;
|
|
updateTime: string;
|
|
endCount: number;
|
|
sumAll: number;
|
|
progress: number;
|
|
taskStatusData: any;
|
|
}
|
|
|
|
export interface ActionListItem {
|
|
actionDay: number;
|
|
actionEndDate: string;
|
|
actionManager: number;
|
|
actionName: string;
|
|
actionNo: any;
|
|
actionStartDate: string;
|
|
actionStatus: number;
|
|
actionTerm: number;
|
|
actionTitle: any;
|
|
actorName: any;
|
|
audienceGroup: any
|
|
audienceGroupId: any;
|
|
audienceRecReason: any
|
|
behavior: any
|
|
createBy: number
|
|
createTime: string;
|
|
deleteFlag: number;
|
|
deptId: any;
|
|
deptName: string;
|
|
drivingFactor: any;
|
|
expectedBehaviorId: any;
|
|
id: number
|
|
keywords: string
|
|
level: number
|
|
scene: string
|
|
sourceType: number
|
|
step: null
|
|
taskId: number
|
|
updateBy: number
|
|
updateTime: number
|
|
useActionId: null
|
|
}
|
|
|
|
export interface actionColumnItem {
|
|
icon: string;
|
|
columnName: string;
|
|
actionList: ActionListItem[]
|
|
}
|
|
|
|
export const taskStatusList = {
|
|
'0': {
|
|
label: '待签收',
|
|
color: '#0062d9',
|
|
icon: '待签收.svg'
|
|
},
|
|
'10': {
|
|
label: '待分析',
|
|
color: '#2f9acc',
|
|
icon: '待CEH.svg'
|
|
},
|
|
'20': {
|
|
label: '分析中',
|
|
color: '#d97b00',
|
|
icon: '进行中.svg'
|
|
},
|
|
'25': {
|
|
label: '分析完成已提交',
|
|
color: '#1eb07f',
|
|
icon: '完成.svg'
|
|
},
|
|
'30': {
|
|
label: '已分析待审核',
|
|
color: '#1eb07f',
|
|
icon: '完成.svg'
|
|
},
|
|
'40': {
|
|
label: '分析审核通过',
|
|
color: '#1eb07f',
|
|
icon: '完成.svg'
|
|
},
|
|
'50': {
|
|
label: '分析审核未通过',
|
|
color: '#cf1322',
|
|
icon: '未通过.svg'
|
|
},
|
|
'60': {
|
|
label: '行动已下发待签收',
|
|
color: '#1eb07f',
|
|
icon: '完成.svg'
|
|
},
|
|
'70': {
|
|
label: '行动已签收待策划',
|
|
color: '#1eb07f',
|
|
icon: '完成.svg'
|
|
},
|
|
'80': {
|
|
label: '行动策划已提交',
|
|
color: '#1eb07f',
|
|
icon: '完成.svg'
|
|
},
|
|
'100': {
|
|
label: '作战方案待审核',
|
|
color: '#1eb07f',
|
|
icon: '完成.svg'
|
|
},
|
|
'110': {
|
|
label: '作战方案审核通过',
|
|
color: '#1eb07f',
|
|
icon: '完成.svg'
|
|
},
|
|
'120': {
|
|
label: '作战方案未通过',
|
|
color: '#cf1322',
|
|
icon: '未通过.svg'
|
|
}
|
|
};
|
|
export default function TaskManagement() {
|
|
return (
|
|
<div className="h-full flex flex-col">
|
|
<Outlet />
|
|
</div>
|
|
);
|
|
}
|