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
610e6eb1
authored
2025-02-25 17:58:58 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
0fab513b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
62 deletions
src/views/data_product/productListingDetail.vue
src/views/data_product/productListingDetail.vue
View file @
610e6eb
...
...
@@ -1323,6 +1323,9 @@ onBeforeMount(async () => {
})
}
if
(
detailType
&&
detailType
!=
'add'
)
{
getProductDetail
();
}
if
(
detailType
==
'detail'
)
{
getParamsList
({
dictType
:
"数据产品上架审批合规信息"
,
}).
then
((
res
:
any
)
=>
{
...
...
@@ -1332,23 +1335,22 @@ onBeforeMount(async () => {
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
getProductDetail
();
}
if
(
detailType
==
'detail'
)
{
return
;
//详情不需要调用以下接口
}
await
getTableData
();
if
(
route
.
query
.
exchangeGuid
)
{
getTableInfo
();
}
else
{
getProducts
();
// return; //详情不需要调用以下接口
}
getParentAreaPromise
.
value
=
getAreaData
({
parentId
:
null
}).
then
((
res
:
any
)
=>
{
if
(
res
?.
code
==
proxy
.
$passCode
)
{
parentAreaData
.
value
=
res
.
data
??
[];
return
parentAreaData
.
value
;
if
(
detailType
!=
'detail'
)
{
await
getTableData
();
if
(
route
.
query
.
exchangeGuid
)
{
getTableInfo
();
}
else
{
getProducts
();
}
})
getParentAreaPromise
.
value
=
getAreaData
({
parentId
:
null
}).
then
((
res
:
any
)
=>
{
if
(
res
?.
code
==
proxy
.
$passCode
)
{
parentAreaData
.
value
=
res
.
data
??
[];
return
parentAreaData
.
value
;
}
})
}
// getApproveData();
getParamsDataList
({
dictType
:
'资产类型'
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
...
...
@@ -1386,56 +1388,58 @@ onBeforeMount(async () => {
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
getParamsList
({
dictType
:
"数据资产目录主题名称"
,
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
subjectDomainListData
.
value
=
res
.
data
||
[];
let
item
=
formInfo
.
value
.
items
.
find
(
item
=>
item
.
field
==
'subjectDomain'
);
item
&&
(
item
.
options
=
subjectDomainListData
.
value
);
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
if
(
detailType
!=
'detail'
)
{
getParamsList
({
dictType
:
"数据资产目录主题名称"
,
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
subjectDomainListData
.
value
=
res
.
data
||
[];
let
item
=
formInfo
.
value
.
items
.
find
(
item
=>
item
.
field
==
'subjectDomain'
);
item
&&
(
item
.
options
=
subjectDomainListData
.
value
);
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
getCamundaDeploymentId
(
'10016'
,
userData
.
tenantGuid
,
userData
.
staffGuid
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
deploymentId
.
value
=
res
.
data
;
}
else
{
ElMessage
.
error
(
res
.
msg
);
}
})
// 获取质量评估机构
getSingleList
({
pageIndex
:
-
1
,
pageSize
:
-
1
,
tenantType
:
"12505"
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
qualityEvaluationData
.
value
=
res
.
data
.
records
||
[];
let
item
=
formInfo
.
value
.
items
.
find
(
item
=>
item
.
field
==
'qualityEvaluationInstitution'
);
item
&&
(
item
.
options
=
qualityEvaluationData
.
value
);
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
getCamundaDeploymentId
(
'10016'
,
userData
.
tenantGuid
,
userData
.
staffGuid
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
deploymentId
.
value
=
res
.
data
;
}
else
{
ElMessage
.
error
(
res
.
msg
);
}
})
// 获取质量评估机构
getSingleList
({
pageIndex
:
-
1
,
pageSize
:
-
1
,
tenantType
:
"12505"
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
qualityEvaluationData
.
value
=
res
.
data
.
records
||
[];
let
item
=
formInfo
.
value
.
items
.
find
(
item
=>
item
.
field
==
'qualityEvaluationInstitution'
);
item
&&
(
item
.
options
=
qualityEvaluationData
.
value
);
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
// 获取价值评估机构
getSingleList
({
pageIndex
:
-
1
,
pageSize
:
-
1
,
tenantType
:
"12504"
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
costAssessmentData
.
value
=
res
.
data
.
records
||
[];
let
item
=
formInfo
.
value
.
items
.
find
(
item
=>
item
.
field
==
'costAssessmentInstitution'
);
item
&&
(
item
.
options
=
costAssessmentData
.
value
);
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
if
(
route
.
query
.
exchangeGuid
)
{
getTemplateInfo
();
}
})
// 获取价值评估机构
getSingleList
({
pageIndex
:
-
1
,
pageSize
:
-
1
,
tenantType
:
"12504"
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
costAssessmentData
.
value
=
res
.
data
.
records
||
[];
let
item
=
formInfo
.
value
.
items
.
find
(
item
=>
item
.
field
==
'costAssessmentInstitution'
);
item
&&
(
item
.
options
=
costAssessmentData
.
value
);
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
if
(
detailType
&&
detailType
!=
'redit'
&&
detailType
!=
'edit'
)
{
setTimeout
(()
=>
{
formInfo
.
value
.
items
.
forEach
(
item
=>
{
if
(
item
.
field
==
'coverageAreas'
)
{
item
.
children
[
0
].
visible
=
true
}
})
},
0
);
}
})
if
(
route
.
query
.
exchangeGuid
)
{
getTemplateInfo
();
}
if
(
detailType
&&
detailType
!=
'redit'
&&
detailType
!=
'edit'
)
{
setTimeout
(()
=>
{
formInfo
.
value
.
items
.
forEach
(
item
=>
{
if
(
item
.
field
==
'coverageAreas'
)
{
item
.
children
[
0
].
visible
=
true
}
})
},
0
);
}
})
...
...
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