From 33be215c0a4b9f1da7594d29c7772232dfecb364 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Thu, 23 May 2024 15:24:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login/index.ts | 4 +- src/api/system/dept/index.ts | 2 +- src/api/system/role/index.ts | 2 +- src/layout/components/RoleSelect/index.vue | 18 ++++--- src/locales/zh-CN.ts | 3 +- src/router/modules/remaining.ts | 10 +++- src/views/Basic/Dept/DeptForm.vue | 4 +- src/views/Basic/Dept/index.vue | 23 +++------ src/views/Basic/User/DeptTree.vue | 56 +--------------------- src/views/Basic/User/UserForm.vue | 41 +++++----------- src/views/Basic/User/index.vue | 24 +++++----- 11 files changed, 60 insertions(+), 127 deletions(-) diff --git a/src/api/login/index.ts b/src/api/login/index.ts index fcda06f..d342031 100644 --- a/src/api/login/index.ts +++ b/src/api/login/index.ts @@ -33,8 +33,8 @@ export const loginOut = () => { } // 获取用户权限信息 -export const getInfo = () => { - return request.get({ url: '/system/auth/get-permission-info' }) +export const getInfo = (data) => { + return request.get({ url: '/system/auth/get-permission-info', data }) } //获取登录验证码 diff --git a/src/api/system/dept/index.ts b/src/api/system/dept/index.ts index d995f13..161ff68 100644 --- a/src/api/system/dept/index.ts +++ b/src/api/system/dept/index.ts @@ -18,7 +18,7 @@ export const getSimpleDeptList = async (): Promise => { } // 查询部门列表 -export const getDeptPage = async (params: PageParam) => { +export const getDeptPage = async (params) => { return await request.get({ url: '/system/dept/list', params }) } diff --git a/src/api/system/role/index.ts b/src/api/system/role/index.ts index e6548cb..d1a4428 100644 --- a/src/api/system/role/index.ts +++ b/src/api/system/role/index.ts @@ -23,7 +23,7 @@ export const getRolePage = async (params: PageParam) => { } // 查询角色(精简)列表 -export const getSimpleRoleList = async (): Promise => { +export const getSimpleRoleList = async () => { return await request.get({ url: '/system/role/list-all-simple' }) } diff --git a/src/layout/components/RoleSelect/index.vue b/src/layout/components/RoleSelect/index.vue index 54cddf5..d186a23 100644 --- a/src/layout/components/RoleSelect/index.vue +++ b/src/layout/components/RoleSelect/index.vue @@ -1,18 +1,22 @@ diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 3bc3eb8..100d449 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -436,5 +436,6 @@ export default { btn_zoom_in: '放大', btn_zoom_out: '缩小', preview: '预览' - } + }, + 'OAuth 2.0': 'OAuth 2.0' // 避免菜单名是 OAuth 2.0 时,一直 warn 报错 } diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 4bcb100..dce4ec9 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -50,7 +50,15 @@ const remainingRouter: AppRouteRecordRaw[] = [ noTagsView: true } }, - + { + path: '', + component: Layout, + redirect: '/Home/index', + meta: { + title: '首页', + hidden: true + } + }, { path: '/user', component: Layout, diff --git a/src/views/Basic/Dept/DeptForm.vue b/src/views/Basic/Dept/DeptForm.vue index f3bdf03..02f4334 100644 --- a/src/views/Basic/Dept/DeptForm.vue +++ b/src/views/Basic/Dept/DeptForm.vue @@ -43,8 +43,8 @@ - 启用 - 禁用 + 启用 + 禁用 diff --git a/src/views/Basic/Dept/index.vue b/src/views/Basic/Dept/index.vue index c14df8d..79d6572 100644 --- a/src/views/Basic/Dept/index.vue +++ b/src/views/Basic/Dept/index.vue @@ -22,8 +22,8 @@ - - + +