feat(projects): 增加意见反馈
This commit is contained in:
@@ -20,7 +20,8 @@ export type StatusDomain =
|
||||
| 'workReport'
|
||||
| 'performanceSheet'
|
||||
| 'personalItem'
|
||||
| 'overtimeApplication';
|
||||
| 'overtimeApplication'
|
||||
| 'feedback';
|
||||
|
||||
const statusTagTypeRegistry: Record<StatusDomain, Record<string, StatusTagType>> = {
|
||||
// 项目-执行
|
||||
@@ -108,6 +109,13 @@ const statusTagTypeRegistry: Record<StatusDomain, Record<string, StatusTagType>>
|
||||
pending: 'warning',
|
||||
approved: 'success',
|
||||
rejected: 'danger'
|
||||
},
|
||||
// 意见反馈
|
||||
feedback: {
|
||||
'1': 'warning', // 待处理
|
||||
'2': 'primary', // 处理中
|
||||
'3': 'success', // 已处理
|
||||
'4': 'info' // 已忽略
|
||||
}
|
||||
};
|
||||
|
||||
@@ -122,3 +130,10 @@ export function getStatusTagType(domain: StatusDomain, statusCode: string | null
|
||||
export function getPersonalItemStatusTagType(statusCode: string | null | undefined) {
|
||||
return getStatusTagType('personalItem', statusCode);
|
||||
}
|
||||
|
||||
export function getFeedbackStatusTagType(statusCode: string | number | null | undefined) {
|
||||
return getStatusTagType(
|
||||
'feedback',
|
||||
statusCode === null || statusCode === undefined ? statusCode : String(statusCode)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user