Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
966fe9e8
Commit
966fe9e8
authored
Aug 21, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式调整
parent
22dc09fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+10
-13
No files found.
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
966fe9e8
...
...
@@ -7,6 +7,7 @@ import { useContextMenu, Menu as RcMenu, Item as RcItem } from "react-contexify"
import
LocalStorage
from
'local-storage'
;
import
{
Subject
}
from
"rxjs"
;
import
produce
from
'immer'
import
{
useDebounceEffect
}
from
'ahooks'
import
FilterElementModal
from
'./FilterElementModal'
;
import
AssetMount
from
'../../AssetRecycle/Component/AssetMount'
;
...
...
@@ -34,7 +35,6 @@ import 'react-contexify/dist/ReactContexify.css';
import
{
getTemplateType
}
from
"../../../../util/axios"
;
const
{
Text
}
=
Typography
;
const
{
Search
}
=
Input
;
const
{
Column
}
=
Table
;
const
operationMap
=
{
...
...
@@ -294,12 +294,12 @@ const AssetTable = (props) => {
//eslint-disable-next-line react-hooks/exhaustive-deps
},
[
timestamp
])
useEffect
(()
=>
{
use
Debounce
Effect
(()
=>
{
if
(
reference
!==
AssetRecycleReference
&&
nodeId
)
{
getFilterElementsGroupThenGetDataAssets
();
}
//eslint-disable-next-line react-hooks/exhaustive-deps
},
[
keyword
,
pagination
,
elementsChanged
,
assetActionChanged
,
recursive
,
fullSearch
,
currentElementId
,
nodeId
]
)
},
[
keyword
,
pagination
,
elementsChanged
,
assetActionChanged
,
recursive
,
fullSearch
,
currentElementId
,
nodeId
],
{
wait
:
300
}
)
useEffect
(()
=>
{
if
(
reference
===
AssetRecycleReference
)
{
...
...
@@ -768,11 +768,6 @@ const AssetTable = (props) => {
})
}
const
onSearchInputChange
=
(
value
)
=>
{
setKeyword
(
value
||
''
);
setPagination
({
...
pagination
,
pageNum
:
1
});
}
const
addAsset
=
()
=>
{
setAddAssetParams
({
visible
:
true
...
...
@@ -1291,11 +1286,13 @@ const AssetTable = (props) => {
}
</Select>
}
<Search
placeholder="请输入资产目录要素值"
allowClear
onSearch={onSearchInputChange}
enterButton
<Input size="middle"
placeholder="请输入资产目录要素值"
value={keyword} allowClear
onChange={(e) => {
setKeyword(e.target.value);
setPagination({ ...pagination, pageNum: 1 });
}}
style={{ width: inputWidth }}
/>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment