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
4f0a6382
authored
2025-10-24 17:21:48 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
不需要支持手动输入新建数据产品
1 parent
6b92181e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
32 deletions
src/views/data_asset/registerCatalogCreate.vue
src/views/data_asset/registerCatalogCreate.vue
View file @
4f0a638
...
...
@@ -116,7 +116,7 @@ const baseInfoFormItems = ref([
default
:
''
,
required
:
true
,
options
:
catalogProductList
.
value
,
allowCreate
:
true
,
// allowCreate: true,不需要支持输入
filterable
:
true
,
props
:
{
value
:
'productId'
,
...
...
@@ -151,7 +151,7 @@ const baseInfoFormItems = ref([
},
filterable
:
true
,
clearable
:
true
,
default
:
route
.
query
.
dataSources
==
'1'
?
JSON
.
parse
(
userStore
.
userData
).
tenantGuid
:
JSON
.
parse
(
userStore
.
userData
).
tenantName
,
default
:
route
.
query
.
dataSources
==
'1'
?
JSON
.
parse
(
userStore
.
userData
).
tenantGuid
:
JSON
.
parse
(
userStore
.
userData
).
tenantName
,
required
:
true
,
disabled
:
route
.
query
.
dataSources
==
'1'
?
false
:
true
,
},
...
...
@@ -235,20 +235,20 @@ const baseInfoFormItems = ref([
block
:
false
,
default
:
route
.
query
.
dataSources
==
'1'
?
1
:
2
,
options
:
route
.
query
.
dataSources
==
'1'
?
[{
//如果是授权数据则不能选择其余的
value
:
1
,
label
:
'授权数据'
,
}]
:
[{
value
:
2
,
label
:
'自有数据'
,
},
{
value
:
3
,
label
:
'购买数据'
,
},
{
value
:
4
,
label
:
'其他来源'
,
}],
//dataSourcesList
value
:
1
,
label
:
'授权数据'
,
}]
:
[{
value
:
2
,
label
:
'自有数据'
,
},
{
value
:
3
,
label
:
'购买数据'
,
},
{
value
:
4
,
label
:
'其他来源'
,
}],
//dataSourcesList
required
:
true
,
},
// 是否公共数据
...
...
@@ -452,7 +452,7 @@ const assetDataTableInfo = ref({
let
row
=
scope
.
row
;
router
.
push
({
path
:
route
.
query
.
dataSources
==
'1'
?
'/data-asset/authordata-catalog/import-file-dam'
:
'/data-asset/register-catalog/import-file-dam'
,
// name: "importFileDam",
// name: "importFileDam",
query
:
{
bizGuid
:
row
.
guid
,
name
:
row
.
tableChName
,
...
...
@@ -468,7 +468,7 @@ const assetDataTableInfo = ref({
let
row
=
scope
.
row
;
router
.
push
({
path
:
route
.
query
.
dataSources
==
'1'
?
'/data-asset/authordata-catalog/damTableDataView'
:
'/data-asset/register-catalog/damTableDataView'
,
// name: 'damTableDataView',
// name: 'damTableDataView',
query
:
{
guid
:
row
.
guid
,
name
:
row
.
tableChName
,
...
...
@@ -571,15 +571,14 @@ onBeforeMount(() => {
baseInfoFormItems
.
value
.
forEach
((
item
:
any
)
=>
{
item
.
default
=
detailInfo
.
value
[
item
.
field
]
==
null
?
''
:
detailInfo
.
value
[
item
.
field
];
if
(
item
.
field
==
'damName'
)
{
item
.
default
=
item
.
productCode
;
if
(
detailInfo
.
value
?.
productCode
)
{
let
item
=
catalogProductList
.
value
.
find
(
c
=>
c
.
productId
==
detailInfo
.
value
?.
productCode
);
if
(
!
item
)
{
item
.
default
=
detailInfo
.
value
.
damName
;
}
else
{
item
.
default
=
item
.
productCode
;
}
}
else
{
item
.
default
=
detailInfo
.
value
.
damName
;
!
item
&&
catalogProductList
.
value
.
push
({
productId
:
detailInfo
.
value
?.
productCode
,
productName
:
detailInfo
.
value
?.
damName
,
description
:
detailInfo
.
value
.
propertyDescription
});
}
}
if
(
item
.
field
==
'subjectDomain'
)
{
...
...
@@ -675,9 +674,11 @@ onBeforeMount(() => {
baseInfoFormItems
.
value
[
0
].
options
=
catalogProductList
.
value
;
if
(
detailInfo
.
value
?.
productCode
)
{
let
item
=
catalogProductList
.
value
.
find
(
c
=>
c
.
productId
==
detailInfo
.
value
?.
productCode
);
if
(
!
item
)
{
baseInfoFormItems
.
value
[
0
].
default
=
detailInfo
.
value
.
damName
;
}
!
item
&&
catalogProductList
.
value
.
push
({
productId
:
detailInfo
.
value
?.
productCode
,
productName
:
detailInfo
.
value
?.
damName
,
description
:
detailInfo
.
value
?.
propertyDescription
});
}
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
...
...
@@ -789,8 +790,8 @@ const save = () => {
if
(
res
.
code
==
proxy
.
$passCode
)
{
proxy
.
$ElMessage
.
success
(
'资源目录编辑提交成功'
);
router
.
push
({
// name: 'registerCatalogManagement'
path
:
route
.
query
.
dataSources
==
'1'
?
'/data-asset/authordata-catalog'
:
'/data-asset/register-catalog'
// name: 'registerCatalogManagement'
path
:
route
.
query
.
dataSources
==
'1'
?
'/data-asset/authordata-catalog'
:
'/data-asset/register-catalog'
});
userStore
.
setTabbar
(
userStore
.
tabbar
.
filter
((
tab
:
any
)
=>
tab
.
fullPath
!==
fullPath
));
assetStore
.
setDamCatalogRefresh
(
true
);
...
...
@@ -810,13 +811,13 @@ const save = () => {
}
else
{
params
.
rightMainName
=
rightMainTenantList
.
value
.
find
(
v
=>
v
.
guid
==
params
.
rightMain
)?.
tenantName
;
}
// params.rightMain = JSON.parse(userStore.userData).tenantGuid;
// params.rightMain = JSON.parse(userStore.userData).tenantGuid;
registerCatalogSave
(
params
).
then
((
res
:
any
)
=>
{
fullscreenLoading
.
value
=
false
;
if
(
res
.
code
==
proxy
.
$passCode
)
{
proxy
.
$ElMessage
.
success
(
'资源目录新建提交成功'
);
router
.
push
({
// name: 'registerCatalogManagement'
// name: 'registerCatalogManagement'
path
:
route
.
query
.
dataSources
==
'1'
?
'/data-asset/authordata-catalog'
:
'/data-asset/register-catalog'
});
userStore
.
setTabbar
(
userStore
.
tabbar
.
filter
((
tab
:
any
)
=>
tab
.
fullPath
!==
fullPath
));
...
...
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