Browse Source

脚本

master
wenlele 2 years ago
parent
commit
cd731ba7a2
  1. 0
      scripts/0.0.7/07_alter_t_standard_doc_folder copy.sql
  2. 8
      web/client/src/sections/safetySpecification/containers/specificationLibrary.js

0
scripts/0.0.7/03_alter_t_standard_doc_folder copy.sql → scripts/0.0.7/07_alter_t_standard_doc_folder copy.sql

8
web/client/src/sections/safetySpecification/containers/specificationLibrary.js

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

Loading…
Cancel
Save