|
|
@ -63,6 +63,7 @@ const AddReportRulesModal = props => { |
|
|
|
name: modalData?.name, |
|
|
|
type: modalData?.type, |
|
|
|
system:modalData?.system, |
|
|
|
pic: modalData?.reportpic?.map(item=>{return {storageUrl:item,url:item}}), |
|
|
|
timeRange: modalData?.startTime ? [moment(modalData?.startTime), moment(modalData?.endTime)] : [], |
|
|
|
}) |
|
|
|
}, [visible]) |
|
|
@ -243,22 +244,24 @@ const AddReportRulesModal = props => { |
|
|
|
<Uploads |
|
|
|
listType='picture-card' |
|
|
|
uploadType='project' |
|
|
|
maxFilesNum={15} |
|
|
|
maxFileSize={10} |
|
|
|
isQiniu={true} |
|
|
|
// disabled={true}
|
|
|
|
fileTypes={['png', 'jpg']} |
|
|
|
// fileList={pic}
|
|
|
|
defaultValue={(() => { |
|
|
|
let nextV = [] |
|
|
|
for (let s of modalData?.reportpic || []) { |
|
|
|
if (s) { |
|
|
|
nextV.push({ |
|
|
|
storageUrl: s, |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
return nextV |
|
|
|
})()} |
|
|
|
// defaultValue={(() => {
|
|
|
|
// let nextV = []
|
|
|
|
// for (let s of modalData?.reportpic || []) {
|
|
|
|
// if (s) {
|
|
|
|
// nextV.push({
|
|
|
|
// url: s,
|
|
|
|
// storageUrl: s,
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// return nextV
|
|
|
|
// })()}
|
|
|
|
/> |
|
|
|
</Form.Item> |
|
|
|
</Form> |
|
|
|