From 8490cbb68e721a8023e35ccfeecdbcdc9073f5ff Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Thu, 9 Jan 2025 10:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=AF=E5=8A=A8=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system-boot/csDictData.ts | 16 +++++++ src/views/system/scheduledTasks/index.vue | 55 ++++++++++++++++------- 2 files changed, 56 insertions(+), 15 deletions(-) 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 @@ - +