Commit c35ae5d7 authored by 皮倩雯's avatar 皮倩雯

fix: '修复无法保存用户信息bug'

parent e6952f65
Pipeline #66488 passed with stages
......@@ -351,17 +351,14 @@ const AddModal = props => {
}
});
});
console.log(obj);
obj.businessGroup = obj.businessGroup.toString();
let list = [];
let groupNameSever = '';
if (obj.gisLayer && obj.gisLayer.indexOf('&') !== -1) {
list = obj.gisLayer.split('&');
console.log(list);
obj.gisLayer = list[1];
groupNameSever = list[0];
}
console.log(groupNameSever);
if (type == 'add') {
CM_Feedback_OperatePatrolFeedback({
...obj,
......
......@@ -115,7 +115,7 @@ const EditUserModal = props => {
(phone === '' || isPhone.test(phone)) &&
(email === '' || isEmail.test(email))
) {
editUser(currentUser.userID, loginName, userName, phone, email)
editUser(currentUser.userId, loginName, userName, phone, email)
.then(res => {
if (res.msg === '') {
onCancel();
......@@ -171,7 +171,7 @@ const EditUserModal = props => {
newPassword === passwordConfirm
) {
updateUserPassword({
UserId: +currentUser.userID,
UserId: +currentUser.userId,
OldPassWord: oldPassword,
NewPassWord: sha1(newPassword).toUpperCase(),
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment