|
@@ -139,6 +139,7 @@ const PersonFrom = Form.create()(React.createClass({
|
|
|
unitNumber: data.data.info.unitSize,
|
|
|
unitIntro: data.data.info.companyIntroduction,
|
|
|
unitFrom: data.data.info.homeUnit,
|
|
|
+ publicityPictureUrl: data.data.info.publicityPictureUrl,
|
|
|
companyLifePicList: theArr,
|
|
|
qiyezizhi: data.data.pro.qualification,
|
|
|
turnover: data.data.pro.turnover,
|
|
@@ -189,12 +190,14 @@ const PersonFrom = Form.create()(React.createClass({
|
|
|
let cmbC = document.getElementById('cmbCity').value;
|
|
|
let cmbA = document.getElementById('cmbArea').value;
|
|
|
//
|
|
|
- let leftPicArr = [];
|
|
|
- this.state.companyLifePicObj.map(function (item) {
|
|
|
- leftPicArr.push(item.response.data);
|
|
|
- });
|
|
|
- let lifePhotoUrl = leftPicArr.join(",");
|
|
|
-
|
|
|
+ let lifePhotoUrl = this.state.publicityPictureUrl;
|
|
|
+ if (this.state.companyLifePicObj.length) {
|
|
|
+ let leftPicArr = [];
|
|
|
+ this.state.companyLifePicObj.map(function (item) {
|
|
|
+ leftPicArr.push(item.response.data);
|
|
|
+ });
|
|
|
+ lifePhotoUrl = leftPicArr.join(",");
|
|
|
+ };
|
|
|
if (!err) {
|
|
|
this.props.spinState(true);
|
|
|
|
|
@@ -218,14 +221,14 @@ const PersonFrom = Form.create()(React.createClass({
|
|
|
"pro.turnover": values.turnover,
|
|
|
"pro.collegeAttribute": values.schoolProp,
|
|
|
"pro.collegeEstablishTime": values.schoolTime,
|
|
|
- "pro.academician": this.state.aca,
|
|
|
- "pro.doctoralTutor": this.state.PhDTutor,
|
|
|
- "pro.masterTutor": this.state.MSTutor,
|
|
|
- "pro.otherExpert": this.state.otherExperts,
|
|
|
- "pro.nationalLab": this.state.StateKeyLab,
|
|
|
- "pro.educationLab": this.state.EduKeyLab,
|
|
|
- "pro.enterpriseCenter": this.state.ComCenter,
|
|
|
- "pro.otherCenter": this.state.otherCenter,
|
|
|
+ "pro.academician": values.aca,
|
|
|
+ "pro.doctoralTutor": values.PhDTutor,
|
|
|
+ "pro.masterTutor": values.MSTutor,
|
|
|
+ "pro.otherExpert": values.otherExperts,
|
|
|
+ "pro.nationalLab": values.StateKeyLab,
|
|
|
+ "pro.educationLab": values.EduKeyLab,
|
|
|
+ "pro.enterpriseCenter": values.ComCenter,
|
|
|
+ "pro.otherCenter": values.otherCenter,
|
|
|
"pro.institutionEstablishTime": values.resTime
|
|
|
}
|
|
|
}).done(function (data) {
|
|
@@ -413,22 +416,104 @@ const PersonFrom = Form.create()(React.createClass({
|
|
|
)}
|
|
|
<span>年</span>
|
|
|
</FormItem>
|
|
|
- <FormItem style={{ 'display': this.state.schoolDis }}
|
|
|
- labelCol={{ span: 3 }}
|
|
|
- wrapperCol={{ span: 21, offset: 3 }}
|
|
|
- label=""
|
|
|
- >
|
|
|
- <div className="school-props clearfix">
|
|
|
- <div><span>院士:</span><InputNumber value={this.state.aca} onChange={function (e) { this.setState({ aca: e }) }.bind(this)} />人</div>
|
|
|
- <div><span>博士生导师:</span><InputNumber value={this.state.PhDTutor} onChange={function (e) { this.setState({ PhDTutor: e }) }.bind(this)} />人</div>
|
|
|
- <div><span>硕士生导师:</span><InputNumber value={this.state.MSTutor} onChange={function (e) { this.setState({ MSTutor: e }) }.bind(this)} />人</div>
|
|
|
- <div><span>其他专家:</span><InputNumber value={this.state.otherExperts} onChange={function (e) { this.setState({ otherExperts: e }) }.bind(this)} />人</div>
|
|
|
- <div><span>国家级重点实验室:</span><InputNumber value={this.state.StateKeyLab} onChange={function (e) { this.setState({ StateKeyLab: e }) }.bind(this)} />所</div>
|
|
|
- <div><span>教育部重点实验室:</span><InputNumber value={this.state.EduKeyLab} onChange={function (e) { this.setState({ EduKeyLab: e }) }.bind(this)} />所</div>
|
|
|
- <div><span>企业共建研究中心:</span><InputNumber value={this.state.ComCenter} onChange={function (e) { this.setState({ ComCenter: e }) }.bind(this)} />所</div>
|
|
|
- <div><span>其他研究中心:</span><InputNumber value={this.state.otherCenter} onChange={function (e) { this.setState({ otherCenter: e }) }.bind(this)} />所</div>
|
|
|
- </div>
|
|
|
- </FormItem>
|
|
|
+ <div className="school-props clearfix" style={{ 'display': this.state.schoolDis }}>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 10 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
+ label="院士"
|
|
|
+ >
|
|
|
+ {getFieldDecorator('aca', {
|
|
|
+ initialValue: this.state.aca
|
|
|
+ })(
|
|
|
+ <InputNumber />
|
|
|
+ )}
|
|
|
+ <span>人</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 10 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
+ label="博士生导师"
|
|
|
+ >
|
|
|
+ {getFieldDecorator('PhDTutor', {
|
|
|
+ initialValue: this.state.PhDTutor
|
|
|
+ })(
|
|
|
+ <InputNumber />
|
|
|
+ )}
|
|
|
+ <span>人</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 10 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
+ label="硕士生导师"
|
|
|
+ >
|
|
|
+ {getFieldDecorator('MSTutor', {
|
|
|
+ initialValue: this.state.MSTutor
|
|
|
+ })(
|
|
|
+ <InputNumber />
|
|
|
+ )}
|
|
|
+ <span>人</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 10 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
+ label="其他专家"
|
|
|
+ >
|
|
|
+ {getFieldDecorator('otherExperts', {
|
|
|
+ initialValue: this.state.otherExperts
|
|
|
+ })(
|
|
|
+ <InputNumber />
|
|
|
+ )}
|
|
|
+ <span>人</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 10 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
+ label="国家级重点实验室"
|
|
|
+ >
|
|
|
+ {getFieldDecorator('StateKeyLab', {
|
|
|
+ initialValue: this.state.StateKeyLab
|
|
|
+ })(
|
|
|
+ <InputNumber />
|
|
|
+ )}
|
|
|
+ <span>所</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 10 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
+ label="教育部重点实验室"
|
|
|
+ >
|
|
|
+ {getFieldDecorator('EduKeyLab', {
|
|
|
+ initialValue: this.state.EduKeyLab
|
|
|
+ })(
|
|
|
+ <InputNumber />
|
|
|
+ )}
|
|
|
+ <span>所</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 10 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
+ label="企业共建研究中心"
|
|
|
+ >
|
|
|
+ {getFieldDecorator('ComCenter', {
|
|
|
+ initialValue: this.state.ComCenter
|
|
|
+ })(
|
|
|
+ <InputNumber />
|
|
|
+ )}
|
|
|
+ <span>所</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 10 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
+ label="其他研究中心"
|
|
|
+ >
|
|
|
+ {getFieldDecorator('otherCenter', {
|
|
|
+ initialValue: this.state.otherCenter
|
|
|
+ })(
|
|
|
+ <InputNumber />
|
|
|
+ )}
|
|
|
+ <span>所</span>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
<FormItem style={{ 'display': this.state.resDis }}
|
|
|
{...formItemLayout}
|
|
|
label="创办时间"
|