|
@@ -23,12 +23,12 @@ const CenterListDescFrom = Form.create()(React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/user/cognizance/disposeCenterDetail",
|
|
|
data: {
|
|
|
- id: this.props.data.id,
|
|
|
+ cid: this.props.cid,
|
|
|
projectName: values.projectName,
|
|
|
- projectTimeFormattedDate: values.projectTimeFormattedDate.format("YYYY-MM-DD"),
|
|
|
+ projectTimeFormattedDate: values.projectTimeFormattedDate ? values.projectTimeFormattedDate.format("YYYY-MM-DD") : null,
|
|
|
institution: values.institution,
|
|
|
- termStartTimeFormattedDate: values.termTimeFormattedDate[0].format("YYYY-MM-DD"),
|
|
|
- termEndTimeFormattedDate: values.termTimeFormattedDate[1].format("YYYY-MM-DD"),
|
|
|
+ termStartTimeFormattedDate: values.termTimeFormattedDate ? values.termTimeFormattedDate[0].format("YYYY-MM-DD") : null,
|
|
|
+ termEndTimeFormattedDate: values.termTimeFormattedDate ? values.termTimeFormattedDate[1].format("YYYY-MM-DD") : null,
|
|
|
protocolUrl: this.state.protocolUrl
|
|
|
}
|
|
|
}).done(function (data) {
|
|
@@ -57,8 +57,8 @@ const CenterListDescFrom = Form.create()(React.createClass({
|
|
|
const { RangePicker } = DatePicker;
|
|
|
const theData = this.props.data;
|
|
|
const formItemLayout = {
|
|
|
- labelCol: { span: 4 },
|
|
|
- wrapperCol: { span: 12 },
|
|
|
+ labelCol: { span: 6 },
|
|
|
+ wrapperCol: { span: 14 },
|
|
|
};
|
|
|
const _me = this;
|
|
|
return (
|
|
@@ -185,12 +185,12 @@ const CenterListDesc = React.createClass({
|
|
|
<Spin spinning={this.state.loading} className='spin-box'>
|
|
|
<Modal maskClosable={false} title="产学研情况详情" visible={this.state.visible}
|
|
|
onOk={this.handleOk} onCancel={this.handleCancel}
|
|
|
- width='800px'
|
|
|
- footer=''
|
|
|
- >
|
|
|
+ width='840px'
|
|
|
+ footer='' >
|
|
|
<CenterListDescFrom
|
|
|
visible={this.state.visible}
|
|
|
data={this.props.data}
|
|
|
+ cid={this.props.cid}
|
|
|
spinState={this.spinChange}
|
|
|
closeModal={this.handleCancel}
|
|
|
clickOk={this.handleOk} />
|
|
@@ -198,7 +198,7 @@ const CenterListDesc = React.createClass({
|
|
|
</Spin>
|
|
|
</div>
|
|
|
);
|
|
|
- },
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
const CenterList = React.createClass({
|
|
@@ -488,8 +488,7 @@ const CenterList = React.createClass({
|
|
|
message.error(`${info.file.name} 文件上传失败。`);
|
|
|
};
|
|
|
this.setState({ fileList_institution: info.fileList.slice(-1) });
|
|
|
- }}
|
|
|
- >
|
|
|
+ }} >
|
|
|
<Button disabled={this.state.ButtonDisabled}><Icon type="upload" /> 上传研发部门制度 </Button>
|
|
|
</Upload>
|
|
|
<p style={{ marginTop: '10px' }}>{this.state.systemUrl ? <a onClick={newDownloadFile.bind(null, this.state.cid, 'institution', '/api/user/cognizance/downloadInstitution')}>{this.state.systemDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
@@ -518,8 +517,11 @@ const CenterList = React.createClass({
|
|
|
onRowClick={this.tableRowClick} />
|
|
|
</Spin>
|
|
|
</div>
|
|
|
- <CenterListDesc data={this.state.RowData}
|
|
|
- showDesc={this.state.showDesc} closeDesc={this.closeDesc} />
|
|
|
+ <CenterListDesc
|
|
|
+ cid={this.state.cid}
|
|
|
+ data={this.state.RowData}
|
|
|
+ showDesc={this.state.showDesc}
|
|
|
+ closeDesc={this.closeDesc} />
|
|
|
</div >
|
|
|
);
|
|
|
}
|