|
|
|
@ -147,6 +147,7 @@ const CompAudit = () => {
|
|
|
|
title: '组件附件',
|
|
|
|
title: '组件附件',
|
|
|
|
dataIndex: 'attachmentAddress',
|
|
|
|
dataIndex: 'attachmentAddress',
|
|
|
|
width: 120,
|
|
|
|
width: 120,
|
|
|
|
|
|
|
|
fixed: 'right' as const,
|
|
|
|
render: (_, record: HistoryRecord) => {
|
|
|
|
render: (_, record: HistoryRecord) => {
|
|
|
|
if (!record.main.attachmentAddress) return '-';
|
|
|
|
if (!record.main.attachmentAddress) return '-';
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
@ -293,7 +294,7 @@ const CompAudit = () => {
|
|
|
|
|
|
|
|
|
|
|
|
// 下载组件附件
|
|
|
|
// 下载组件附件
|
|
|
|
const handleDownloadAttachments = (attachmentAddress: string) => {
|
|
|
|
const handleDownloadAttachments = (attachmentAddress: string) => {
|
|
|
|
if (!attachmentAddress) {
|
|
|
|
if (!attachmentAddress || attachmentAddress == '[]') {
|
|
|
|
Message.warning('暂无附件');
|
|
|
|
Message.warning('暂无附件');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|