diff --git a/src/api/system-boot/csDictData.ts b/src/api/system-boot/csDictData.ts index 70cc864..4bb381c 100644 --- a/src/api/system-boot/csDictData.ts +++ b/src/api/system-boot/csDictData.ts @@ -100,3 +100,19 @@ export const deleteTimer = (data: any) => { data: data }) } +// 关闭任务 +export const stop = (params: any) => { + return request({ + url: '/system-boot/timer/stop', + method: 'get', + params + }) +} +// 启动任务 +export const start = (params: any) => { + return request({ + url: '/system-boot/timer/start', + method: 'get', + params + }) +} \ No newline at end of file diff --git a/src/views/system/scheduledTasks/index.vue b/src/views/system/scheduledTasks/index.vue index 614ebd5..f381175 100644 --- a/src/views/system/scheduledTasks/index.vue +++ b/src/views/system/scheduledTasks/index.vue @@ -35,7 +35,7 @@ - +