|
@@ -158,6 +158,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
textFileList: [],
|
|
|
videoFileList: [],
|
|
|
pictureUrl: [],
|
|
|
+ pictureUrlMax:[],
|
|
|
tags:[]
|
|
|
};
|
|
|
},
|
|
@@ -187,8 +188,10 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
data: thisData,
|
|
|
publishPages:thisData.publishPages.length?thisData.publishPages:['app_achievement_list','web_achievement_list'],
|
|
|
auditStatus:thisData.auditStatus,
|
|
|
- pictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : []
|
|
|
- });
|
|
|
+ pictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
+ pictureUrlMax: thisData.pictureUrlMax ? splitUrl(thisData.pictureUrlMax, ',', globalConfig.avatarHost + '/upload') : []
|
|
|
+
|
|
|
+ });
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.setState({
|
|
@@ -216,6 +219,16 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
});
|
|
|
thePictureUrl = picArr.join(",");
|
|
|
};
|
|
|
+ let thePictureUrlMax = [];
|
|
|
+ if (this.state.pictureUrl.length) {
|
|
|
+ let picArr = [];
|
|
|
+ this.state.pictureUrlMax.map(function (item) {
|
|
|
+ if ( item.response && item.response.data && item.response.data.length ){
|
|
|
+ picArr.push(item.response.data);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ thePictureUrlMax = picArr.join(",");
|
|
|
+ };
|
|
|
if(!this.state.tags.length){
|
|
|
message.warning('请填写关键词.')
|
|
|
return false;
|
|
@@ -236,7 +249,8 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
fieldB: values.industryCategory ? values.industryCategory[1] : undefined,
|
|
|
dataCategory: values.dataCategory,
|
|
|
category: values.category,
|
|
|
- technicalPictureUrl: thePictureUrl,
|
|
|
+ technicalPictureUrl: thePictureUrl,
|
|
|
+ pictureUrlMax: thePictureUrlMax,
|
|
|
introduction:values.introduction,
|
|
|
keyword: this.state.tags ? this.state.tags.join(",") : [],
|
|
|
keywords: this.state.tags,
|
|
@@ -313,6 +327,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
} else {
|
|
|
this.state.data = {};
|
|
|
this.state.pictureUrl = [];
|
|
|
+ this.state.pictureUrlMax=[];
|
|
|
this.state.tags = [];
|
|
|
this.setState({
|
|
|
publishPages:['app_achievement_list','web_achievement_list']
|
|
@@ -456,7 +471,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label="成果文件(图片)">
|
|
|
+ <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label="成果(小图)">
|
|
|
<PicturesWall
|
|
|
fileList={this.getPictureUrl}
|
|
|
pictureUrl={this.state.pictureUrl}
|
|
@@ -465,6 +480,15 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
+ <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label="成果(大图)">
|
|
|
+ <PicturesWall
|
|
|
+ fileList={(e)=>{this.setState({pictureUrlMax:e})}}
|
|
|
+ pictureUrl={this.state.pictureUrlMax}
|
|
|
+ visible={this.props.visible}
|
|
|
+ />
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
<FormItem className="half-item" {...formItemLayout} label="精品成果">
|
|
|
{getFieldDecorator('boutique', {
|
|
|
initialValue: theData.boutique
|