郑勃旭 2 years ago
parent
commit
1a06bf460c
  1. 8
      fe/PC/src/api/wms-auth.js
  2. 3
      fe/PC/src/views/profileuser/resetPwd.vue
  3. 2
      fe/PC/src/views/systemManage/userManage.vue

8
fe/PC/src/api/wms-auth.js

@ -87,8 +87,8 @@ export function getPageList(data) {
//重置密码功能 | 用户信息维护 //重置密码功能 | 用户信息维护
export function putpassword(id) { export function putpassword(id) {
return request({ return request({
url: baseURL + '/account/reset-password/' + id, url: baseURL + '/identity/users/reset-password/' + id,
method: 'put' method: 'post'
}) })
} }
@ -194,9 +194,9 @@ export function putLoginUserInfo(data) {
}) })
} }
//修改登录用户的密码-强密码规则 //修改登录用户的密码-强密码规则
export function postLoginUserInfo(data) { export function postLoginUserInfo(data, id) {
return request({ return request({
url: baseURL + '/identity/my-profile/change-password', url: baseURL + '/identity/users/change-password/' + id,
method: 'post', method: 'post',
data data
}) })

3
fe/PC/src/views/profileuser/resetPwd.vue

@ -41,7 +41,6 @@ export default {
} }
}; };
return { return {
test: "1test",
user: { user: {
oldPassword: undefined, oldPassword: undefined,
newPassword: undefined, newPassword: undefined,
@ -75,7 +74,7 @@ export default {
postLoginUserInfo({ postLoginUserInfo({
currentPassword: this.user.oldPassword, currentPassword: this.user.oldPassword,
newPassword: this.user.newPassword, newPassword: this.user.newPassword,
}) }, this.$store.getters.name.id)
.then((response) => { .then((response) => {
this.$notify({ this.$notify({
title: "成功", title: "成功",

2
fe/PC/src/views/systemManage/userManage.vue

@ -695,7 +695,7 @@ export default {
putpassword(row.id).then((response) => { putpassword(row.id).then((response) => {
this.$notify({ this.$notify({
title: "成功", title: "成功",
message: "重置成功, 密码是: 123456", message: "重置成功, 密码是: 000000",
type: "success", type: "success",
duration: 2000, duration: 2000,
}); });

Loading…
Cancel
Save