Commit 38909db3 by zhujian

fix:ghjdlkhlk

parents ff7e13bf 8289ae1e
...@@ -28,6 +28,7 @@ function SearchUser(props) { ...@@ -28,6 +28,7 @@ function SearchUser(props) {
} }
function selectDep(e,item){ function selectDep(e,item){
if(e.target.checked){ if(e.target.checked){
console.log('item',item);
props.onSelect(item,'department'); props.onSelect(item,'department');
} }
} }
......
...@@ -250,7 +250,10 @@ class NewChooseMembersModal extends React.Component { ...@@ -250,7 +250,10 @@ class NewChooseMembersModal extends React.Component {
if(record.departmentUserVOList){ if(record.departmentUserVOList){
_list = record.departmentUserVOList; _list = record.departmentUserVOList;
} }
this.setState({selectUserList:[...selectUserList,_list]}); console.log('_list',_list);
this.setState({selectUserList:[...selectUserList,..._list]},()=>{
console.log('selectUserList',this.state.selectUserList);
});
} }
// }else{ // }else{
// const params = { // const params = {
......
...@@ -144,6 +144,7 @@ export default class CollegeManagePage extends React.Component { ...@@ -144,6 +144,7 @@ export default class CollegeManagePage extends React.Component {
this.getStoreList(); this.getStoreList();
this.getEnterpriseUser(); this.getEnterpriseUser();
this.getVersion() this.getVersion()
} }
initWechatConfig() { initWechatConfig() {
...@@ -191,7 +192,8 @@ export default class CollegeManagePage extends React.Component { ...@@ -191,7 +192,8 @@ export default class CollegeManagePage extends React.Component {
User.setStoreId(mainStore.id); User.setStoreId(mainStore.id);
User.setStoreUserId(mainStore.storeUserId); User.setStoreUserId(mainStore.storeUserId);
} }
const createStoreList = list.filter((item) => { this.initWechatConfig();
const createStoreList = list.filter((item)=>{
return item.userRole === 'StoreManager' return item.userRole === 'StoreManager'
}) })
const joinStoreList = list.filter((item) => { const joinStoreList = list.filter((item) => {
......
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