From 72390e0230b64cd43fedf0ba8e17aba097568a4a Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期四, 26 六月 2025 16:36:13 +0800
Subject: [PATCH] 1

---
 代码管理/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue |   42 +++++++++++++++++++++++++-----------------
 1 files changed, 25 insertions(+), 17 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue"
index f6f59be..60f6d2d 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue"
@@ -15,22 +15,23 @@
       </el-alert>
       <div>
         <el-input
-          placeholder="璇疯緭鍏ュ瘑鐮�"
+          placeholder="璇疯緭鍏ユ棫瀵嗙爜"
           v-model="password"
           size="large"
           style="width: 100%; margin-top: 15px"
         />
       </div>
+      <div>
+        <el-input
+          placeholder="璇疯緭鍏ユ柊瀵嗙爜"
+          v-model="newpassword"
+          size="large"
+          style="width: 100%; margin-top: 15px"
+        />
+      </div>
       <template #footer>
-        <el-button
-          type="primary"
-          @click="savePwd()"
-          >淇敼瀵嗙爜</el-button
-        >
-        <el-button
-          @click="model = false"
-          >鍏抽棴</el-button
-        >
+        <el-button type="primary" @click="savePwd()">淇敼瀵嗙爜</el-button>
+        <el-button @click="model = false">鍏抽棴</el-button>
       </template>
     </vol-box>
   </div>
@@ -39,30 +40,37 @@
 import { defineComponent, defineAsyncComponent } from "vue";
 export default defineComponent({
   components: {
-    VolBox: defineAsyncComponent(() => import("@/components/basic/VolBox.vue"))
+    VolBox: defineAsyncComponent(() => import("@/components/basic/VolBox.vue")),
   },
   data() {
     return {
       row: {},
       password: "",
+      newpassword: "",
       model: false,
     };
   },
   methods: {
     open(row) {
       this.password = "";
+      this.newpassword = "";
       this.row = row;
       this.model = true;
     },
     savePwd() {
-      if (!this.password) return this.$Message.error("璇疯緭瀵嗙爜");
+      if (!this.password) return this.$Message.error("璇疯緭鍏ユ棫瀵嗙爜");
+      if (!this.newpassword) return this.$Message.error("璇疯緭鍏ユ柊瀵嗙爜");
       if (this.password.length < 6)
-        return this.$Message.error("瀵嗙爜闀垮害鑷冲皯6浣�");
+        return this.$Message.error("鏃у瘑鐮侀暱搴﹁嚦灏�6浣�");
+      if (this.newpassword.length < 6)
+        return this.$Message.error("鏂板瘑鐮侀暱搴﹁嚦灏�6浣�");
       let url =
-        "/api/user/modifyUserPwd?password=" +
+        "/api/user/modifyPwd?oldPwd=" +
         this.password +
-        "&userName=" +
-        this.row.UserName;
+        "&newPwd=" +
+        this.newpassword +
+        "&user_Id=" +
+        this.row.user_Id;
       this.http.post(url, {}, true).then((x) => {
         if (!x.status) {
           return this.$message.error(x.message);
@@ -73,7 +81,7 @@
     },
   },
   created() {},
-})
+});
 </script>
 <style lang="less" scoped>
 h3 {

--
Gitblit v1.9.3