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
fe511bea
Commit
fe511bea
authored
Nov 17, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产浏览页面调整
parent
aedda061
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+14
-6
FilterElementModal.jsx
src/view/Manage/AssetManage/Component/FilterElementModal.jsx
+4
-2
No files found.
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
fe511bea
...
@@ -213,7 +213,12 @@ const AssetTable = (props) => {
...
@@ -213,7 +213,12 @@ const AssetTable = (props) => {
})
})
})
})
setColumns
([...
_columns
,
actionColumn
]);
if
(
readOnly
)
{
setColumns
(
_columns
);
}
else
{
setColumns
([...
_columns
,
actionColumn
]);
}
getDataAssets
();
getDataAssets
();
},
},
...
@@ -481,15 +486,18 @@ const AssetTable = (props) => {
...
@@ -481,15 +486,18 @@ const AssetTable = (props) => {
title=
{
title=
{
<
div
className=
'd-flex'
style=
{
{
justifyContent
:
'space-between'
}
}
>
<
div
className=
'd-flex'
style=
{
{
justifyContent
:
'space-between'
}
}
>
<
Space
>
<
Space
>
<
Button
onClick=
{
addAsset
}
>
新增
</
Button
>
{
!
readOnly
&&
<
Button
onClick=
{
addAsset
}
>
新增
</
Button
>
}
<
Button
onClick=
{
importAsset
}
>
导入
</
Button
>
{
!
readOnly
&&
<
Button
onClick=
{
importAsset
}
>
导入
</
Button
>
}
<
Tooltip
title=
{
(
selectedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
<
Tooltip
title=
{
(
selectedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
<
Button
onClick=
{
exportAsset
}
disabled=
{
(
selectedKeys
||
[]).
length
===
0
}
>
导出
</
Button
>
<
Button
onClick=
{
exportAsset
}
disabled=
{
(
selectedKeys
||
[]).
length
===
0
}
>
导出
</
Button
>
</
Tooltip
>
</
Tooltip
>
<
Button
onClick=
{
onFilterElementClick
}
>
要素过滤
</
Button
>
<
Button
onClick=
{
onFilterElementClick
}
>
要素过滤
</
Button
>
<
Dropdown
overlay=
{
moreMenu
}
trigger=
{
[
'click'
]
}
placement=
"bottomLeft"
>
{
readOnly
&&
<
Button
onClick=
{
onAttributeRelationBtnClick
}
>
元数据属性关联
</
Button
>
}
<
Button
>
更多
<
DownOutlined
/></
Button
>
{
</
Dropdown
>
!
readOnly
&&
<
Dropdown
overlay=
{
moreMenu
}
trigger=
{
[
'click'
]
}
placement=
"bottomLeft"
>
<
Button
>
更多
<
DownOutlined
/></
Button
>
</
Dropdown
>
}
</
Space
>
</
Space
>
<
Space
>
<
Space
>
<
Input
<
Input
...
...
src/view/Manage/AssetManage/Component/FilterElementModal.jsx
View file @
fe511bea
...
@@ -14,9 +14,11 @@ const FilterElementModal = (props) => {
...
@@ -14,9 +14,11 @@ const FilterElementModal = (props) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
getAllFilterElementIdsThenGetAllElements
();
if
(
visible
)
{
getAllFilterElementIdsThenGetAllElements
();
}
//eslint-disable-next-line react-hooks/exhaustive-deps
//eslint-disable-next-line react-hooks/exhaustive-deps
},
[]);
},
[
visible
]);
const
getAllFilterElementIdsThenGetAllElements
=
()
=>
{
const
getAllFilterElementIdsThenGetAllElements
=
()
=>
{
dispatch
({
dispatch
({
...
...
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