From d03829bdf327d0e457a2f4e3699a69d5ad47d3a3 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 03 九月 2024 10:41:34 +0800
Subject: [PATCH] 测试完成

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

diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 6f1d6d2..d31eecf 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -307,8 +307,9 @@
           <el-col :span="12">
             <el-form-item label="褰掑睘閮ㄩ棬" prop="deptId">
               <treeselect
-                v-model="form.deptId"
+                v-model="form.depts"
                 :options="deptOptions"
+                :multiple="true"
                 :show-count="true"
                 placeholder="璇烽�夋嫨褰掑睘閮ㄩ棬"
               />
@@ -536,6 +537,7 @@
       initPassword: undefined,
       // 鏃ユ湡鑼冨洿
       dateRange: [],
+      deptIds: [],
       // 宀椾綅閫夐」
       postOptions: [],
       // 瑙掕壊閫夐」
@@ -741,14 +743,17 @@
         this.open = true;
         this.title = "娣诲姞鐢ㄦ埛";
         this.form.password = this.initPassword;
+        this.form.depts = [];
       });
     },
     /** 淇敼鎸夐挳鎿嶄綔 */
     handleUpdate(row) {
       this.reset();
+      this.deptIds = [];
       const userId = row.userId || this.ids;
       getUser(userId).then((response) => {
         this.form = response.data;
+
         this.postOptions = response.posts;
         this.roleOptions = response.roles;
         this.$set(this.form, "postIds", response.postIds);

--
Gitblit v1.9.3