session api改为批量操作

This commit is contained in:
hanhh
2021-05-20 22:04:12 +08:00
parent bb469d4847
commit 189184832e
5 changed files with 83 additions and 92 deletions
+2 -2
View File
@@ -103,7 +103,7 @@ const Crontab = () => {
align: 'center' as const,
render: (text: string, record: any) => (
<>
{(!record.isDisabled || record.status !== CrontabStatus.idle) && (
{!record.isDisabled && (
<>
{record.status === CrontabStatus.idle && (
<Tag icon={<ClockCircleOutlined />} color="default">
@@ -125,7 +125,7 @@ const Crontab = () => {
)}
</>
)}
{record.isDisabled === 1 && record.status === CrontabStatus.idle && (
{record.isDisabled === 1 && (
<Tag icon={<CloseCircleOutlined />} color="error">
</Tag>