|
@@ -8,6 +8,7 @@ import { IndustryObject, getIndustryCategory } from '../../../DicIndustryList.js
|
|
|
import { getTechField } from '../../../DicTechFieldList.js';
|
|
|
import { beforeUploadFile, getTechAuditStatus, splitUrl, companySearch, getDemandType, getAchievementCategory,beforeUpload, getBase64 } from '../../../tools.js';
|
|
|
import throttle from '../../../throttle.js';
|
|
|
+import ImgList from "../../../common/imgList";
|
|
|
|
|
|
const KeyWordTagGroup = React.createClass({
|
|
|
getInitialState() {
|
|
@@ -120,9 +121,10 @@ const PicturesWall = React.createClass({
|
|
|
data={{ 'sign': this.props.pictureSign, 'uid': this.props.uid}}
|
|
|
listType="picture-card"
|
|
|
fileList={fileList}
|
|
|
+ multiple
|
|
|
onPreview={this.handlePreview}
|
|
|
onChange={this.handleChange} >
|
|
|
- {fileList.length >= 5 ? null : uploadButton}
|
|
|
+ {uploadButton}
|
|
|
</Upload>
|
|
|
<Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
|
|
|
<img alt="example" style={{ width: '100%' }} src={previewImage} />
|
|
@@ -388,16 +390,18 @@ const DemandDetailShow = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="首页展示图片:" >
|
|
|
<div className="clearfix">
|
|
|
- <Upload className="demandDetailShow-upload"
|
|
|
- listType="picture-card"
|
|
|
- fileList={this.state.coverImg}
|
|
|
- onPreview={(file) => {
|
|
|
- this.setState({
|
|
|
- previewImage: file.url || file.thumbUrl,
|
|
|
- previewVisible: true,
|
|
|
- });
|
|
|
- }} >
|
|
|
- </Upload>
|
|
|
+ {/*<Upload className="demandDetailShow-upload"*/}
|
|
|
+ {/* listType="picture-card"*/}
|
|
|
+ {/* fileList={this.state.coverImg}*/}
|
|
|
+ {/* onPreview={(file) => {*/}
|
|
|
+ {/* this.setState({*/}
|
|
|
+ {/* previewImage: file.url || file.thumbUrl,*/}
|
|
|
+ {/* previewVisible: true,*/}
|
|
|
+ {/* });*/}
|
|
|
+ {/* }} />*/}
|
|
|
+ <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
|
|
|
+ <ImgList fileList={this.state.coverImg} ItemWidth={'96px'}/>
|
|
|
+ </div>
|
|
|
<Modal maskClosable={false} footer={null}
|
|
|
visible={this.state.previewVisible}
|
|
|
onCancel={() => { this.setState({ previewVisible: false }) }}>
|
|
@@ -568,16 +572,18 @@ const DemandDetailShow = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="需求文件(图片)" >
|
|
|
<div className="clearfix">
|
|
|
- <Upload className="demandDetailShow-upload"
|
|
|
- listType="picture-card"
|
|
|
- fileList={this.state.pictureUrl}
|
|
|
- onPreview={(file) => {
|
|
|
- this.setState({
|
|
|
- previewImage: file.url || file.thumbUrl,
|
|
|
- previewVisible: true,
|
|
|
- });
|
|
|
- }} >
|
|
|
- </Upload>
|
|
|
+ {/*<Upload className="demandDetailShow-upload"*/}
|
|
|
+ {/* listType="picture-card"*/}
|
|
|
+ {/* fileList={this.state.pictureUrl}*/}
|
|
|
+ {/* onPreview={(file) => {*/}
|
|
|
+ {/* this.setState({*/}
|
|
|
+ {/* previewImage: file.url || file.thumbUrl,*/}
|
|
|
+ {/* previewVisible: true,*/}
|
|
|
+ {/* });*/}
|
|
|
+ {/* }} />*/}
|
|
|
+ <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
|
|
|
+ <ImgList fileList={this.state.pictureUrl} ItemWidth={'96px'}/>
|
|
|
+ </div>
|
|
|
<Modal maskClosable={false} footer={null}
|
|
|
visible={this.state.previewVisible}
|
|
|
onCancel={() => { this.setState({ previewVisible: false }) }}>
|