From 7936f7a3a3d970f494be46f70a52e30a772d8f56 Mon Sep 17 00:00:00 2001 From: lemoncc <4831703@qq.com> Date: Mon, 14 Aug 2023 19:36:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=BC=80=E5=90=AF/=E5=85=B3=E9=97=AD=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/infra/job/index.ts | 6 +----- src/views/infra/job/index.vue | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/api/infra/job/index.ts b/src/api/infra/job/index.ts index e128b5bc..6c7ed9e4 100644 --- a/src/api/infra/job/index.ts +++ b/src/api/infra/job/index.ts @@ -57,11 +57,7 @@ export function exportJob(params: JobExportReqVO) { // 任务状态修改 export function updateJobStatus(id: number, status: number) { - const params = { - id, - status, - } - return defHttp.put({ url: '/infra/job/update-status', params }) + return defHttp.put({ url: `/infra/job/update-status?id=${id}&status=${status}` }) } // 定时任务立即执行一次 diff --git a/src/views/infra/job/index.vue b/src/views/infra/job/index.vue index fcb9b8ff..8d74b769 100644 --- a/src/views/infra/job/index.vue +++ b/src/views/infra/job/index.vue @@ -52,6 +52,7 @@ function handleChangeStatus(record: Recordable, open: boolean) { async onOk() { await updateJobStatus(record.id, status) createMessage.success(t('common.successText')) + reload() }, }) }