|
@@ -18,8 +18,8 @@ const IntellectualDescFrom = Form.create()(React.createClass({
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
url: globalConfig.context + "/api/user/cognizance/intellectualDetail",
|
|
url: globalConfig.context + "/api/user/cognizance/intellectualDetail",
|
|
data: {
|
|
data: {
|
|
- id: id != undefined ? id : this.props.data.id,
|
|
|
|
- type: type != undefined ? type : this.props.data.type
|
|
|
|
|
|
+ id: id ? id : this.props.data.id,
|
|
|
|
+ type: type ? type : this.props.data.type
|
|
}
|
|
}
|
|
}).done((data) => {
|
|
}).done((data) => {
|
|
if (!data.data) {
|
|
if (!data.data) {
|
|
@@ -232,7 +232,7 @@ const IntellectualDescFrom = Form.create()(React.createClass({
|
|
<Button><Icon type="upload" /> 上传知识产权证书 </Button>
|
|
<Button><Icon type="upload" /> 上传知识产权证书 </Button>
|
|
</Upload>
|
|
</Upload>
|
|
<p style={{ margin: '10px 0' }}>{theData.propertyRightUrl ? <a onClick={newDownloadFile.bind(null, theData.id, 'property_right', '/api/user/cognizance/downloadPropertyRight', 'downloadPropertyRight')}>{theData.propertyRightDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传知识产权证书!</span>}</p>
|
|
<p style={{ margin: '10px 0' }}>{theData.propertyRightUrl ? <a onClick={newDownloadFile.bind(null, theData.id, 'property_right', '/api/user/cognizance/downloadPropertyRight', 'downloadPropertyRight')}>{theData.propertyRightDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传知识产权证书!</span>}</p>
|
|
- {theData.type != 0 ? <p style={{ margin: '10px 0' }}>
|
|
|
|
|
|
+ {(theData.type && theData.type != 0) ? <p style={{ margin: '10px 0' }}>
|
|
{theData.manuscript ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'manuscript', '/api/user/cognizance/downloadManuscript', this.props.data.type)}>稿件下载</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传稿件!</span>}
|
|
{theData.manuscript ? <a onClick={newDownloadFile.bind(null, this.props.data.id, 'manuscript', '/api/user/cognizance/downloadManuscript', this.props.data.type)}>稿件下载</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传稿件!</span>}
|
|
</p> : <span></span>}
|
|
</p> : <span></span>}
|
|
</div>
|
|
</div>
|