Merge branch 'dev-tmp1' of http://47.92.113.182:3000/cq_anquan/safety-eval-service-frontend into dev-tmp1
commit
a5013c5b55
|
|
@ -155,7 +155,40 @@ const SpotCheckDetailModal = ({ open, record, onCancel }) => {
|
|||
]}
|
||||
/>
|
||||
</ModalSection>
|
||||
|
||||
<ModalSection title="合同文件" desc="查看上传的合同文件。">
|
||||
<ProtoTable
|
||||
headers={["文件名称", "文件类型"]}
|
||||
rows={parseFileList(detailData.contractFileUrls).map((f) => [
|
||||
<span
|
||||
key={f.url}
|
||||
style={{ color: "#1677ff", cursor: "pointer" }}
|
||||
onClick={() =>
|
||||
handleFileDownload(f.url, f.name || "未命名文件")
|
||||
}
|
||||
>
|
||||
{f.name || "未命名文件"}
|
||||
</span>,
|
||||
getFileExtLabel(f.name || f.url),
|
||||
])}
|
||||
/>
|
||||
</ModalSection>
|
||||
<ModalSection title="其他过程文档" desc="查看上传的过程文档。">
|
||||
<ProtoTable
|
||||
headers={["文件名称", "文件类型"]}
|
||||
rows={parseFileList(detailData.processDocUrls).map((f) => [
|
||||
<span
|
||||
key={f.url}
|
||||
style={{ color: "#1677ff", cursor: "pointer" }}
|
||||
onClick={() =>
|
||||
handleFileDownload(f.url, f.name || "未命名文件")
|
||||
}
|
||||
>
|
||||
{f.name || "未命名文件"}
|
||||
</span>,
|
||||
getFileExtLabel(f.name || f.url),
|
||||
])}
|
||||
/>
|
||||
</ModalSection>
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue