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
ab2f71b2
authored
2025-01-24 17:03:19 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into release-test
2 parents
63a98ad6
4fb866e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
3 deletions
src/api/modules/dataProduct.ts
src/views/data_product/productListingDetail.vue
src/api/modules/dataProduct.ts
View file @
ab2f71b
...
...
@@ -272,3 +272,13 @@ export const filterVal = (val, type) => {
}
}
/***
* 根据guid查询评估文件
* @param {Object} params
* path: /product-grounding/get-file-by-dam-guid
* method get
*/
export
const
getFileByDamGuid
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_API_NEW_PORTAL
}
/product-grounding/get-file-by-dam-guid?damGuid=
${
params
.
damGuid
}
`
,
method
:
'get'
,
})
...
...
src/views/data_product/productListingDetail.vue
View file @
ab2f71b
...
...
@@ -15,11 +15,11 @@ import { changeNum } from '@/utils/common';
import
{
onUploadFilePreview
,
onUploadFileDownload
}
from
'@/api/modules/common'
;
import
{
getAreaData
,
getServiceTenants
,
getSingleList
}
from
"@/api/modules/queryService"
;
import
{
getApproveList
,
getTenantApprove
,
registerApproveAllow
,
registerApproveBackup
,
getParamsList
,
getServiceDetail
}
from
"@/api/modules/dataAsset"
;
import
{
getProductList
,
getAddedProductList
,
getListingDetail
,
listingSave
,
listingUpdate
,
listingSavePortal
,
getParamsDataList
,
listingUpdateGateway
,
getDataExchangeProductList
,
getTemplateFile
,
getListingList
}
from
"@/api/modules/dataProduct"
;
import
{
getProductList
,
get
FileByDamGuid
,
get
AddedProductList
,
getListingDetail
,
listingSave
,
listingUpdate
,
listingSavePortal
,
getParamsDataList
,
listingUpdateGateway
,
getDataExchangeProductList
,
getTemplateFile
,
getListingList
}
from
"@/api/modules/dataProduct"
;
import
{
getMatchDetail
}
from
"@/api/modules/dataFinance"
;
import
{
useValidator
}
from
'@/hooks/useValidator'
;
import
{
getCamundaDeploymentId
}
from
"@/api/modules/workFlowService"
;
import
{
da
}
from
"element-plus/es/locale"
;
const
{
required
}
=
useValidator
();
const
route
=
useRoute
();
...
...
@@ -1192,9 +1192,27 @@ const setFormItems = (row: any = null, isDetail = false) => {
const
selectChange
=
async
(
val
,
row
,
info
)
=>
{
if
(
row
.
field
==
'damName'
)
{
const
data
=
row
.
options
.
filter
(
o
=>
o
.
damName
==
val
);
console
.
log
(
data
,
'-------123----------'
);
let
coverageArea
=
(
data
.
length
&&
data
[
0
].
coverageArea
)
?
data
[
0
].
coverageArea
:
[];
await
setFormItems
({
...
info
,
coverageArea
:
coverageArea
});
const
res
:
any
=
await
getFileByDamGuid
({
damGuid
:
data
[
0
].
damGuid
});
if
(
res
.
code
==
proxy
.
$passCode
)
{
formInfo
.
value
.
items
.
forEach
((
item
:
any
)
=>
{
// if (item.field == 'qualityEvaluationInstitution') {
// item.default = res.data.qualityEvaluationInstitution || [];
// }
// if (item.field == 'costAssessmentInstitution') {
// item.default = res.data.costAssessmentInstitution || [];
// }
if
(
item
.
field
==
'costAssessmentFileInfo'
)
{
item
.
default
=
res
.
data
.
assessmentFile
||
[];
}
if
(
item
.
field
==
'qualityEvaluationFileInfo'
)
{
item
.
default
=
res
.
data
.
evaluationFile
||
[];
}
});
}
formInfo
.
value
.
items
.
at
(
0
).
default
=
val
;
formInfo
.
value
.
items
.
at
(
1
).
default
=
data
.
length
?
data
[
0
].
damType
:
''
;
// formInfo.value.items.at(2).default = data.length ? data[0].subjectDomain : '';
...
...
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