|
@@ -158,7 +158,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
textFileList: [],
|
|
|
videoFileList: [],
|
|
|
pictureUrl: [],
|
|
|
- pictureUrlMax:[],
|
|
|
+ pictureUrlMin:[],
|
|
|
tags:[]
|
|
|
};
|
|
|
},
|
|
@@ -189,7 +189,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
publishPages:thisData.publishPages.length?thisData.publishPages:['app_achievement_list','web_achievement_list'],
|
|
|
auditStatus:thisData.auditStatus,
|
|
|
pictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
- pictureUrlMax: thisData.pictureUrlMax ? splitUrl(thisData.pictureUrlMax, ',', globalConfig.avatarHost + '/upload') : []
|
|
|
+ pictureUrlMin: thisData.pictureUrlMin ? splitUrl(thisData.pictureUrlMin, ',', globalConfig.avatarHost + '/upload') : []
|
|
|
|
|
|
});
|
|
|
}.bind(this),
|
|
@@ -219,15 +219,15 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
});
|
|
|
thePictureUrl = picArr.join(",");
|
|
|
};
|
|
|
- let thePictureUrlMax = [];
|
|
|
+ let thepictureUrlMin = [];
|
|
|
if (this.state.pictureUrl.length) {
|
|
|
let picArr = [];
|
|
|
- this.state.pictureUrlMax.map(function (item) {
|
|
|
+ this.state.pictureUrlMin.map(function (item) {
|
|
|
if ( item.response && item.response.data && item.response.data.length ){
|
|
|
picArr.push(item.response.data);
|
|
|
}
|
|
|
});
|
|
|
- thePictureUrlMax = picArr.join(",");
|
|
|
+ thepictureUrlMin = picArr.join(",");
|
|
|
};
|
|
|
if(!this.state.tags.length){
|
|
|
message.warning('请填写关键词.')
|
|
@@ -250,7 +250,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
dataCategory: values.dataCategory,
|
|
|
category: values.category,
|
|
|
technicalPictureUrl: thePictureUrl,
|
|
|
- pictureUrlMax: thePictureUrlMax,
|
|
|
+ pictureUrlMin: thepictureUrlMin,
|
|
|
introduction:values.introduction,
|
|
|
keyword: this.state.tags ? this.state.tags.join(",") : [],
|
|
|
keywords: this.state.tags,
|
|
@@ -327,7 +327,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
} else {
|
|
|
this.state.data = {};
|
|
|
this.state.pictureUrl = [];
|
|
|
- this.state.pictureUrlMax=[];
|
|
|
+ this.state.pictureUrlMin=[];
|
|
|
this.state.tags = [];
|
|
|
this.setState({
|
|
|
publishPages:['app_achievement_list','web_achievement_list']
|
|
@@ -471,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}
|
|
@@ -480,10 +480,10 @@ 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={(e)=>{this.setState({pictureUrlMax:e})}}
|
|
|
- pictureUrl={this.state.pictureUrlMax}
|
|
|
+ fileList={(e)=>{this.setState({pictureUrlMin:e})}}
|
|
|
+ pictureUrl={this.state.pictureUrlMin}
|
|
|
visible={this.props.visible}
|
|
|
/>
|
|
|
</FormItem>
|