From ec60699406a9f947df89f7e1745b2d9e335ac7c4 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Sat, 2 Nov 2019 18:31:11 +0800 Subject: [PATCH] bug --- .../user/modal/ApplyForAddChildOrgModal.js | 4 ++-- .../user/modal/RealNameCertificationModal.js | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/user/modal/ApplyForAddChildOrgModal.js b/public/react/src/modules/user/modal/ApplyForAddChildOrgModal.js index db32beed3..49c20ca81 100644 --- a/public/react/src/modules/user/modal/ApplyForAddChildOrgModal.js +++ b/public/react/src/modules/user/modal/ApplyForAddChildOrgModal.js @@ -76,7 +76,7 @@ class ApplyForAddChildOrgModal extends Component{ {...this.props } onOk={this.onOk} okText="保存" - className="applyForModal courseNormalForm" + className="applyForModal courseNormalForm styleForapply" > diff --git a/public/react/src/modules/user/modal/RealNameCertificationModal.js b/public/react/src/modules/user/modal/RealNameCertificationModal.js index b3bbdf319..4ab78bd5e 100644 --- a/public/react/src/modules/user/modal/RealNameCertificationModal.js +++ b/public/react/src/modules/user/modal/RealNameCertificationModal.js @@ -263,6 +263,7 @@ class RealNameCertificationModal extends Component{ onSendOk = () => { this.props.form.validateFieldsAndScroll((err, values) => { console.log(values); + console.log(this.state.department_id); if(!err){ let{imageUrl2}=this.state; let{current_user,basicInfo}=this.props; @@ -424,6 +425,26 @@ class RealNameCertificationModal extends Component{ }) } } + // 选择部门、学院 + changeDepartment=(e)=>{ + let arr = this.state.departments && this.state.departments.filter ? this.state.departments.filter(function(item){ + return item.name == e; + }) : []; + if (!arr[0]) { + this.setState({ + department_id: '', + departmentsName: e, + filterDepartments: [], + }) + this.this_department_id = '' + return; + } + this.this_department_id = arr[0].id + this.setState({ + departmentsName:e, + department_id: arr[0].id, + }) + } render(){ const { course_lists, checkBoxValues, searchValue, loading, imageUrl, imageUrl2, @@ -451,6 +472,7 @@ class RealNameCertificationModal extends Component{ changeJob:this.changeJob, filterList:this.filterList, changeList:this.changeList, + changeDepartment:this.changeDepartment, showApplyForAddOrgModal:this.showApplyForAddOrgModal, showApplyForAddChildOrgModal:this.showApplyForAddChildOrgModal }