From 479fae043042aeb3951e6ad36ffc1e6d3518c265 Mon Sep 17 00:00:00 2001 From: Jason <5340635+wen-jason@user.noreply.gitee.com> Date: Mon, 29 Aug 2022 19:06:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/api/org/department.ts | 5 +++++ admin/src/api/org/post.ts | 5 +++++ admin/src/api/perms/menu.ts | 5 +++++ admin/src/components/icon/picker.vue | 9 ++++++-- .../components/header/multiple-tabs.vue | 2 +- admin/src/router/routes.ts | 21 ++++++++++++++++++- admin/src/stores/modules/multipleTabs.ts | 9 ++++---- admin/src/views/dev_tools/code/index.vue | 4 ++-- .../views/organization/department/edit.vue | 12 +++++++++-- .../views/organization/department/index.vue | 3 ++- admin/src/views/organization/post/edit.vue | 14 +++++++++++-- admin/src/views/organization/post/index.vue | 5 ++++- admin/src/views/permission/menu/edit.vue | 12 +++++++++-- admin/src/views/permission/menu/index.vue | 2 +- .../src/views/setting/website/information.vue | 2 ++ admin/src/views/setting/website/protocol.vue | 2 ++ 16 files changed, 93 insertions(+), 19 deletions(-) diff --git a/admin/src/api/org/department.ts b/admin/src/api/org/department.ts index 6ea09ccb..b4899a0e 100644 --- a/admin/src/api/org/department.ts +++ b/admin/src/api/org/department.ts @@ -19,3 +19,8 @@ export function deptEdit(params: any) { export function deptDelete(params: any) { return request.post({ url: '/system/dept/del', params }) } + +// 部门详情 +export function deptDetail(params?: any) { + return request.get({ url: '/system/dept/detail', params }) +} diff --git a/admin/src/api/org/post.ts b/admin/src/api/org/post.ts index af4d714c..63a15fc1 100644 --- a/admin/src/api/org/post.ts +++ b/admin/src/api/org/post.ts @@ -23,3 +23,8 @@ export function postEdit(params: any) { export function postDelete(params: any) { return request.post({ url: '/system/post/del', params }) } + +// 岗位详情 +export function postDetail(params: any) { + return request.get({ url: '/system/post/detail', params }) +} diff --git a/admin/src/api/perms/menu.ts b/admin/src/api/perms/menu.ts index dc341a6f..577e143f 100644 --- a/admin/src/api/perms/menu.ts +++ b/admin/src/api/perms/menu.ts @@ -19,3 +19,8 @@ export function menuEdit(params: Record) { export function menuDelete(params: Record) { return request.post({ url: '/system/menu/del', params }) } + +// 菜单删除 +export function menuDetail(params: Record) { + return request.get({ url: '/system/menu/detail', params }) +} diff --git a/admin/src/components/icon/picker.vue b/admin/src/components/icon/picker.vue index 3a861b5c..60475255 100644 --- a/admin/src/components/icon/picker.vue +++ b/admin/src/components/icon/picker.vue @@ -1,6 +1,10 @@ diff --git a/admin/src/views/organization/post/index.vue b/admin/src/views/organization/post/index.vue index 39592a61..afa742ce 100644 --- a/admin/src/views/organization/post/index.vue +++ b/admin/src/views/organization/post/index.vue @@ -73,6 +73,7 @@ diff --git a/admin/src/views/permission/menu/index.vue b/admin/src/views/permission/menu/index.vue index 50bb7c17..a3e398d0 100644 --- a/admin/src/views/permission/menu/index.vue +++ b/admin/src/views/permission/menu/index.vue @@ -129,7 +129,7 @@ const handleEdit = async (data: any) => { showEdit.value = true await nextTick() editRef.value?.open('edit') - editRef.value?.setFormData(data) + editRef.value?.getDetail(data) } const handleDelete = async (id: number) => { diff --git a/admin/src/views/setting/website/information.vue b/admin/src/views/setting/website/information.vue index 6ad05c17..57938418 100644 --- a/admin/src/views/setting/website/information.vue +++ b/admin/src/views/setting/website/information.vue @@ -42,6 +42,7 @@