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
f0254681
Commit
f0254681
authored
Oct 25, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产添加资源
parent
ef505802
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
7 deletions
+32
-7
assetmanage.js
src/model/assetmanage.js
+4
-0
dataassetmanager.js
src/service/dataassetmanager.js
+4
-0
MetadataInfo.jsx
src/view/Manage/AssetManage/Component/MetadataInfo.jsx
+1
-1
add-resources.jsx
src/view/Manage/AssetManage/add-resources.jsx
+0
-0
add-resources.less
src/view/Manage/AssetManage/add-resources.less
+7
-0
table.jsx
src/view/Manage/AssetManage/table.jsx
+16
-6
No files found.
src/model/assetmanage.js
View file @
f0254681
...
...
@@ -172,6 +172,10 @@ export function* loadDataAssets(payload) {
return
yield
call
(
service
.
loadDataAssets
,
payload
);
}
export
function
*
dataAssetAddResources
(
payload
)
{
return
yield
call
(
service
.
dataAssetAddResources
,
payload
);
}
export
function
*
unloadDataAssets
(
payload
)
{
return
yield
call
(
service
.
unloadDataAssets
,
payload
);
}
...
...
src/service/dataassetmanager.js
View file @
f0254681
...
...
@@ -88,6 +88,10 @@ export function loadDataAssets(payload) {
return
PostJSON
(
"/dataassetmanager/dataAssetApi/loadDataAssets"
,
payload
);
}
export
function
dataAssetAddResources
(
payload
)
{
return
PostJSON
(
"/dataassetmanager/dataAssetApi/addResources"
,
payload
);
}
export
function
unloadDataAssets
(
payload
)
{
return
PostJSON
(
"/dataassetmanager/dataAssetApi/unloadDataAssetsByDataAssetIdAndDirId"
,
payload
);
}
...
...
src/view/Manage/AssetManage/Component/MetadataInfo.jsx
View file @
f0254681
...
...
@@ -39,7 +39,7 @@ const ResourceItem = ({ data, config, terms }) => {
{
(
typeof
data
===
'string'
)
?
<
span
style=
{
{
marginRight
:
5
}
}
>
{
highlightSearchContentByTerms
(
data
,
terms
)
}
</
span
>
:
(
IsArr
(
data
)
?
<
span
>
</
span
>
:
(
(
IsArr
(
data
)
&&
data
.
length
>
0
)
?
<
span
>
<
Tooltip
overlayClassName=
'tooltip-common'
title=
{
<
MetadataColumnTooltipTitle
data=
{
data
}
/>
}
...
...
src/view/Manage/AssetManage/add-resources.jsx
0 → 100644
View file @
f0254681
This diff is collapsed.
Click to expand it.
src/view/Manage/AssetManage/add-resources.less
0 → 100644
View file @
f0254681
.add-resources {
.tree {
height: calc(80vh - 30px);
overflow: auto;
}
}
\ No newline at end of file
src/view/Manage/AssetManage/table.jsx
View file @
f0254681
...
...
@@ -15,6 +15,7 @@ import PermissionButton from '../../../util/Component/PermissionButton'
import
PermissionMenuItem
from
'../../../util/Component/PermissionMenuItem'
import
{
FullScreenSvg
,
CancelFullScreenSvg
}
from
'./Component/AssetSvg'
import
AddResources
from
'./add-resources'
import
ImportAsset
from
'./Component/ImportAssetDrawer'
import
ChangeCatalog
from
'./change-catalog'
import
AssetDelete
from
'./Component/AssetDeleteModal'
...
...
@@ -64,10 +65,9 @@ const FC = (props) => {
const
[
keyword
,
setKeyword
]
=
React
.
useState
()
const
[
searchType
,
setSearchType
]
=
React
.
useState
(
'keyword'
)
const
[
resoureTagMap
,
setResourceTagMap
]
=
React
.
useState
()
const
[
add
AssetParams
,
setAddAsset
Params
]
=
React
.
useState
({
const
[
add
ResourcesParams
,
setAddResources
Params
]
=
React
.
useState
({
visible
:
false
,
reference
:
undefined
,
nodeId
:
undefined
item
:
undefined
})
const
[
importAssetParams
,
setImportAssetParams
]
=
React
.
useState
({
visible
:
false
,
...
...
@@ -555,10 +555,9 @@ const FC = (props) => {
}
const
onAddClick
=
()
=>
{
setAdd
Asset
Params
({
setAdd
Resources
Params
({
visible
:
true
,
reference
:
AssetManageReference
,
nodeId
:
node
?.
nodeId
item
:
undefined
,
})
}
...
...
@@ -896,6 +895,17 @@ const FC = (props) => {
/>
</ResizeObserver>
</div>
<AddResources
{...addResourcesParams}
onCancel={(refresh) => {
setAddResourcesParams({
visible: false,
item: undefined
})
refresh && getAssets()
}}
/>
<ImportAsset
{...importAssetParams}
onCancel={() => {
...
...
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