Commit 2d32b75f authored by tangwei's avatar tangwei

修改用回信息

parent c0ef4137
......@@ -8,7 +8,8 @@ import { SecurityUrl } from 'CONSTS/urlConsts';
import { tirggerTransTopic } from './../../dataProcessor';
import { getCurrentUser } from 'SERVICES/securityService';
import { getSelectedOrgInfoAction } from 'SERVICES/securityService';
import { Store } from 'amos-tool';
const lsTool = Store.lsTool;
/**
* 设置-账户设置
* @class UserSetting
......@@ -51,22 +52,23 @@ class UserSetting extends Component {
getSelectedOrgInfo =()=>{
debugger
getSelectedOrgInfoAction().then(data=>{
const { user } = this.state;
user.company = data.company;
user.department = data.department;
this.setState( { user } );
// const { user } = this.state;
// user.company = data.company;
// user.department = data.department;
this.setState( { user:data } );
});
}
onInit = function() {
//let userInfo = currentUsercurrentUser() || {};
// let userId = (userInfo || {}).userId;
getCurrentUser().then(data => {
let userName = data.realName;
let departmentInfo = {};
let companyInfo = {};
// getCurrentUser().then(data => {
// let userName = data.realName;
// let departmentInfo = {};
// let companyInfo = {};
this.setState( { user: { nickName: userName, company: companyInfo, department: departmentInfo } } );
});
// this.setState( { user: { nickName: userName, company: companyInfo, department: departmentInfo } } );
// });
}
/**
* 注销
......
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