解决公司无法回显

This commit is contained in:
red-deng-deng 2021-11-22 14:04:51 +08:00
parent f9a0a2e364
commit a2d63b4871
1 changed files with 2 additions and 2 deletions

View File

@ -55,6 +55,7 @@ export default class adduserinfo extends React.Component{
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},
} }
console.log(58,data);
let img={} let img={}
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});
@ -129,7 +130,7 @@ export default class adduserinfo extends React.Component{
//选择图片 //选择图片
onUploadChange(files){ onUploadChange(files){
this.setState({uploadimgFile:files}); this.setState({uploadimgFile:files});
console.log(files);
}; };
//点击上传头像按钮 //点击上传头像按钮
upImgBtn(){ upImgBtn(){
@ -265,7 +266,6 @@ export default class adduserinfo extends React.Component{
}); });
} }
render(){ render(){
console.log(this.state.roleList);
//校验规则 //校验规则
const rules = { const rules = {
account: [ account: [