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
8f51fa76
Commit
8f51fa76
authored
Mar 17, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产样式调整
parent
3fa72096
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
14 deletions
+35
-14
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+35
-14
No files found.
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
8f51fa76
...
@@ -723,6 +723,36 @@ const AssetTable = (props) => {
...
@@ -723,6 +723,36 @@ const AssetTable = (props) => {
</
Menu
>
</
Menu
>
);
);
const
browseMoreMenu
=
(
<
Menu
>
<
Menu
.
Item
>
<
div
className=
'text-center'
onClick=
{
onFilterElementClick
}
>
可见列设置
</
div
>
</
Menu
.
Item
>
<
Menu
.
Item
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
<
div
className=
'text-center'
onClick=
{
onTableauAnalyseClick
}
>
tableau自助分析
</
div
>
</
Menu
.
Item
>
<
Menu
.
Item
>
<
div
className=
'text-center'
onClick=
{
onTableauWorkbookClick
}
>
tableau工作簿
</
div
>
</
Menu
.
Item
>
<
Menu
.
Item
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
<
div
className=
'text-center'
onClick=
{
onSmartBIAnalyseClick
}
>
smartBI自助分析
</
div
>
</
Menu
.
Item
>
<
Menu
.
Item
>
<
div
className=
'text-center'
onClick=
{
onSmartBIWorkbookClick
}
>
smartBI工作簿
</
div
>
</
Menu
.
Item
>
</
Menu
>
);
const
rowSelection
=
{
const
rowSelection
=
{
selectedRowKeys
:
checkedKeys
,
selectedRowKeys
:
checkedKeys
,
onChange
:
onSelectChange
,
onChange
:
onSelectChange
,
...
@@ -759,14 +789,11 @@ const AssetTable = (props) => {
...
@@ -759,14 +789,11 @@ const AssetTable = (props) => {
(
reference
===
AssetManageReference
&&
nodeType
!==
'custom'
)
&&
<
Button
onClick=
{
addAsset
}
>
新增
</
Button
>
(
reference
===
AssetManageReference
&&
nodeType
!==
'custom'
)
&&
<
Button
onClick=
{
addAsset
}
>
新增
</
Button
>
}
}
{
{
(
compact
&&
reference
===
AssetManageReference
)
?
<
Dropdown
overlay=
{
moreMenu
}
placement=
"bottomCenter"
>
(
reference
===
AssetManageReference
)
?
<
Dropdown
overlay=
{
moreMenu
}
placement=
"bottomCenter"
>
<
Button
>
其他操作
</
Button
>
<
Button
>
其他操作
</
Button
>
</
Dropdown
>
:
<
React
.
Fragment
>
</
Dropdown
>
:
<
React
.
Fragment
>
{
(
reference
===
AssetManageReference
&&
nodeType
!==
'custom'
)
&&
<
Button
onClick=
{
importAsset
}
>
导入
</
Button
>
}
{
{
(
reference
===
Asset
ManageReference
||
reference
===
Asset
RecycleReference
)
&&
<
React
.
Fragment
>
(
reference
===
AssetRecycleReference
)
&&
<
React
.
Fragment
>
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
<
Button
onClick=
{
exportAsset
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
导出
</
Button
>
<
Button
onClick=
{
exportAsset
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
导出
</
Button
>
</
Tooltip
>
</
Tooltip
>
...
@@ -781,15 +808,9 @@ const AssetTable = (props) => {
...
@@ -781,15 +808,9 @@ const AssetTable = (props) => {
}
}
</
React
.
Fragment
>
</
React
.
Fragment
>
}
}
<
Button
onClick=
{
onFilterElementClick
}
>
可见列设置
</
Button
>
<
Dropdown
overlay=
{
browseMoreMenu
}
placement=
"bottomCenter"
>
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
<
Button
>
其他操作
</
Button
>
<
Button
onClick=
{
onTableauAnalyseClick
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
tableau自助分析
</
Button
>
</
Dropdown
>
</
Tooltip
>
<
Button
onClick=
{
onTableauWorkbookClick
}
>
tableau工作簿
</
Button
>
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产'
:
''
}
>
<
Button
onClick=
{
onSmartBIAnalyseClick
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
smartBI自助分析
</
Button
>
</
Tooltip
>
<
Button
onClick=
{
onSmartBIWorkbookClick
}
>
smartBI工作簿
</
Button
>
</
React
.
Fragment
>
</
React
.
Fragment
>
}
}
{
{
...
...
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