修复定时任务状态筛选

This commit is contained in:
whyour
2023-04-02 14:42:18 +08:00
parent f19dd21155
commit a25bfb6912
2 changed files with 13 additions and 12 deletions
+1 -8
View File
@@ -279,13 +279,6 @@ const Crontab = () => {
value: 3,
},
],
onFilter: (value, record) => {
if (record.isDisabled && record.status !== 0) {
return value === 2;
} else {
return record.status === value;
}
},
render: (text, record) => (
<>
{(!record.isDisabled || record.status !== CrontabStatus.idle) && (
@@ -1051,7 +1044,7 @@ const Crontab = () => {
rowSelection={rowSelection}
rowClassName={getRowClassName}
onChange={onPageChange}
components={isPhone ? undefined : vt}
// components={isPhone ? undefined : vt}
/>
</div>
<CronLogModal