From acae84ed08d03fc234ed796347fc23fe9d97d533 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Tue, 27 Feb 2024 11:00:07 +0800
Subject: [PATCH] 物业公司角色名称不显示问题修复法

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

diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index 787c39a..7a4d9ac 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -465,7 +465,8 @@
                             leafOnly: false,
                             dicData: [],
                             props: {
-                                label: "title"
+                                label: "title",
+                                value:"id"
                             },
                             rules: [{
                                 required: true,
@@ -719,7 +720,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)
@@ -738,7 +739,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)
@@ -908,9 +909,9 @@
                     if (this.form.hasOwnProperty("roleId")) {
                         this.form.roleId = this.form.roleId.split(",")
                     }
-                    if (this.form.hasOwnProperty("postId")) {
-                        this.form.postId = this.form.postId.split(",")
-                    }
+                    // if (this.form.hasOwnProperty("postId")) {
+                    //     this.form.postId = this.form.postId.split(",")
+                    // }
                 })
             }
             this.initFlag = true

--
Gitblit v1.9.3