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() }, }) } 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,