定时任务,环境变量添加状态筛选

This commit is contained in:
hanhh
2021-08-20 16:31:24 +08:00
parent 18215b8336
commit c09b22358b
2 changed files with 36 additions and 0 deletions
+11
View File
@@ -150,6 +150,17 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
dataIndex: 'status',
align: 'center' as const,
width: 60,
filters: [
{
text: '已启用',
value: 0,
},
{
text: '已禁用',
value: 1,
},
],
onFilter: (value: number, record: any) => record.status === value,
render: (text: string, record: any, index: number) => {
return (
<Space size="middle" style={{ cursor: 'text' }}>