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
fa06e11f
Commit
fa06e11f
authored
Jul 10, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产地图打开资产详情问题
parent
851bde60
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+9
-8
AssetDetailPage.jsx
src/view/Manage/AssetManage/Component/AssetDetailPage.jsx
+2
-2
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
fa06e11f
import
React
,
{
useEffect
,
useState
,
useContext
,
useMemo
,
useRef
}
from
'react'
;
import
{
Form
,
Spin
,
Input
,
Descriptions
,
Space
,
Button
,
Tooltip
,
Select
,
Cascader
,
Radio
,
Divider
,
Typography
,
Modal
,
Row
,
Col
,
Pagination
}
from
'antd'
;
import
{
DownOutlined
,
UpOutlined
,
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
LocalStorage
from
'local-storage'
;
import
MetadataInfo
from
'./MetadataInfo'
;
import
{
dispatch
}
from
'../../../../model'
;
...
...
@@ -277,7 +278,7 @@ const AssetAction = (props) => {
type
:
'assetmanage.getPermission'
,
payload
:
{
permissionId
,
env
:
app
?.
env
?.
domainId
env
:
app
?.
env
?.
domainId
||
LocalStorage
.
get
(
'assetsEnv'
)
},
callback
:
data
=>
{
setPermissions
(
data
.
columnPermissions
);
...
...
@@ -302,7 +303,7 @@ const AssetAction = (props) => {
dispatch
({
type
:
'assetmanage.getSystems'
,
payload
:
{
env
:
app
?.
env
?.
domainId
,
env
:
app
?.
env
?.
domainId
||
LocalStorage
.
get
(
'assetsEnv'
)
,
},
callback
:
data
=>
{
setLoadingSystems
(
false
);
...
...
@@ -498,7 +499,7 @@ const AssetAction = (props) => {
payload
:
{
data
:
ids
,
params
:
{
catalog
:
app
?.
env
?.
domainId
,
catalog
:
app
?.
env
?.
domainId
||
LocalStorage
.
get
(
'assetsEnv'
)
,
}
},
callback
:
data
=>
{
...
...
@@ -986,7 +987,7 @@ const AssetAction = (props) => {
>
{
(currentAction==='add'||currentAction==='edit') ?
<Row gutter={8}>
<Row gutter={8}
align='middle'
>
<Col span={22}>
<Form.Item
label=''
...
...
@@ -1000,20 +1001,20 @@ const AssetAction = (props) => {
{
interpretation && <Col span={2}>
<Tooltip placement="left" title={interpretation}>
<QuestionCircleOutlined style={{
marginTop: 8,
fontSize: 16 }} />
<QuestionCircleOutlined style={{ fontSize: 16 }} />
</Tooltip>
</Col>
}
</Row>
: <React.Fragment>
<Row gutter={8}>
<Row gutter={8}
align='middle'
>
<Col span={22}>
{ elementDetailComponent(element) }
</Col>
{
interpretation && <Col span={2}>
<Tooltip placement="left" title={interpretation}>
<QuestionCircleOutlined style={{
marginTop: 8,
fontSize: 16 }} />
<QuestionCircleOutlined style={{ fontSize: 16 }} />
</Tooltip>
</Col>
}
...
...
@@ -1091,7 +1092,7 @@ const AssetAction = (props) => {
payload: {
fileList: [files[0]],
params: {
catalog: app?.env?.domainId,
catalog: app?.env?.domainId
||LocalStorage.get('assetsEnv')
,
}
},
callback: (data) => {
...
...
src/view/Manage/AssetManage/Component/AssetDetailPage.jsx
View file @
fa06e11f
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
Asset
Detail
from
'./AssetDetail'
;
import
Asset
Action
from
"./AssetAction"
;
import
{
getQueryParam
}
from
'../../../../util'
;
import
'./AssetDetailPage.less'
;
...
...
@@ -27,7 +27,7 @@ const AssetDetailPage = (props)=>{
</
div
>
<
div
className=
'detail-container'
>
<
div
className=
'detail-container-card'
>
<
Asset
Detail
id=
{
id
}
dirId=
{
dirId
}
/>
<
Asset
Action
id=
{
id
}
dirId=
{
dirId
}
action=
'detail'
/>
</
div
>
</
div
>
</
div
>
...
...
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