Commit dd1ddd43 authored by xinglei's avatar xinglei

修改bug

parent 15eda878
...@@ -5,7 +5,7 @@ import { Select, Form, Button } from 'amos-framework'; ...@@ -5,7 +5,7 @@ import { Select, Form, Button } from 'amos-framework';
import * as endConf from 'amos-processor/lib/config/endconf'; import * as endConf from 'amos-processor/lib/config/endconf';
import { setRegion } from './../../utils/cacheUtils'; import { setRegion } from './../../utils/cacheUtils';
import { tellRegionSelectAction } from './../../services/navApi'; import { tellRegionSelectAction } from './../../services/navApi';
import { getCurrentUser,getDictionaryList } from './../../services/securityService'; import { getCurrentUser, getDictionaryList } from './../../services/securityService';
import { fetchRegionSelectAction } from './../../services/checkInfoService'; import { fetchRegionSelectAction } from './../../services/checkInfoService';
import { tirggerTransTopic } from './../3dview/dataProcessor'; import { tirggerTransTopic } from './../3dview/dataProcessor';
import { regionSelectAction } from './../../services/bizService'; import { regionSelectAction } from './../../services/bizService';
...@@ -33,7 +33,7 @@ class RegionSelect extends Component { ...@@ -33,7 +33,7 @@ class RegionSelect extends Component {
this.state = { this.state = {
userInfo: {}, userInfo: {},
reginParams: {}, reginParams: {},
dictionaryList:[] dictionaryList: []
}; };
} }
...@@ -47,18 +47,19 @@ class RegionSelect extends Component { ...@@ -47,18 +47,19 @@ class RegionSelect extends Component {
* 查询组织机构字典 * 查询组织机构字典
*/ */
getDicCode = (dicCode) => { getDicCode = (dicCode) => {
getDictionaryList(dicCode).then(data =>{ getDictionaryList(dicCode).then(data => {
this.setState({ this.setState({
dictionaryList:data dictionaryList: data
}) });
}) lsTool.write('dictionaryList', JSON.stringify(data));
});
} }
onClick = () => { onClick = () => {
const { reginParams,dictionaryList } = this.state; const { reginParams } = this.state;
//获取当前登陆部门 //获取当前登陆部门
lsTool.write('dictionaryList', JSON.stringify(dictionaryList)); //lsTool.write('dictionaryList', JSON.stringify(dictionaryList));
lsTool.write("department", JSON.stringify(reginParams.department)) lsTool.write("department", JSON.stringify(reginParams.department));
lsTool.remove('selectedRole'); lsTool.remove('selectedRole');
regionSelectAction(reginParams).then( regionSelectAction(reginParams).then(
data => { data => {
...@@ -118,7 +119,7 @@ class RegionSelect extends Component { ...@@ -118,7 +119,7 @@ class RegionSelect extends Component {
roles = orgRoles[value]; roles = orgRoles[value];
} }
if (key === 'department') { if (key === 'department') {
reginParams.department = departments.find(item => item &&item.sequenceNbr === value); reginParams.department = departments.find(item => item && item.sequenceNbr === value);
roles = orgRoles[value]; roles = orgRoles[value];
} }
if (key === 'role') { if (key === 'role') {
......
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