From 373967063b9a5387b461de3f4dc4beb35fb5080a Mon Sep 17 00:00:00 2001 From: jiaohongtao Date: Mon, 14 Aug 2023 05:59:41 +0000 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=AD=A7=E4=B9=89?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiaohongtao --- src/views/system/dept/dept.data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/system/dept/dept.data.ts b/src/views/system/dept/dept.data.ts index 3526bce..dbd5684 100644 --- a/src/views/system/dept/dept.data.ts +++ b/src/views/system/dept/dept.data.ts @@ -105,7 +105,7 @@ export const formSchema: FormSchema[] = [ component: 'Input', }, { - label: '岗位顺序', + label: '显示顺序', field: 'sort', required: true, defaultValue: 0, 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 2/2] =?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 e128b5b..6c7ed9e 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 fcb9b8f..8d74b76 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() }, }) }