From 212af0b4bbc0f11e0b552d1bc3a4a73e52127e02 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期四, 17 十月 2024 09:52:33 +0800
Subject: [PATCH] WMS
---
项目代码/WMS/WIDESEA_WMSClient/src/views/system/UserInfo.vue | 52 ++++++++++++++--------------------------------------
1 files changed, 14 insertions(+), 38 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/system/UserInfo.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/system/UserInfo.vue"
index 35ba0a0..32eb1d3 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/system/UserInfo.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/system/UserInfo.vue"
@@ -21,7 +21,7 @@
<span>娉ㄥ唽鏃ユ湡锛歿{ userInfo.createDate }}</span>
</p>
<p>
- <el-button type="error" @click="modifyPwd" size="small" long>淇敼瀵嗙爜</el-button>
+ <el-button type="error" @click="modifyPwd" size="small" icon="md-lock" long>淇敼瀵嗙爜</el-button>
<!-- <el-button
style="padding: 3px 16px"
@click="modifyImg"
@@ -37,14 +37,15 @@
<div class="right">
<vol-form ref="form" :load-key="true" :width="500" :formRules="editFormOptions" :formFields="editFormFields">
<div class="footer">
- <el-button
+ <!-- <el-button
style="margin-top: 2px"
type="primary"
size="small"
+ icon="md-checkmark-circle"
long
@click="modifyInfo"
>淇濆瓨</el-button
- >
+ > -->
</div>
</vol-form>
</div>
@@ -80,7 +81,7 @@
return this.$message.error("涓ゆ瀵嗙爜涓嶄竴鑷�");
}
let url =
- "/api/Sys_user/modifyPwd?oldPwd=" +
+ "/api/User/modifyPwd?oldPwd=" +
this.modifyOptions.fields.oldPwd +
"&newPwd=" +
this.modifyOptions.fields.newPwd;
@@ -94,33 +95,11 @@
});
},
modifyInfo() {
- // this.$message.info("淇敼涓汉淇℃伅");
- let url =
- "/api/Sys_user/UpdateInfo?roleName=" +
- this.editFormFields.roleName +
- "&userName=" +
- this.editFormFields.userName +
- "&userTrueName=" +
- this.editFormFields.userTrueName +
- "&address=" +
- this.editFormFields.address +
- "&gender=" +
- this.editFormFields.gender +
- "&remark=" +
- this.editFormFields.remark +
- this.http.post(url, {}, true).then((x) => {
- if (!x.status) {
- return this.$message.error(x.message);
- }
- // this.modifyOptions.model = false;
- // this.$Message.success(x.message);
- // this.$refs.pwd.reset();
- });
- console.log(this.editFormFields.roleName)
+ this.$message.info("淇敼涓汉淇℃伅");
},
},
created() {
- this.http.post("/api/Sys_user/getCurrentUserInfo", {}, true).then((x) => {
+ this.http.post("/api/Sys_User/getCurrentUserInfo", {}, true).then((x) => {
if (!x.status) {
return this.$message(x.message);
}
@@ -143,7 +122,7 @@
errorImg: 'this.src="' + require("@/assets/imgs/error-img.png") + '"',
modifyOptions: {
model: false,
- fields: { oldPwd: "", newPwd: "", newPwd1: ""},
+ fields: { oldPwd: "", newPwd: "", newPwd1: "" },
data: [
[
{
@@ -151,7 +130,6 @@
required: true,
title: "鏃у瘑鐮�",
field: "oldPwd",
-
},
],
[
@@ -181,7 +159,6 @@
phoneNo: "",
},
editFormFields: {
- user_Id:"",
roleName: "",
userName: "",
userTrueName: "",
@@ -190,18 +167,12 @@
remark: "",
},
editFormOptions: [
- [
- {
- columnType: "int",
- title: "ID",
- field: "user_Id",
- },
- ],
[
{
columnType: "string",
title: "鐢ㄦ埛鍚�",
field: "userName",
+ disabled: true,
},
],
[
@@ -209,6 +180,7 @@
columnType: "string",
title: "瑙掕壊",
field: "roleName",
+ disabled: true,
type: "text",
},
],
@@ -218,6 +190,7 @@
title: "鐪熷疄濮撳悕",
field: "userTrueName",
required: true,
+ disabled: true,
type: "text",
},
],
@@ -226,6 +199,7 @@
columnType: "string",
title: "鍦板潃",
field: "address",
+ disabled: true,
type: "text",
},
],
@@ -234,6 +208,7 @@
dataKey: "gender",
title: "鎬у埆",
field: "gender",
+ disabled: true,
data: [],
type: "select",
},
@@ -243,6 +218,7 @@
columnType: "string",
title: "澶囨敞",
field: "remark",
+ disabled: true,
colSize: 12,
type: "textarea",
},
--
Gitblit v1.9.3