Merge branch 'master' of codeup.aliyun.com:5f9118049cffa29cfdd3be1c/marketing/frontend
This commit is contained in:
commit
ca060f9f77
|
@ -52,12 +52,13 @@ export default class adduserinfo extends React.Component{
|
||||||
mobile:acceptData.mobile,
|
mobile:acceptData.mobile,
|
||||||
password:'yxxt2021',
|
password:'yxxt2021',
|
||||||
real_name:acceptData.real_name,
|
real_name:acceptData.real_name,
|
||||||
company:_.find(companys, function(o) { return o.key==acceptData.company_id }),
|
company:companys.find(o=>o.key==acceptData.company_id),
|
||||||
deparment:{key:acceptData.department.id,text:acceptData.department.department_name},
|
deparment:{key:acceptData.department.id,text:acceptData.department.department_name},
|
||||||
post:{key:acceptData.job.id,text:acceptData.job.job_name},
|
post:{key:acceptData.job.id,text:acceptData.job.job_name},
|
||||||
station:{key:acceptData.role.id,text:acceptData.role.role_name},
|
station:{key:acceptData.role.id,text:acceptData.role.role_name},
|
||||||
}
|
}
|
||||||
let img={}
|
let img={}
|
||||||
|
console.log(61,data);
|
||||||
img.src=acceptData.head;
|
img.src=acceptData.head;
|
||||||
this.setState({model:data,disabled:true,defaultFileList:[img],id:acceptData.id,headImg:acceptData.head});
|
this.setState({model:data,disabled:true,defaultFileList:[img],id:acceptData.id,headImg:acceptData.head});
|
||||||
//若有公司id,静默获取部门
|
//若有公司id,静默获取部门
|
||||||
|
|
|
@ -138,8 +138,8 @@ export default class addrole extends React.Component{
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem labelname="数据权限分组" >
|
<FormItem labelname="数据权限分组" >
|
||||||
<RadioGroup onChange={this.authchange} value={this.state.model.account_type}>
|
<RadioGroup onChange={this.authchange} value={this.state.model.account_type}>
|
||||||
<RadioButton value={1} >管理员</RadioButton>
|
<RadioButton value={1} >所有数据</RadioButton>
|
||||||
<RadioButton value={5} >普通账号</RadioButton>
|
<RadioButton value={5} >该账号数据</RadioButton>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem labelname="设置权限" prop="setrole" id="setrole">
|
<FormItem labelname="设置权限" prop="setrole" id="setrole">
|
||||||
|
|
Loading…
Reference in New Issue