Showing
1 changed file
with
2 additions
and
6 deletions
@@ -86,12 +86,8 @@ export const columnSchedue: BasicColumn[] = [ | @@ -86,12 +86,8 @@ export const columnSchedue: BasicColumn[] = [ | ||
86 | title: '任务组名', | 86 | title: '任务组名', |
87 | dataIndex: 'jobGroup', | 87 | dataIndex: 'jobGroup', |
88 | width: 120, | 88 | width: 120, |
89 | - format: (_text: string, record: Recordable) => { | ||
90 | - return record.jobGroup === EJobGroup.DEFAULT | ||
91 | - ? '默认' | ||
92 | - : record.jobGroup === EJobGroup.SYSTEM | ||
93 | - ? '系统' | ||
94 | - : '报表'; | 89 | + format: (text: string) => { |
90 | + return EJobGroupName[text] || EJobGroupName.REPORT; | ||
95 | }, | 91 | }, |
96 | }, | 92 | }, |
97 | { | 93 | { |