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
075236c5
Commit
075236c5
authored
Nov 06, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
5b49f214
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
update-node.jsx
src/view/Manage/AssetManage/update-node.jsx
+4
-2
resource-item.jsx
src/view/Manage/AssetResourceManage/resource-item.jsx
+1
-1
tree.jsx
src/view/Manage/AssetResourceManage/tree.jsx
+7
-4
No files found.
src/view/Manage/AssetManage/update-node.jsx
View file @
075236c5
...
...
@@ -3,7 +3,8 @@ import { Modal, Button, Spin, Form, Input, Radio, Select, Space, TreeSelect, Row
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
import
{
dispatch
}
from
'../../../model'
import
{
getValidString
,
showMessage
}
from
'../../../util'
import
{
getAssetType
,
getValidString
,
showMessage
}
from
'../../../util'
import
{
AssetManageReference
}
from
'../../../util/constant'
const
resourceTypes
=
[
{
key
:
'dataAsset'
,
name
:
'资产'
},
...
...
@@ -69,7 +70,8 @@ const FC = (props) => {
payload
:
{
data
:
(
action
===
'add'
)?
rows
:{...
node
??{},
...
rows
},
params
:
{
parentPath
parentPath
,
dataAssetType
:
getAssetType
(
AssetManageReference
)
}
},
callback
:
data
=>
{
...
...
src/view/Manage/AssetResourceManage/resource-item.jsx
View file @
075236c5
...
...
@@ -49,7 +49,7 @@ const FC = ({ value, onChange, readonly = true, terms = [] }) => {
!
readonly
&&
<
Button
type=
'text'
icon=
{
<
SettingFilled
/>
}
onClick=
{
()
=>
{
app
?.
setGlobalState
?.({
message
:
'data-govern-show-metadata-list-message'
,
data
:
(
typeof
decodeData
===
'string'
)
?
{}
:
decodeData
[
0
]
data
:
(
IsArr
(
decodeData
)
&&
decodeData
.
length
>
0
)
?
decodeData
[
0
]
:
{}
})
}
}
/>
}
...
...
src/view/Manage/AssetResourceManage/tree.jsx
View file @
075236c5
...
...
@@ -142,13 +142,16 @@ const FC = (props) => {
const
menuData
=
useMemo
(()
=>
{
if
(
rightSelectedNode
)
{
if
(
rightSelectedNode
.
level
===
1
)
{
return
[
let
newMenuData
=
[
{
id
:
'edit'
,
title
:
'编辑栏目'
},
{
id
:
'up'
,
title
:
'上移栏目'
},
{
id
:
'down'
,
title
:
'下移栏目'
},
{
id
:
'delete'
,
title
:
'删除栏目'
},
{
id
:
'sync'
,
title
:
'同步Schema'
},
]
{
id
:
'delete'
,
title
:
'删除栏目'
}
]
if
(
rightSelectedNode
.
resourceType
!==
'custom'
&&
rightSelectedNode
.
type
!==
'custom'
)
{
newMenuData
=
[...
newMenuData
,
{
id
:
'sync'
,
title
:
'同步Schema'
},]
}
return
newMenuData
}
else
if
(
rightSelectedNode
.
resourceType
===
'custom'
||
rightSelectedNode
.
type
===
'custom'
)
{
return
[
{
id
:
'up'
,
title
:
'上移目录'
},
...
...
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