forked from gzzfw/frontEnd/gzDyh

zhangyongtian
2024-09-13 42ad61a075d8a3c32949d83bf40acc53b2da25b1
gz-customerSystem/src/views/register/matterDetail/NewFileCheck.jsx
@@ -120,10 +120,10 @@
                  {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 => {
                           return <MenuItem key={res.id} onClick={() => { clickItem(res) }}>{res.trueName}</MenuItem>
                        {item.fileList?.map(res => {
                           return <MenuItem key={res.id} onClick={() => { clickItem(res) }}>{res.name}</MenuItem>
                        })}
                     </SubMenu>
                  })}
@@ -133,14 +133,14 @@
               {
                  itemData ? <Fragment>
                     <div style={{ background: '#e8f3ff', color: '#1A6FB8', padding: '5px 10px', marginBottom: '16px' }}>
                        <span>材料名称:{itemData.trueName}</span>&nbsp;&nbsp;|&nbsp;&nbsp;
                        <span>材料名称:{itemData.name}</span>&nbsp;&nbsp;|&nbsp;&nbsp;
                        <span>上传时间:{itemData.updateTime}</span>&nbsp;&nbsp;|&nbsp;&nbsp;
                        <span>上传人:{itemData.uploaderName} {itemData.uploaderType && <span>({peopleTypeMap[itemData.uploaderType]})</span>}</span>
                     </div>
                     <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%' }} />
                        }