From 85a127ede8b883be41a66b3f18775c13f17dbb82 Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Sat, 27 Nov 2021 22:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=85=AC=E5=8F=B8id=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E6=97=A0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/system/account/add/adduserinfo/adduserinfo.js | 3 ++- src/pages/system/role/add/add.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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{ - 管理员 - 普通账号 + 所有数据 + 该账号数据