From a5cba9ab040f6f97558046885dce3017f9bab7e9 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 11 八月 2026 14:12:29 +0800
Subject: [PATCH] 提交

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

diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 4a0cfcc..b3c00ab 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -722,6 +722,7 @@
       deptTreeSelect(1).then((response) => {
         this.deptOptionsks = response.data;
       });
+      // 鐥呭尯鍒楄〃
       deptTreeSelect(2).then((response) => {
         this.deptOptionsbq = response.data;
       });
@@ -846,7 +847,6 @@
         }
         console.log(this.form.wardCodes, "wardCodes");
         console.log(this.form.deptCodes, "deptCodes");
-
         this.postOptions = response.posts;
         this.roleOptions = response.roles;
         this.$set(this.form, "postIds", response.postIds);
@@ -908,7 +908,7 @@
             updateUser(this.form).then((response) => {
               this.$modal.msgSuccess("淇敼鎴愬姛");
               this.open = false;
-              this.adduserdept();
+              // this.adduserdept();
             });
           } else {
             addUser(this.form).then((response) => {
@@ -917,7 +917,7 @@
               this.form.userId = response.data;
               console.log("寮�濮嬪姞閮ㄩ棬");
 
-              this.adduserdept();
+              // this.adduserdept();
             });
           }
         }
@@ -927,7 +927,7 @@
     adduserdept() {
       if (this.form.wardCodes[0]) {
         this.form.wardCodes.forEach((dept) => {
-          const containsId8 = null;
+          let containsId8 = null;
           if (this.belongWards) {
             containsId8 = this.belongWards.some(
               (item) => item.deptCode == dept
@@ -948,7 +948,7 @@
       }
       if (this.form.deptCodes[0]) {
         this.form.deptCodes.forEach((dept) => {
-          const containsId8 = null;
+          let containsId8 = null;
           if (this.belongDepts) {
             containsId8 = this.belongDepts.some(
               (item) => item.deptCode == dept

--
Gitblit v1.9.3