Browse Source

点位图片限制10M

master
liujiangyong 2 years ago
parent
commit
92b5ec1ae0
  1. 4
      web/client/src/sections/projectRegime/components/pointModel.js

4
web/client/src/sections/projectRegime/components/pointModel.js

@ -167,13 +167,13 @@ const ProjectAddModel = ({ dispatch, actions, user, modelData, close, success, q
<Form.Item <Form.Item
label="结构物图片" label="结构物图片"
name='img' name='img'
help={<div style={{ fontSize: 12 }}>说明请上传pngjpg格式图片图片大小不超过5M</div>} help={<div style={{ fontSize: 12 }}>说明请上传pngjpg格式图片图片大小不超过10M</div>}
> >
<Uploads <Uploads
listType='picture-card' listType='picture-card'
uploadType='project' uploadType='project'
maxFilesNum={1} maxFilesNum={1}
maxFileSize={5} maxFileSize={10}
isQiniu={true} isQiniu={true}
fileTypes={["png", "jpg"]} fileTypes={["png", "jpg"]}
defaultValue={(modelData.img || []).map(s => { defaultValue={(modelData.img || []).map(s => {

Loading…
Cancel
Save