diff --git a/back/data/cron.ts b/back/data/cron.ts index f2093798..11c15b64 100644 --- a/back/data/cron.ts +++ b/back/data/cron.ts @@ -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 {} diff --git a/src/pages/crontab/type.ts b/src/pages/crontab/type.ts index a71eade3..d559b980 100644 --- a/src/pages/crontab/type.ts +++ b/src/pages/crontab/type.ts @@ -1,8 +1,8 @@ export enum CrontabStatus { 'running' = 0, - 'queued' = 0.5, 'idle' = 1, - 'disabled', + 'disabled' = 2, + 'queued' = 3, } export enum OperationName { diff --git a/src/pages/crontab/viewCreateModal.tsx b/src/pages/crontab/viewCreateModal.tsx index e1e17dfc..646130fa 100644 --- a/src/pages/crontab/viewCreateModal.tsx +++ b/src/pages/crontab/viewCreateModal.tsx @@ -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 })), };