From cd731ba7a20f120a590e862fe7ce56ed5b868b91 Mon Sep 17 00:00:00 2001 From: wenlele Date: Wed, 21 Jun 2023 13:05:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...r copy.sql => 07_alter_t_standard_doc_folder copy.sql} | 0 .../containers/specificationLibrary.js | 8 +++----- 2 files changed, 3 insertions(+), 5 deletions(-) rename scripts/0.0.7/{03_alter_t_standard_doc_folder copy.sql => 07_alter_t_standard_doc_folder copy.sql} (100%) diff --git a/scripts/0.0.7/03_alter_t_standard_doc_folder copy.sql b/scripts/0.0.7/07_alter_t_standard_doc_folder copy.sql similarity index 100% rename from scripts/0.0.7/03_alter_t_standard_doc_folder copy.sql rename to scripts/0.0.7/07_alter_t_standard_doc_folder copy.sql diff --git a/web/client/src/sections/safetySpecification/containers/specificationLibrary.js b/web/client/src/sections/safetySpecification/containers/specificationLibrary.js index 6d69bcc..a6ad5f0 100644 --- a/web/client/src/sections/safetySpecification/containers/specificationLibrary.js +++ b/web/client/src/sections/safetySpecification/containers/specificationLibrary.js @@ -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 });