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
44c870e6
Commit
44c870e6
authored
Nov 23, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产项显示字段
parent
6f73b805
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
MetadataInfo.jsx
src/view/Manage/AssetManage/Component/MetadataInfo.jsx
+16
-8
No files found.
src/view/Manage/AssetManage/Component/MetadataInfo.jsx
View file @
44c870e6
...
...
@@ -16,14 +16,22 @@ const MetadataInfo = ({ value = '', config = true }) => {
return
(
<
AppContext
.
Consumer
>
{
value
=>
<
span
>
value
=>
<
div
className=
'flex'
>
{
(
typeof
metadata
===
'string'
)
?
<
span
style=
{
{
marginRight
:
5
}
}
>
{
metadata
||
''
}
</
span
>
:
<
a
onClick=
{
()
=>
{
value
?.
setGlobalState
&&
value
?.
setGlobalState
({
message
:
'data-govern-show-metadata-message'
,
data
:
metadata
})
}
}
style=
{
{
marginRight
:
5
}
}
>
{
metadata
?.
tableName
||
''
}
</
a
>
(
typeof
metadata
===
'string'
)
?
<
span
style=
{
{
marginRight
:
5
}
}
>
{
metadata
||
''
}
</
span
>
:
<
div
className=
'flex'
style=
{
{
flexDirection
:
'column'
}
}
>
<
a
onClick=
{
()
=>
{
value
?.
setGlobalState
&&
value
?.
setGlobalState
({
message
:
'data-govern-show-metadata-message'
,
data
:
metadata
})
}
}
style=
{
{
marginRight
:
5
,
marginTop
:
5
}
}
>
{
metadata
?.
tableName
||
''
}
</
a
>
{
metadata
?.
columnItems
.
map
((
item
,
index
)
=>
{
return
<
span
key=
{
index
}
>
{
item
.
metadataColumnName
||
''
}
</
span
>
})
}
</
div
>
}
{
config
&&
<
Button
icon=
{
<
SettingFilled
/>
}
onClick=
{
()
=>
{
...
...
@@ -33,7 +41,7 @@ const MetadataInfo = ({ value = '', config = true }) => {
})
}
}
/>
}
</
span
>
</
div
>
}
</
AppContext
.
Consumer
>
);
...
...
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