From 5cdce1645f2410a696797598793759f286edade7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=BA=A2=E4=B8=BD?= <1181930680@qq.com> Date: Fri, 12 Jul 2024 10:00:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/level.ts | 10 ++++ src/views/data/param/edit.vue | 14 ++++- src/views/system/level/columns.ts | 2 +- src/views/system/level/edit.vue | 8 +-- src/views/system/level/index.vue | 82 ++++++++++++++++++++++++++-- src/views/system/position/columns.ts | 2 +- src/views/system/position/edit.vue | 8 +-- src/views/system/user/index.vue | 2 +- 8 files changed, 107 insertions(+), 21 deletions(-) diff --git a/src/api/system/level.ts b/src/api/system/level.ts index 72615ef..80a592c 100644 --- a/src/api/system/level.ts +++ b/src/api/system/level.ts @@ -64,4 +64,14 @@ export function levelBatchDelete(data:any) { method: 'DELETE', data }); +} +/** + * @description: 导出职级 + */ +export function levelExport() { + return http.request({ + url: '/level/export', + method: 'GET', + responseType: 'blob' + }); } \ No newline at end of file diff --git a/src/views/data/param/edit.vue b/src/views/data/param/edit.vue index 2734c70..da0b0ab 100644 --- a/src/views/data/param/edit.vue +++ b/src/views/data/param/edit.vue @@ -36,6 +36,18 @@ clearable /> + + + 正常 @@ -72,7 +84,7 @@ const formData = reactive({ id: "", name: "", code:'', - type:'', + value:'', status: 1, sort: 0, note:'', diff --git a/src/views/system/level/columns.ts b/src/views/system/level/columns.ts index 3385421..74e3008 100644 --- a/src/views/system/level/columns.ts +++ b/src/views/system/level/columns.ts @@ -19,7 +19,7 @@ export const columns = [ type: record.row.status ==1 ? 'success' : 'danger', }, { - default: () => (record.row.status ==1 ? '正常' : '禁用'), + default: () => (record.row.status ==1 ? '正常' : '停用'), }, ); }, diff --git a/src/views/system/level/edit.vue b/src/views/system/level/edit.vue index 0ca2f93..9a129bf 100644 --- a/src/views/system/level/edit.vue +++ b/src/views/system/level/edit.vue @@ -27,15 +27,12 @@ 正常 - 禁用 + 停用 - - -