Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-convertor-view
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
station
amos-convertor-view
Commits
2d32b75f
Commit
2d32b75f
authored
Mar 20, 2020
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用回信息
parent
c0ef4137
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
UserSetting.js
src/view/3dview/datapane/setting/UserSetting.js
+13
-11
No files found.
src/view/3dview/datapane/setting/UserSetting.js
View file @
2d32b75f
...
...
@@ -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 } } );
//
});
}
/**
* 注销
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment