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
1236b879
authored
2025-03-06 17:59:28 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据产品上架更新
1 parent
5cc5ea6e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
src/views/data_product/productListingDetail.vue
src/views/data_product/productListingDetail.vue
View file @
1236b87
...
...
@@ -1198,13 +1198,16 @@ const setFormItems = (row: any = null, isDetail = false) => {
else
if
(
item
.
field
==
'qualityEvaluationFileInfo'
)
{
item
.
default
=
row
?
(
row
.
evaluationFile
?
row
.
evaluationFile
:
row
[
item
.
field
]
||
[])
:
[]
}
else
if
(
item
.
field
==
'pricingWay'
){
item
.
default
=
row
.
fixPriceWay
||
row
[
item
.
field
]
||
''
;
}
else
if
(
item
.
field
==
'productPrice'
)
{
item
.
default
=
row
[
item
.
field
]
||
''
;
item
.
visible
=
row
?.
pricingWay
!=
'4'
;
item
.
default
=
row
.
pricingAmount
||
row
[
item
.
field
]
||
''
;
item
.
visible
=
(
row
.
fixPriceWay
||
row
.
pricingWay
)
!=
'4'
;
}
else
if
(
item
.
field
==
'priceUnit'
)
{
item
.
default
=
row
[
item
.
field
]
||
''
;
item
.
visible
=
row
?.
pricingWay
!=
'4'
;
item
.
visible
=
(
row
.
fixPriceWay
||
row
.
pricingWay
)
!=
'4'
;
}
else
{
item
.
default
=
row
[
item
.
field
]
!==
undefined
?
row
[
item
.
field
]
:
(
item
.
default
||
''
);
...
...
@@ -1224,8 +1227,9 @@ const selectChange = async (val, row, info) => {
return
;
}
const
data
=
row
.
options
.
filter
(
o
=>
o
.
damName
==
val
);
const
dataInfo
=
data
.
length
?
data
[
0
]
:
{};
let
coverageArea
=
(
data
.
length
&&
data
[
0
].
coverageArea
)
?
data
[
0
].
coverageArea
:
[];
await
setFormItems
({
...
info
,
coverageArea
:
coverageArea
});
await
setFormItems
({
...
info
,
...
dataInfo
,
coverageArea
:
coverageArea
});
// formInfo.value.items.forEach((item: any) => {
// if (item.field == 'costAssessmentFileInfo') {
// item.default = data?.[0]?.assessmentFile || [];
...
...
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