From 810fe2bcf1888eacd926f3caa604f033483d20c9 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期三, 30 十月 2024 14:57:33 +0800
Subject: [PATCH] 优化WMS基础管理模块、任务管理添加任务历史信息

---
 项目代码/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue |   35 ++++++++++++-----------------------
 1 files changed, 12 insertions(+), 23 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue"
index 5d1083d..f6f59be 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue"
@@ -9,22 +9,14 @@
     >
       <el-alert type="success">
         <h3>
-          <span>甯愬彿锛歿{ row.UserName }}</span>
-          <span>鐢ㄦ埛锛歿{ row.UserTrueName }}</span>
+          <span>甯愬彿锛歿{ row.userName }}</span>
+          <span>鐢ㄦ埛锛歿{ row.userTrueName }}</span>
         </h3>
       </el-alert>
       <div>
         <el-input
-          placeholder="璇疯緭鍏ユ棫瀵嗙爜"
-          v-model="oldPwd"
-          size="large"
-          style="width: 100%; margin-top: 15px"
-        />
-      </div>
-      <div>
-        <el-input
-          placeholder="璇疯緭鍏ユ柊瀵嗙爜"
-          v-model="newPwd"
+          placeholder="璇疯緭鍏ュ瘑鐮�"
+          v-model="password"
           size="large"
           style="width: 100%; margin-top: 15px"
         />
@@ -52,28 +44,25 @@
   data() {
     return {
       row: {},
-      newPwd: "",
-      oldPwd:"",
+      password: "",
       model: false,
     };
   },
   methods: {
     open(row) {
-      this.newPwd = "";
-      this.oldPwd = "";
+      this.password = "";
       this.row = row;
       this.model = true;
     },
     savePwd() {
-      console.log(this.newPwd,this.oldPwd);
-      if (!this.newPwd&&!this.oldPwd) return this.$Message.error("璇疯緭瀵嗙爜");
-      if (this.newPwd.length < 6&&this.oldPwd.length<6)
+      if (!this.password) return this.$Message.error("璇疯緭瀵嗙爜");
+      if (this.password.length < 6)
         return this.$Message.error("瀵嗙爜闀垮害鑷冲皯6浣�");
       let url =
-        "/api/Sys_user/modifyPwd?oldPwd=" +
-        this.oldPwd +
-        "&newPwd=" +
-        this.newPwd;
+        "/api/user/modifyUserPwd?password=" +
+        this.password +
+        "&userName=" +
+        this.row.UserName;
       this.http.post(url, {}, true).then((x) => {
         if (!x.status) {
           return this.$message.error(x.message);

--
Gitblit v1.9.3