修复 getCronById api status

This commit is contained in:
whyour 2026-05-31 15:53:24 +08:00
parent b6537e27ef
commit 4bee3fbdf4
3 changed files with 5 additions and 4 deletions

View File

@ -54,9 +54,9 @@ export class Crontab {
export enum CrontabStatus {
'running' = 0,
'queued' = 0.5,
'idle' = 1,
'disabled',
'disabled' = 2,
'queued' = 3,
}
export interface CronInstance extends Model<Crontab, Crontab>, Crontab {}

View File

@ -1,8 +1,8 @@
export enum CrontabStatus {
'running' = 0,
'queued' = 0.5,
'idle' = 1,
'disabled',
'disabled' = 2,
'queued' = 3,
}
export enum OperationName {

View File

@ -76,6 +76,7 @@ const ViewCreateModal = ({
{ name: intl.get('运行中'), value: CrontabStatus.running },
{ name: intl.get('空闲中'), value: CrontabStatus.idle },
{ name: intl.get('已禁用'), value: CrontabStatus.disabled },
{ name: intl.get('排队中'), value: CrontabStatus.queued },
],
sub_id: data?.data.map((x) => ({ name: x.name, value: x.id })),
};