diff --git a/src/pages/system/account/add/adduserinfo/adduserinfo.js b/src/pages/system/account/add/adduserinfo/adduserinfo.js index e7ac1249..c30134ed 100644 --- a/src/pages/system/account/add/adduserinfo/adduserinfo.js +++ b/src/pages/system/account/add/adduserinfo/adduserinfo.js @@ -52,12 +52,13 @@ export default class adduserinfo extends React.Component{ mobile:acceptData.mobile, password:'yxxt2021', 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}, post:{key:acceptData.job.id,text:acceptData.job.job_name}, station:{key:acceptData.role.id,text:acceptData.role.role_name}, } let img={} + console.log(61,data); img.src=acceptData.head; this.setState({model:data,disabled:true,defaultFileList:[img],id:acceptData.id,headImg:acceptData.head}); //若有公司id,静默获取部门 diff --git a/src/pages/system/role/add/add.js b/src/pages/system/role/add/add.js index c7e1c748..b89c41ff 100644 --- a/src/pages/system/role/add/add.js +++ b/src/pages/system/role/add/add.js @@ -138,8 +138,8 @@ export default class addrole extends React.Component{ - 管理员 - 普通账号 + 所有数据 + 该账号数据