From 0e5763b1b39de488adb3bcc856a2201f87597a08 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期一, 23 十二月 2024 15:56:40 +0800
Subject: [PATCH] 人员测试联调

---
 src/components/view/person-manage.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/components/view/person-manage.vue b/src/components/view/person-manage.vue
index 78392f4..d38b0ae 100644
--- a/src/components/view/person-manage.vue
+++ b/src/components/view/person-manage.vue
@@ -178,7 +178,7 @@
         </div>
       </div>
       <div class="table">
-        <ValueTable ref="ValueTable" :url="$api.user.selectUserList" :upUrl="$api.user.updateUser"
+        <ValueTable ref="ValueTable" :url="$api.user.selectUserList2" :upUrl="$api.user.updateUser"
           :componentData="componentData" :key="upIndex" />
       </div>
     </div>
@@ -519,12 +519,14 @@
           })
         }).catch(e => {})
       },
-      selectTreeList() {
+      selectTreeList(e) {
         this.treeLoad = true
         this.$axios.get(this.$api.department.selectDepartment).then(res => {
           this.list = res.data
           this.treeLoad = false
-          this.componentData.entity.roleId = this.list[0].id;
+          if(!e){
+            this.componentData.entity.roleId = this.list[0].id;
+          }
           this.refreshTable()
         })
       },
@@ -545,7 +547,7 @@
           }
           this.$message.success('娣诲姞鎴愬姛')
           this.addDia = false
-          this.selectTreeList()
+          this.selectTreeList(true)
           this.addLoad = false
           this.addOb.name = ''
         }).catch(e => {
@@ -613,7 +615,7 @@
           this.$refs.personTable.clearSelection()
           this.addLoad = false
           this.userSearch2 = ''
-          this.selectTreeList()
+          this.selectTreeList(true)
         }).catch(e => {
           this.addLoad = false
         })

--
Gitblit v1.9.3