|
|
@ -17,9 +17,7 @@ function SpecificationLibrary ({ loading, clientHeight, actions, dispatch, }) { |
|
|
|
const { resourceRetrieval } = actions |
|
|
|
const [checkAll, setCheckAll] = useState(false) |
|
|
|
const [query, setQuery] = useState({ page: 0, limit: 20 }); |
|
|
|
const [folderData, setFolderData] = useState([]); |
|
|
|
const [fileData, setFileData] = useState({ data: [], count: 0 }) |
|
|
|
const [groupModal, setGroupModal] = useState(false) |
|
|
|
const [fileModal, setFileModal] = useState(false) |
|
|
|
|
|
|
|
const [keyword, setKeywords] = useState() |
|
|
@ -74,7 +72,7 @@ function SpecificationLibrary ({ loading, clientHeight, actions, dispatch, }) { |
|
|
|
url.map(d => { |
|
|
|
RouteRequest.delete(RouteTable.cleanUpUploadTrash, { url: d }); |
|
|
|
}) |
|
|
|
resourceData({ page: 0, limit: 10 }) |
|
|
|
resourceData({ page: 0, limit: 20 }) |
|
|
|
fileId.current = [] |
|
|
|
setFileIds([]) |
|
|
|
setFileIds(false) |
|
|
@ -98,7 +96,7 @@ function SpecificationLibrary ({ loading, clientHeight, actions, dispatch, }) { |
|
|
|
}} |
|
|
|
onSearch={(value, event) => { |
|
|
|
setKeywords(value) |
|
|
|
resourceData({ page: 0, limit: 10, keyword: value }) |
|
|
|
resourceData({ page: 0, limit: 20, keyword: value }) |
|
|
|
}} |
|
|
|
|
|
|
|
style={{ |
|
|
@ -167,7 +165,7 @@ function SpecificationLibrary ({ loading, clientHeight, actions, dispatch, }) { |
|
|
|
setFileModal(false); |
|
|
|
}} |
|
|
|
success={() => { |
|
|
|
resourceData({ page: 0, limit: 10, keyword: keyword }) |
|
|
|
resourceData({ page: 0, limit: 20, keyword: keyword }) |
|
|
|
}} |
|
|
|
remove={url => { |
|
|
|
RouteRequest.delete(RouteTable.cleanUpUploadTrash, { url: url }); |
|
|
|