|
|
@ -92,7 +92,7 @@ function Approve ({ loading, clientHeight, actions, dispatch, }) { |
|
|
|
}) |
|
|
|
Promise.all(result).then(() => { |
|
|
|
zip.generateAsync({ type: "blob" }).then((res) => { |
|
|
|
saveAs(res, `${111}.zip`) |
|
|
|
saveAs(res, `标准文档.zip`) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
@ -170,13 +170,11 @@ function Approve ({ loading, clientHeight, actions, dispatch, }) { |
|
|
|
<Popconfirm |
|
|
|
title="是否删除文件夹或文件?当有创建的业务规则与标准文档关联时则不允许删除。" |
|
|
|
onConfirm={() => { |
|
|
|
console.log(folderId.current, fileId.current); |
|
|
|
if (folderId.current?.length || fileId.current?.length) { |
|
|
|
dispatch(dataQuality.postFolderFile({ folderId: folderId.current, fileId: fileId.current })).then(res => { |
|
|
|
if (res.success) { |
|
|
|
resourceData(parent, keywords) |
|
|
|
setCheckAll(false) |
|
|
|
console.log(res); |
|
|
|
res.payload.data?.map(v => { |
|
|
|
RouteRequest.delete(RouteTable.cleanUpUploadTrash, { url: v }); |
|
|
|
}) |
|
|
@ -275,8 +273,8 @@ function Approve ({ loading, clientHeight, actions, dispatch, }) { |
|
|
|
}} > |
|
|
|
<CreditCardFilled style={{ fontSize: 96, color: 'rgb(238 200 44)', marginRight: 8 }} /> |
|
|
|
<div style={{ width: 200, display: 'flex', flexDirection: 'column', justifyContent: 'space-evenly' }}> |
|
|
|
<div style={{ |
|
|
|
width: 100, whiteSpace: 'nowrap', overflow: 'hidden', fontWeight: 400, |
|
|
|
<div title={v.name} style={{ |
|
|
|
width: 200, whiteSpace: 'nowrap', overflow: 'hidden', fontWeight: 400, |
|
|
|
textOverflow: 'ellipsis', fontSize: 18, color: 'rgb(51 161 34)' |
|
|
|
}}> |
|
|
|
{v.name} |
|
|
@ -301,13 +299,15 @@ function Approve ({ loading, clientHeight, actions, dispatch, }) { |
|
|
|
}}> |
|
|
|
<FilePdfOutlined style={{ fontSize: 96, color: 'rgb(33 211 180)', marginRight: 8 }} /> |
|
|
|
<div style={{ width: 200, display: 'flex', flexDirection: 'column', justifyContent: 'space-evenly' }}> |
|
|
|
<div style={{ |
|
|
|
width: 100, whiteSpace: 'nowrap', overflow: 'hidden', fontWeight: 400, |
|
|
|
<div title={v.docName} style={{ |
|
|
|
width: 200, whiteSpace: 'nowrap', overflow: 'hidden', fontWeight: 400, |
|
|
|
textOverflow: 'ellipsis', fontSize: 18, color: 'rgb(51 161 34)' |
|
|
|
}}> |
|
|
|
{v.docName} |
|
|
|
</div> |
|
|
|
<div>标签:{v.tags || '--'}</div> |
|
|
|
<div title={v.tags} style={{ |
|
|
|
width: 200, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' |
|
|
|
}}>标签:{v.tags || '--'}</div> |
|
|
|
<div>标准类型:{v.standardType}</div> |
|
|
|
<div>创建时间:{v.createAt && moment(v.createAt).format('YYYY-MM-DD HH:mm:ss') || '--'}</div> |
|
|
|
</div> |
|
|
|