Commit 2d32b75f authored by tangwei's avatar tangwei

修改用回信息

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