From 3835cf1ca8d5ac8475052d3876ebeb4a2c4160f1 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 22 Jan 2024 14:22:02 +0800
Subject: [PATCH] 根据角色,动态切换首页,及首页变更的一系列相关调整

---
 src/views/system/user.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index 5f32427..13eb5b8 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -436,14 +436,14 @@
                             {
                                 label: "所属角色",
                                 prop: "roleId",
-                                multiple: true,
                                 type: "tree",
+                                multiple: true,
+                                checkStrictly: true,
+                                leafOnly: false,
                                 dicData: [],
                                 props: {
                                     label: "title"
                                 },
-                                checkStrictly: true,
-                                slot: true,
                                 rules: [{
                                     required: true,
                                     message: "请选择所属角色",
@@ -456,7 +456,7 @@
                                 type: "tree",
                                 // multiple: true,
                                 dicData: [],
-                                dataType:"string",
+                                dataType: "string",
                                 props: {
                                     label: "title"
                                 },
@@ -699,7 +699,7 @@
             row['userType'] = 1
             row.deptId = func.join(row.deptId)
             row.roleId = func.join(row.roleId)
-            row.postId = func.join(row.postId);
+            row.postId = func.join(row.postId)
             add(row).then(() => {
                 this.initFlag = false
                 this.onLoad(this.page)
@@ -718,7 +718,7 @@
             row['userType'] = 1
             row.deptId = func.join(row.deptId)
             row.roleId = func.join(row.roleId)
-            row.postId = func.join(row.postId);
+            row.postId = func.join(row.postId)
             update(row).then(() => {
                 this.initFlag = false
                 this.onLoad(this.page)

--
Gitblit v1.9.3