From 2d7cbc4d9d78ce4054c34bea0b80a8f5739a57c3 Mon Sep 17 00:00:00 2001 From: xiayuping666 <1269237624@qq.com> Date: Thu, 18 Apr 2024 17:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/admin.js | 4 +- src/views/department/api.js | 33 ++ src/views/department/index.vue | 235 +++++++++++-- src/views/login/index.vue | 5 +- src/views/rolePermissions/api.js | 61 ++-- src/views/rolePermissions/index copy.vue | 264 +++++++++++++++ src/views/rolePermissions/index.vue | 400 ++++++++++------------- 7 files changed, 733 insertions(+), 269 deletions(-) create mode 100644 src/views/rolePermissions/index copy.vue diff --git a/public/admin.js b/public/admin.js index aa88ad6..02724e0 100644 --- a/public/admin.js +++ b/public/admin.js @@ -659,7 +659,9 @@ export default { "roles": ["admin", "common"], "icon": "el-icon-collection" } - } + }, + + ] } diff --git a/src/views/department/api.js b/src/views/department/api.js index 18521dd..68131f6 100644 --- a/src/views/department/api.js +++ b/src/views/department/api.js @@ -41,6 +41,39 @@ export function deleteDept (id) { } }) } +// 获取所有的用户 +export function getallUser (params) { + return request({ + url: `/manager/user/list`, + method: 'get', + params + }) +} +// 添加部门用户 +export function postDeptUser (data) { + return request({ + url: `/manager/dept/user`, + method: 'post', + data + }) +} +// 添加部门用户 +export function deleteDeptUser (data) { + return request({ + url: `/manager/dept/user`, + method: 'DELETE', + data + }) +} + +// 修改部门用户迁移到其他部门 +export function putDeptUser (data) { + return request({ + url: `/manager/dept/user`, + method: 'put', + data + }) +} diff --git a/src/views/department/index.vue b/src/views/department/index.vue index c784743..d48c56f 100644 --- a/src/views/department/index.vue +++ b/src/views/department/index.vue @@ -7,9 +7,9 @@ ref="areaTrees" :default-expanded-keys="defaultCheckedKeys" :default-checked-keys="defaultCheckedKeys" - accordion - :highlight-current="true" - :props="defaultProps" @node-click="handleNodeClick" + accordion + :highlight-current="true" + :props="defaultProps" @node-click="handleNodeClick" >
@@ -30,11 +30,10 @@
- 添加人员 - + 添加人员
@@ -51,11 +50,34 @@ - - - + + + + -
+ + + +
+
搜索
+ + + +
+
+
+ + + + + + + + + + + + + + + + 取 消 + 确定添加 + +
+ + + + + + + + + +
+
+ + 取 消 + 确定转移 + +
+ + diff --git a/src/views/rolePermissions/index.vue b/src/views/rolePermissions/index.vue index c61e63c..f8f1fd9 100644 --- a/src/views/rolePermissions/index.vue +++ b/src/views/rolePermissions/index.vue @@ -1,74 +1,126 @@