| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -5,7 +5,7 @@ import { RouteRequest } from '@peace/utils'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { RouteTable } from '$utils' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import SimpleBar from 'simplebar-react'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import FileModal from '../components/fileModal'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { Input, Space, Button, message, Pagination } from 'antd'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { Input, Space, Button, message, Pagination, Popconfirm } from 'antd'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					const { Search } = Input; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { FilePdfOutlined } from '@ant-design/icons'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -69,7 +69,7 @@ function SpecificationLibrary ({ loading, clientHeight, actions, dispatch, }) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      Promise.all(result).then(() => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					         zip.generateAsync({ type: "blob" }).then((res) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            saveAs(res, `${111}.zip`) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            saveAs(res, `数据安全规范.zip`) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					         }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -109,33 +109,39 @@ function SpecificationLibrary ({ loading, clientHeight, actions, dispatch, }) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					               } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }}>下载</Button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <Button type="primary" onClick={() => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					               if (fileId.current?.length) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  dispatch(safetySpecification.delSpecifications(fileId.current)).then(res => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                     if (res.success) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        let url = [] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        fileData?.data?.map(f => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           if (fileId.current?.includes(f.id)) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                              url.push(f.path) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        url.map(d => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           RouteRequest.delete(RouteTable.cleanUpUploadTrash, { url: d }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        resourceData({ page: 0, limit: 20, keyword: keyword }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        fileId.current = [] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        setFileIds([]) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        setFileIds(false) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        setCheckAll(false) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                     } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					               } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  message.warning({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                     duration: 1, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                     content: '未选择文件', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					               } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }}>删除</Button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <Popconfirm | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					               title="确认删除选中的文件吗?" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					               onConfirm={() => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  if (fileId.current?.length) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                     dispatch(safetySpecification.delSpecifications(fileId.current)).then(res => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        if (res.success) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           let url = [] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           fileData?.data?.map(f => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                              if (fileId.current?.includes(f.id)) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                 url.push(f.path) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                              } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           url.map(d => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                              RouteRequest.delete(RouteTable.cleanUpUploadTrash, { url: d }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           resourceData({ page: 0, limit: 20, keyword: keyword }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           fileId.current = [] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           setFileIds([]) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           setFileIds(false) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           setCheckAll(false) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                     }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                     message.warning({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        duration: 1, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        content: '未选择文件', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                     }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					               }} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            > | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					               <Button type="primary" >删除</Button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </Popconfirm> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					         </Space> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					         <Search | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -177,13 +183,15 @@ function SpecificationLibrary ({ 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.fileName} style={{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           width: 200, whiteSpace: 'nowrap', overflow: 'hidden', fontWeight: 400, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           textOverflow: 'ellipsis', fontSize: 18, color: 'rgb(51 161 34)' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        }}> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           {v.fileName} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        <div>标签:{v.tags || '--'}</div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        <div title={v.tags} style={{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                           width: 200, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        }}>标签:{v.tags || '--'}</div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        <div>创建时间:{v.createAt && moment(v.createAt).format('YYYY-MM-DD HH:mm:ss') || '--'}</div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                     </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  </div> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |