|
@@ -114,6 +114,7 @@ const PicturesWall = React.createClass({
|
|
|
return (
|
|
|
<div className="clearfix">
|
|
|
<Upload
|
|
|
+ beforeUpload={beforeUploadFile}
|
|
|
action={globalConfig.context + "/api/user/achievement/uploadPicture"}
|
|
|
data={{ 'sign': this.props.pictureSign }}
|
|
|
listType="picture-card"
|
|
@@ -349,6 +350,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
label="技术图片" >
|
|
|
<div className="clearfix">
|
|
|
<Upload className="demandDetailShow-upload"
|
|
|
+ beforeUpload={beforeUploadFile}
|
|
|
listType="picture-card"
|
|
|
fileList={this.state.technicalPictureUrl}
|
|
|
onPreview={(file) => {
|
|
@@ -432,7 +434,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
label="成熟度证明材料(文本)" >
|
|
|
<p>{theData.maturityTextFileUrl ?
|
|
|
<span className="download-file">
|
|
|
- <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_maturity_text_file') }}>成熟度证明材料(文本文件)</a>
|
|
|
+ <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_maturity_text_file') }}>{theData.maturityTextFileDownloadFileName}</a>
|
|
|
</span>
|
|
|
: <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
</FormItem>
|
|
@@ -591,7 +593,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
label="技术方案" >
|
|
|
<p>{theData.techPlanUrl ?
|
|
|
<span className="download-file">
|
|
|
- <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_tech_plan') }}>技术方案</a>
|
|
|
+ <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_tech_plan') }}>{theData.techPlanDownloadFileName}</a>
|
|
|
</span>
|
|
|
: <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
</FormItem>
|
|
@@ -601,7 +603,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
label="商业计划书" >
|
|
|
<p>{theData.businessPlanUrl ?
|
|
|
<span className="download-file">
|
|
|
- <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_business_plan') }}>商业计划书</a>
|
|
|
+ <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_business_plan') }}>{theData.businessPlanDownloadFileName}</a>
|
|
|
</span>
|
|
|
: <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
</FormItem>
|
|
@@ -685,7 +687,9 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
if (this.state.technicalPictureUrl.length) {
|
|
|
let picArr = [];
|
|
|
this.state.technicalPictureUrl.map(function (item) {
|
|
|
- picArr.push(item.response.data);
|
|
|
+ if ( item.response && item.response.data && item.response.data.length ){
|
|
|
+ picArr.push(item.response.data);
|
|
|
+ }
|
|
|
});
|
|
|
theTechnicalPictureUrl = picArr.join(",");
|
|
|
};
|
|
@@ -693,7 +697,9 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
if (this.state.maturityPictureUrl.length) {
|
|
|
let picArr = [];
|
|
|
this.state.maturityPictureUrl.map(function (item) {
|
|
|
- picArr.push(item.response.data);
|
|
|
+ if ( item.response && item.response.data && item.response.data.length ){
|
|
|
+ picArr.push(item.response.data);
|
|
|
+ }
|
|
|
});
|
|
|
theMaturityPictureUrl = picArr.join(",");
|
|
|
};
|
|
@@ -1009,7 +1015,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
</Upload>
|
|
|
<p style={{ marginTop: '10px' }}>{theData.maturityTextFileUrl ?
|
|
|
<span className="download-file">
|
|
|
- <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_maturity_text_file') }}>成熟度证明材料(文本文件)</a>
|
|
|
+ <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_maturity_text_file') }}>{theData.maturityTextFileDownloadFileName}</a>
|
|
|
</span>
|
|
|
: <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
</FormItem>
|
|
@@ -1166,7 +1172,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
</Upload>
|
|
|
<p style={{ marginTop: '10px' }}>{theData.techPlanUrl ?
|
|
|
<span className="download-file">
|
|
|
- <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_tech_plan') }}>技术方案</a>
|
|
|
+ <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_tech_plan') }}>{theData.techPlanDownloadFileName}</a>
|
|
|
</span>
|
|
|
: <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
</FormItem>
|
|
@@ -1201,7 +1207,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
</Upload>
|
|
|
<p style={{ marginTop: '10px' }}>{theData.businessPlanUrl ?
|
|
|
<span className="download-file">
|
|
|
- <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_business_plan') }}>商业计划书</a>
|
|
|
+ <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_business_plan') }}>{theData.businessPlanDownloadFileName}</a>
|
|
|
</span>
|
|
|
: <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
</FormItem>
|