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
3b5b10ff
authored
2025-08-14 15:56:51 +0800
by
lxs
Committed by
lihua
2025-10-13 11:28:58 +0800
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据定价更新
1 parent
8cd758dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
src/views/data_pricing/calculateConfig.vue
src/views/data_pricing/calculateConfig.vue
View file @
3b5b10f
...
...
@@ -643,6 +643,7 @@ const getResourceInfo = (sGuid) => {
}
}
// 需求表字段匹配
const
matchTableFields
=
(
rData
,
tData
)
=>
{
rData
.
dataFields
.
map
(
t
=>
{
const
match
=
tData
.
find
(
d
=>
d
.
chName
==
t
.
fieldName
);
...
...
@@ -659,9 +660,12 @@ const matchTableFields = (rData, tData) => {
const
setTableRowData
=
(
dGuid
,
rIndex
)
=>
{
let
rowData
=
tableData
.
value
[
rIndex
];
if
(
guid
&&
dGuid
==
rowData
.
dataTableGuid
)
{
const
pricingDemandField
=
detailDataTable
?.
pricingDemandFieldRQVOS
||
[];
let
rowData
=
tableData
.
value
[
rIndex
],
currDataTableGuid
=
rowData
.
dataTableGuid
;
const
detailDataTable
=
(
flowDetail
.
value
.
dataPricingDemandmatchingRQVOS
||
[]).
find
(
f
=>
f
.
dataTableGuid
==
dGuid
);
detailDataTable
&&
(
currDataTableGuid
=
detailDataTable
.
dataTableGuid
);
if
(
guid
&&
detailDataTable
&&
dGuid
==
detailDataTable
.
dataTableGuid
)
{
const
sourceTableField
=
flowDetail
.
value
.
dataPricingDemandmatchingRQVOS
?.
find
(
s
=>
dGuid
==
s
.
dataTableGuid
);
const
pricingDemandField
=
sourceTableField
?.
pricingDemandFieldRQVOS
||
[];
rowData
.
dataFields
.
map
(
f
=>
{
f
.
chName
=
pricingDemandField
.
find
(
s
=>
f
.
guid
==
s
.
guid
)?.
chName
||
''
})
...
...
@@ -700,7 +704,7 @@ const setTableRowData = (dGuid, rIndex, setRow = true) => {
t
.
damFieldTable
=
JSON
.
parse
(
JSON
.
stringify
(
damFieldOptions
));
})
// 匹配
if
(
!
guid
||
(
guid
&&
(
dGuid
!=
rowData
.
d
ataTableGuid
||
currModelGuid
.
value
!=
flowDetail
.
value
.
modelGuid
)))
{
if
(
!
guid
||
(
guid
&&
(
dGuid
!=
currD
ataTableGuid
||
currModelGuid
.
value
!=
flowDetail
.
value
.
modelGuid
)))
{
matchTableFields
(
rowData
,
damTableField
);
}
}
else
{
...
...
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