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

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

parent e6952f65
Pipeline #66488 passed with stages
...@@ -351,17 +351,14 @@ const AddModal = props => { ...@@ -351,17 +351,14 @@ const AddModal = props => {
} }
}); });
}); });
console.log(obj);
obj.businessGroup = obj.businessGroup.toString(); obj.businessGroup = obj.businessGroup.toString();
let list = []; let list = [];
let groupNameSever = ''; let groupNameSever = '';
if (obj.gisLayer && obj.gisLayer.indexOf('&') !== -1) { if (obj.gisLayer && obj.gisLayer.indexOf('&') !== -1) {
list = obj.gisLayer.split('&'); list = obj.gisLayer.split('&');
console.log(list);
obj.gisLayer = list[1]; obj.gisLayer = list[1];
groupNameSever = list[0]; groupNameSever = list[0];
} }
console.log(groupNameSever);
if (type == 'add') { if (type == 'add') {
CM_Feedback_OperatePatrolFeedback({ CM_Feedback_OperatePatrolFeedback({
...obj, ...obj,
......
...@@ -115,7 +115,7 @@ const EditUserModal = props => { ...@@ -115,7 +115,7 @@ const EditUserModal = props => {
(phone === '' || isPhone.test(phone)) && (phone === '' || isPhone.test(phone)) &&
(email === '' || isEmail.test(email)) (email === '' || isEmail.test(email))
) { ) {
editUser(currentUser.userID, loginName, userName, phone, email) editUser(currentUser.userId, loginName, userName, phone, email)
.then(res => { .then(res => {
if (res.msg === '') { if (res.msg === '') {
onCancel(); onCancel();
...@@ -171,7 +171,7 @@ const EditUserModal = props => { ...@@ -171,7 +171,7 @@ const EditUserModal = props => {
newPassword === passwordConfirm newPassword === passwordConfirm
) { ) {
updateUserPassword({ updateUserPassword({
UserId: +currentUser.userID, UserId: +currentUser.userId,
OldPassWord: oldPassword, OldPassWord: oldPassword,
NewPassWord: sha1(newPassword).toUpperCase(), 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