From 1f0b347af6c0210a6c8b53878483124387baac11 Mon Sep 17 00:00:00 2001
From: xiayuping666 <1269237624@qq.com>
Date: Mon, 22 Apr 2024 14:47:26 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E4=BF=AE=E6=94=B9=E5=AE=8C?=
=?UTF-8?q?=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/classList/classList/index.vue | 2 +
src/views/department/api.js | 11 +++
src/views/department/index.vue | 98 ++++++++++++++++++++++++-
3 files changed, 109 insertions(+), 2 deletions(-)
diff --git a/src/views/classList/classList/index.vue b/src/views/classList/classList/index.vue
index 0c0b7d4..d673266 100644
--- a/src/views/classList/classList/index.vue
+++ b/src/views/classList/classList/index.vue
@@ -197,6 +197,8 @@ export default {
this.classList();
this.$message.success('修改成功')
this.isUpdateDialog = false
+ this.nodeData.className = this.updateForm.name
+
})
},
// 点击修改按钮
diff --git a/src/views/department/api.js b/src/views/department/api.js
index 68131f6..c1e25f3 100644
--- a/src/views/department/api.js
+++ b/src/views/department/api.js
@@ -74,6 +74,17 @@ export function putDeptUser (data) {
data
})
}
+// 设置角色
+export function putUserRole (userId, roleId) {
+ return request({
+ url: `/manager/role/user`,
+ method: 'put',
+ data:{
+ userid: userId,
+ roleIds: roleId
+ }
+ })
+}
diff --git a/src/views/department/index.vue b/src/views/department/index.vue
index d48c56f..0e7f139 100644
--- a/src/views/department/index.vue
+++ b/src/views/department/index.vue
@@ -62,6 +62,15 @@
size="small"
>转移人员
+ 修改角色
+
确定转移
+
+
+
+
+
+
+
+
+
+
+
+
+