|
@@ -7,6 +7,7 @@ import { maturityList, innovationList, transferModeList } from '../../dataDic';
|
|
|
import { IndustryObject, getIndustryCategory } from '../../DicIndustryList.js';
|
|
|
import { beforeUploadFile, splitUrl, companySearch, getTransferMode, getAchievementCategory, getTechAuditStatus, getDemandType, getMaturity, getInnovation,beforeUpload, getBase64,getboutique } from '../../tools.js';
|
|
|
import throttle from '../../throttle.js';
|
|
|
+import ImgList from "../../common/imgList";
|
|
|
|
|
|
const KeyWordTagGroup = React.createClass({
|
|
|
getInitialState() {
|
|
@@ -114,18 +115,19 @@ const PicturesWall = React.createClass({
|
|
|
);
|
|
|
return (
|
|
|
<div className="clearfix">
|
|
|
- <Upload
|
|
|
- action={globalConfig.context + "/api/admin/achievement/uploadPicture"}
|
|
|
- data={{ 'sign': this.props.pictureSign }}
|
|
|
- listType="picture-card"
|
|
|
+ <ImgList
|
|
|
+ domId={this.props.domId}
|
|
|
+ uploadConfig={{
|
|
|
+ action:globalConfig.context + "/api/admin/achievement/uploadPicture",
|
|
|
+ data:{ 'sign': this.props.pictureSign },
|
|
|
+ multiple:true,
|
|
|
+ listType:"picture-card",
|
|
|
+ }}
|
|
|
+ onChange={(infor)=>{
|
|
|
+ this.handleChange(infor)
|
|
|
+ }}
|
|
|
fileList={fileList}
|
|
|
- onPreview={this.handlePreview}
|
|
|
- onChange={this.handleChange} >
|
|
|
- {fileList.length >= 5 ? null : uploadButton}
|
|
|
- </Upload>
|
|
|
- <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
|
|
|
- <img alt="example" style={{ width: '100%' }} src={previewImage} />
|
|
|
- </Modal>
|
|
|
+ />
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
@@ -1133,6 +1135,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
style={{display:'block'}}
|
|
|
>
|
|
|
<PicturesWall
|
|
|
+ domId={'techAchievementQueryDesc1'}
|
|
|
pictureSign="achievement_cover_picture"
|
|
|
fileList={this.getcoverImg}
|
|
|
pictureUrl={this.state.coverImg} />
|
|
@@ -1230,6 +1233,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="技术图片" >
|
|
|
<PicturesWall
|
|
|
+ domId={'techAchievementQueryDesc2'}
|
|
|
pictureSign="achievement_technical_picture"
|
|
|
fileList={this.getTechnicalPictureUrl}
|
|
|
pictureUrl={this.state.technicalPictureUrl} />
|
|
@@ -1283,6 +1287,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="成熟度证明材料(图片)" >
|
|
|
<PicturesWall
|
|
|
+ domId={'techAchievementQueryDesc3'}
|
|
|
pictureSign="achievement_maturity_picture"
|
|
|
fileList={this.getMaturityPictureUrl}
|
|
|
pictureUrl={this.state.maturityPictureUrl} />
|