|
@@ -146,7 +146,10 @@ const ScheduleList: React.FC<ScheduleListProps> = (props) => {
|
|
|
title: '类型',
|
|
|
dataIndex: 'jobType',
|
|
|
width: 60,
|
|
|
- align: 'center'
|
|
|
+ align: 'center',
|
|
|
+ render: (data) => (<>
|
|
|
+ {data === 'weChatWork' ? '企业微信' : data === 'email' ? 'Email' : data}
|
|
|
+ </>)
|
|
|
},
|
|
|
{
|
|
|
title: '有效开始时间',
|
|
@@ -164,7 +167,13 @@ const ScheduleList: React.FC<ScheduleListProps> = (props) => {
|
|
|
title: '状态',
|
|
|
dataIndex: 'jobStatus',
|
|
|
width: 80,
|
|
|
- align: 'center'
|
|
|
+ align: 'center',
|
|
|
+ render: (data) => (<>
|
|
|
+ {data === 'new' && '新建'}
|
|
|
+ {data === 'started' && '已启动'}
|
|
|
+ {data === 'stopped' && '已停止'}
|
|
|
+ {data === 'failed' && '失败'}
|
|
|
+ </>)
|
|
|
}
|
|
|
]
|
|
|
}, [])
|