Browse Source

添加路政图片预览

dev
dengyinhuan 1 year ago
parent
commit
00dd0ed88f
  1. 1
      web/client/src/sections/fillion/components/luzhengmodel.js
  2. 1
      web/client/src/sections/fillion/components/uploads.js
  3. 2
      web/client/src/sections/fillion/containers/luzheng.js

1
web/client/src/sections/fillion/components/luzhengmodel.js

@ -82,7 +82,6 @@ const LuzhengModel = ({ editData, check, visible, onCancel, dispatch }) => {
<Form.Item name="enforcementreslt" label="执法成果" rules={[{ required: true, message: '请填写' },{ max: 100, message: '不可超过一百个字符' }]}> <Form.Item name="enforcementreslt" label="执法成果" rules={[{ required: true, message: '请填写' },{ max: 100, message: '不可超过一百个字符' }]}>
<Input/> <Input/>
</Form.Item> </Form.Item>
<Form.Item name="picfile" label="执法图片"> <Form.Item name="picfile" label="执法图片">
<Uploads <Uploads
maxFilesNum={3} maxFilesNum={3}

1
web/client/src/sections/fillion/components/uploads.js

@ -261,6 +261,7 @@ class Uploads extends Component {
}; };
let fileList_ = fileList let fileList_ = fileList
// .map(f => { // .map(f => {
// if (f.storageUrl) { // if (f.storageUrl) {
// let realName = f.storageUrl.split('/').pop() // let realName = f.storageUrl.split('/').pop()

2
web/client/src/sections/fillion/containers/luzheng.js

@ -106,8 +106,6 @@ function Assess(props) {
dataIndex: 'picfile', dataIndex: 'picfile',
key: 'picfile', key: 'picfile',
render:(t,r)=>{ render:(t,r)=>{
return r?.picfile?.map(i=>{ return r?.picfile?.map(i=>{
return <span style={{marginRight:10}}> return <span style={{marginRight:10}}>
<Image src={i?.url} width={80}/> <Image src={i?.url} width={80}/>

Loading…
Cancel
Save