From 4e6c841dd09baff7fafb0e21fec36ee7faf61588 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 09 九月 2024 15:01:41 +0800
Subject: [PATCH] 测试完成

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

diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index bb206c6..7322ae1 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -307,7 +307,7 @@
           <el-col :span="12">
             <el-form-item label="褰掑睘閮ㄩ棬" prop="deptId">
               <treeselect
-                v-model="deptIds"
+                v-model="form.depts"
                 :options="deptOptions"
                 :multiple="true"
                 :show-count="true"
@@ -737,13 +737,15 @@
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {
       this.reset();
-      getUser().then((response) => {
-        this.postOptions = response.posts;
-        this.roleOptions = response.roles;
-        this.open = true;
+      this.open = true;
         this.title = "娣诲姞鐢ㄦ埛";
         this.form.password = this.initPassword;
-      });
+        this.form.depts = [];
+      // getUser().then((response) => {
+      //   this.postOptions = response.posts;
+      //   this.roleOptions = response.roles;
+
+      // });
     },
     /** 淇敼鎸夐挳鎿嶄綔 */
     handleUpdate(row) {

--
Gitblit v1.9.3