From bd33ae847fc0b0e1a07a21a57fb0a0d13a38c1c5 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期五, 25 十月 2024 23:15:45 +0800
Subject: [PATCH] WMS
---
项目代码/WCS/WIDESEAWCS_Client/src/extension/system/Sys_User/Sys_UserGridHeader.vue | 24 +++++++++++++++++++-----
1 files changed, 19 insertions(+), 5 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/system/Sys_User/Sys_UserGridHeader.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/system/Sys_User/Sys_UserGridHeader.vue"
index f6f59be..50c0e78 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/system/Sys_User/Sys_UserGridHeader.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/system/Sys_User/Sys_UserGridHeader.vue"
@@ -15,8 +15,18 @@
</el-alert>
<div>
<el-input
- placeholder="璇疯緭鍏ュ瘑鐮�"
+ placeholder="璇疯緭鍏ユ棫瀵嗙爜"
v-model="password"
+ type="password"
+ size="large"
+ style="width: 100%; margin-top: 15px"
+ />
+ </div>
+ <div>
+ <el-input
+ placeholder="璇疯緭鍏ユ柊瀵嗙爜"
+ v-model="newPwd"
+ type="password"
size="large"
style="width: 100%; margin-top: 15px"
/>
@@ -45,24 +55,28 @@
return {
row: {},
password: "",
+ newPwd:"",
model: false,
};
},
methods: {
open(row) {
this.password = "";
+ this.newPwd = "";
this.row = row;
this.model = true;
},
savePwd() {
- if (!this.password) return this.$Message.error("璇疯緭瀵嗙爜");
- if (this.password.length < 6)
+ if (!this.password||!this.newPwd) return this.$Message.error("璇疯緭鍏ュ瘑鐮�");
+ if (this.password.length < 6||this.newPwd.length<6)
return this.$Message.error("瀵嗙爜闀垮害鑷冲皯6浣�");
let url =
- "/api/user/modifyUserPwd?password=" +
+ "/api/user/ModifyPwd?oldPwd=" +
this.password +
+ "&newPwd=" +
+ this.newPwd+
"&userName=" +
- this.row.UserName;
+ this.row.userName;
this.http.post(url, {}, true).then((x) => {
if (!x.status) {
return this.$message.error(x.message);
--
Gitblit v1.9.3