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
3414372b
Commit
3414372b
authored
May 15, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关联标准
parent
c9aa0814
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+8
-1
AssetDetail.jsx
src/view/Manage/AssetManage/Component/AssetDetail.jsx
+8
-1
StandardName.jsx
src/view/Manage/AssetManage/Component/StandardName.jsx
+23
-0
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
3414372b
...
...
@@ -11,6 +11,7 @@ import { AppContext } from '../../../../App';
import
Tag
from
'../../Tag'
;
import
Separate
from
'./Separate'
;
import
AssetTagModal
from
'./AssetTagModal'
;
import
StandardName
from
'./StandardName'
;
import
{
CancelSvg
,
EditSvg
,
SaveSvg
,
FullScreenSvg
,
CancelFullScreenSvg
}
from
'./AssetSvg'
;
...
...
@@ -479,7 +480,13 @@ const AssetAction = (props) => {
return
(
<
Descriptions
.
Item
label=
{
<
div
className=
'title-common'
style=
{
{
textAlign
:
'right'
,
width
:
60
}
}
>
{
item
.
name
||
''
}
</
div
>
}
key=
{
index
}
style=
{
{
paddingBottom
:
(
index
===
sameAttributeElements
.
length
-
1
)?
0
:
10
}
}
>
{
item
.
name
===
'资产项'
?
<
MetadataInfo
config=
{
false
}
value=
{
item
.
value
||
''
}
/>
:
<
span
className=
'text-color'
>
{
highlightSearchContentByTerms
(
item
.
value
||
''
,
terms
)
}
</
span
>
item
.
name
===
'资产项'
&&
<
MetadataInfo
config=
{
false
}
value=
{
item
.
value
||
''
}
terms=
{
terms
}
/>
}
{
item
.
name
===
'关联标准'
&&
<
StandardName
value=
{
item
.
value
||
''
}
terms=
{
terms
}
/>
}
{
item
.
name
!==
'资产项'
&&
item
.
name
!==
'关联标准'
&&
<
span
className=
'text-color'
>
{
highlightSearchContentByTerms
(
item
.
value
||
''
,
terms
)
}
</
span
>
}
</
Descriptions
.
Item
>
);
...
...
src/view/Manage/AssetManage/Component/AssetDetail.jsx
View file @
3414372b
...
...
@@ -4,6 +4,7 @@ import { Spin, Descriptions, Divider } from "antd";
import
MetadataInfo
from
'./MetadataInfo'
;
import
{
highlightSearchContentByTerms
}
from
'../../../../util'
;
import
{
dispatch
}
from
'../../../../model'
;
import
StandardName
from
'./StandardName'
;
const
AssetDetail
=
(
props
)
=>
{
...
...
@@ -77,7 +78,13 @@ const AssetDetail = (props)=>{
return
(
<
Descriptions
.
Item
label=
{
item
.
name
||
''
}
key=
{
index
}
>
{
item
.
name
===
'资产项'
?
<
MetadataInfo
config=
{
false
}
value=
{
item
.
value
||
''
}
/>
:
<
span
>
{
highlightSearchContentByTerms
(
item
.
value
||
''
,
terms
)
}
</
span
>
item
.
name
===
'资产项'
&&
<
MetadataInfo
config=
{
false
}
value=
{
item
.
value
||
''
}
terms=
{
terms
}
/>
}
{
item
.
name
===
'关联标准'
&&
<
StandardName
value=
{
item
.
value
||
''
}
terms=
{
terms
}
/>
}
{
item
.
name
!==
'资产项'
&&
item
.
name
!==
'关联标准'
&&
<
span
className=
'text-color'
>
{
highlightSearchContentByTerms
(
item
.
value
||
''
,
terms
)
}
</
span
>
}
</
Descriptions
.
Item
>
);
...
...
src/view/Manage/AssetManage/Component/StandardName.jsx
0 → 100644
View file @
3414372b
import
React
from
'react'
;
import
{
highlightSearchContentByTerms
}
from
'../../../../util'
;
import
{
AppContext
}
from
'../../../../App'
;
const
FC
=
({
value
=
''
,
terms
=
[]
})
=>
{
return
(
<
AppContext
.
Consumer
>
{
appValue
=>
<
a
onClick=
{
()
=>
{
appValue
?.
setGlobalState
&&
appValue
?.
setGlobalState
({
message
:
'data-govern-show-standard-detail-message'
,
data
:
{
name
:
value
}
})
}
}
>
<
span
>
{
highlightSearchContentByTerms
(
value
,
terms
)
}
</
span
>
</
a
>
}
</
AppContext
.
Consumer
>
);
}
export
default
FC
;
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