Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b749cf8b
authored
2026-01-05 18:05:55 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加数据复制功能
1 parent
2e9ac401
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
src/api/modules/dataDelivery.ts
src/views/data_asset/dataUsage.vue
src/api/modules/dataDelivery.ts
View file @
b749cf8
...
...
@@ -66,6 +66,13 @@ export const queryUseData = (params) => request({
method
:
'get'
});
/** 数据使用中复制 */
export
const
queryCopyData
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_DIGITAL_CONTRACT_URL
}
/contract-use/copy?userGuid=
${
params
.
userGuid
}
`
,
method
:
'get'
});
/** 分发连接器 */
export
const
distributeContract
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_DIGITAL_CONTRACT_URL
}
/contract-use/distribute`
,
...
...
src/views/data_asset/dataUsage.vue
View file @
b749cf8
...
...
@@ -5,6 +5,7 @@ import {
getDataUsePageList
,
deleteDataUse
,
distributeContract
,
queryCopyData
,
}
from
"@/api/modules/dataDelivery"
;
import
{
useValidator
}
from
"@/hooks/useValidator"
;
...
...
@@ -151,6 +152,17 @@ const btnHanldesMap = {
}
});
},
copy
:
(
scope
)
=>
{
queryCopyData
({
userGuid
:
scope
.
row
.
guid
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
proxy
.
$ElMessage
.
success
(
"该数据产品复制成功"
);
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
});
},
download
:
(
scope
)
=>
{
//下载
router
.
push
({
name
:
'usageCatalogDetail'
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment