| | |
| | | {props.menuList?.map(item => { |
| | | return <SubMenu |
| | | key={item.id} |
| | | title={item.ownerTypeName + `(${item.fileInfoList && item.fileInfoList.length || 0})`} |
| | | title={item.ownerTypeName + `(${item.fileList && item.fileList.length || 0})`} |
| | | > |
| | | {item.fileInfoList?.map(res => { |
| | | {item.fileList?.map(res => { |
| | | return <MenuItem key={res.id} onClick={() => { clickItem(res) }}>{res.trueName}</MenuItem> |
| | | })} |
| | | </SubMenu> |
| | |
| | | <div style={{ width: '100%', height: '470px' }}> |
| | | { |
| | | itemData.suffix === 'pdf' ? |
| | | <embed src="fileUrl" type="application/pdf" width="100%" height="100%"></embed> |
| | | <embed src={fileUrl} type="application/pdf" width="100%" height="100%"></embed> |
| | | : |
| | | <img src={fileUrl} alt="" style={{ width: '100%', height: '100%' }} /> |
| | | } |