From a4d79237c73a1db49649a8d3108eec95a8e67c37 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期一, 11 八月 2025 14:54:02 +0800
Subject: [PATCH] qx

---
 src/views/system/user/index.vue |   31 ++++++++++++++++++++-----------
 1 files changed, 20 insertions(+), 11 deletions(-)

diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 3f97217..bccf0f7 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -1321,7 +1321,7 @@
           </el-collapse>
         </el-form>
         <div slot="footer" class="dialog-footer1">
-          <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+          <el-button :disabled="submit" type="primary" @click="submitForm">纭� 瀹�</el-button>
           <el-button @click="cancel">鍙� 娑�</el-button>
         </div>
       </el-dialog>
@@ -1465,6 +1465,7 @@
       single: true,
       // 闈炲涓鐢�
       multiple: true,
+      submit: false,
       // 鏄剧ず鎼滅储鏉′欢
       showSearch: true,
       // 鎬绘潯鏁�
@@ -1798,6 +1799,9 @@
       this.ids = selection.map((item) => item.userId);
       this.single = selection.length != 1;
       this.multiple = !selection.length;
+        if (selection.length >= 1) {
+        this.queryParams.userName = selection[0].userName
+      }
     },
 
     // 鏇村鎿嶄綔瑙﹀彂
@@ -1850,18 +1854,20 @@
       });
     },
 
-    handleUp(row) {
+       handleUp(row) {
       this.title = "鐢ㄦ埛淇℃伅缁存姢";
+
+      // this.form = row;
+
       this.open = true;
-      this.form = row;
-      this.form.hospId = Number(row.hospId);
-      // listUser(this.addDateRange(this.queryParams, this.dateRange)).then(
-      //   (response) => {
-      //     response.rows.forEach((item, index) => {
-      //       this.form = item;
-      //     });
-      //   }
-      // );
+      this.submit = false
+      listUser(this.addDateRange(this.queryParams, this.dateRange)).then(
+        (response) => {
+          response.rows.forEach((item, index) => {
+            this.form = item;
+          });
+        }
+      );
     },
     select(val) {
       this.postList.forEach((item) => {
@@ -1889,6 +1895,7 @@
       //   this.forms = this.form.userInfo;
       // }
       this.open = true;
+            this.submit = false
       this.title = "鐢ㄦ埛淇℃伅缁存姢";
     },
 
@@ -1898,9 +1905,11 @@
       this.$refs["form"].validate((valid) => {
         if (valid) {
           if (_this.form.userId !== undefined) {
+           _this.submit = true
             updateUser(_this.form).then((response) => {
               _this.$modal.msgSuccess("淇敼鎴愬姛");
               _this.open = false;
+               _this.submit = false
               _this.getList();
             });
           } else {

--
Gitblit v1.8.0