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
f3f5eadd
Commit
f3f5eadd
authored
Nov 22, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产详情页再次调整
parent
97a2ed1b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
AssetDetail.jsx
src/view/Manage/AssetManage/Component/AssetDetail.jsx
+10
-5
No files found.
src/view/Manage/AssetManage/Component/AssetDetail.jsx
View file @
f3f5eadd
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
{
Spin
,
Tabs
,
Descriptions
}
from
"antd"
;
import
{
Spin
,
Tabs
,
Descriptions
,
Divider
}
from
"antd"
;
import
MetadataInfo
from
'./MetadataInfo'
;
import
MetadataInfo
from
'./MetadataInfo'
;
import
{
highlightSearchContentByTerms
}
from
'../../../../util'
;
import
{
highlightSearchContentByTerms
}
from
'../../../../util'
;
...
@@ -55,14 +55,18 @@ const AssetDetail = (props)=>{
...
@@ -55,14 +55,18 @@ const AssetDetail = (props)=>{
return
(
return
(
<
Spin
spinning=
{
loading
}
>
<
Spin
spinning=
{
loading
}
>
<
Tabs
activeKey=
{
tabKey
}
onChange=
{
onTabChange
}
>
{
{
(
types
||
[]).
map
((
type
,
index
)
=>
{
(
types
||
[]).
map
((
type
,
index
)
=>
{
const
_currentValues
=
(
asset
.
elements
||
[]).
filter
(
element
=>
element
.
type
===
type
);
const
_currentValues
=
(
asset
.
elements
||
[]).
filter
(
element
=>
element
.
type
===
type
);
return
(
return
(
<
TabPane
tab=
{
type
}
key=
{
index
}
>
<
div
key=
{
index
}
>
<
div
className=
'flex'
style=
{
{
alignItems
:
'center'
,
padding
:
'15px 0'
}
}
>
<
div
style=
{
{
width
:
3
,
height
:
14
,
backgroundColor
:
'#0069AC'
,
marginRight
:
5
}
}
/>
<
span
style=
{
{
fontWeight
:
'bold'
,
color
:
'#464646'
}
}
>
{
type
||
''
}
</
span
>
</
div
>
<
Descriptions
column=
{
2
}
>
<
Descriptions
column=
{
2
}
>
{
{
(
_currentValues
||
[]).
map
((
item
,
index
)
=>
{
(
_currentValues
||
[]).
map
((
item
,
index
)
=>
{
...
@@ -76,11 +80,12 @@ const AssetDetail = (props)=>{
...
@@ -76,11 +80,12 @@ const AssetDetail = (props)=>{
})
})
}
}
</
Descriptions
>
</
Descriptions
>
</
TabPane
>
<
Divider
style=
{
{
margin
:
'10px 0'
}
}
/>
</
div
>
)
)
})
})
}
}
</
Tabs
>
</
Spin
>
</
Spin
>
)
)
}
}
...
...
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