|
@@ -8,6 +8,7 @@ import { citySelect,provinceList,areaSelect,provinceSelect} from '../../../NewDi
|
|
|
import { Form,Radio, Icon, Button, Input,Tabs, Select, Spin, Table, Switch, message, DatePicker, Modal, Upload,Popconfirm,TimePicker,Cascader } from 'antd';
|
|
|
import {categoryState,industry,conditionOrganization,gameState} from '../../../dataDic.js';
|
|
|
import {getCategoryState,getGameState,splitUrl,getprovince} from '../../../tools.js';
|
|
|
+import ImgList from "../../../common/imgList";
|
|
|
const TabPane = Tabs.TabPane;
|
|
|
//图片组件
|
|
|
const PicturesWall = React.createClass({
|
|
@@ -45,18 +46,19 @@ const PicturesWall = React.createClass({
|
|
|
);
|
|
|
return (
|
|
|
<div style={{display:"inline-block"}}>
|
|
|
- <Upload
|
|
|
- action={globalConfig.context + "/api/admin/ProjectSize/uploadPicture"}
|
|
|
- data={{ 'sign': this.props.pictureSign }}
|
|
|
- listType="picture-card"
|
|
|
+ <ImgList
|
|
|
+ domId={this.props.domId}
|
|
|
+ uploadConfig={{
|
|
|
+ action:globalConfig.context + "/api/admin/ProjectSize/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 >= 1 ? null : uploadButton}
|
|
|
- </Upload>
|
|
|
- <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
|
|
|
- <img alt="example" style={{ width: '100%' }} src={previewImage} />
|
|
|
- </Modal>
|
|
|
+ />
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
@@ -1527,6 +1529,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 10 }}
|
|
|
label="业务项目图标" >
|
|
|
<PicturesWall
|
|
|
+ domId={'businessQuery1'}
|
|
|
pictureSign="business_project_min_picture"
|
|
|
fileList={this.getOrgCodeUrl}
|
|
|
pictureUrl={this.state.orgCodeUrl} />
|
|
@@ -1537,6 +1540,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="业务项目图标" >
|
|
|
<PicturesWall
|
|
|
+ domId={'businessQuery2'}
|
|
|
pictureSign="business_project_max_picture"
|
|
|
fileList={this.getCompanyLogoUrl}
|
|
|
pictureUrl={this.state.companyLogoUrl} />
|