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
db3e259e
authored
2025-08-14 17:50:44 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据定价更新
1 parent
81bcb5df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
src/views/data_pricing/calculateConfig.vue
src/views/data_pricing/calculateConfig.vue
View file @
db3e259
...
...
@@ -274,10 +274,8 @@ const getDetail = () => {
typeMap
.
value
.
modelGuid
.
unshift
(
mtem
);
baseConfigFormItems
.
value
[
0
].
options
.
unshift
(
mtem
);
};
setTimeout
(()
=>
{
getModelInfo
(
flowDetail
.
value
.
modelGuid
);
getDataTypeList
()
},
200
)
getModelInfo
(
flowDetail
.
value
.
modelGuid
);
getDataTypeList
()
}
}).
catch
(()
=>
{
loading
.
value
=
false
;
...
...
@@ -374,7 +372,8 @@ const setBuildInFormItems = (buildList) => {
buildInData
.
value
.
push
({
guid
:
b
.
guid
,
targetName
:
buildName
,
targetValue
:
b
.
defaultValue
||
''
targetValue
:
b
.
defaultValue
||
''
,
isInputParameter
:
b
.
isInputParameter
,
})
baseConfigFormItems
.
value
.
push
({
label
:
buildName
,
...
...
@@ -385,7 +384,8 @@ const setBuildInFormItems = (buildList) => {
inputType
:
'moneyNumber'
,
maxlength
:
18
,
clearable
:
true
,
disabled
:
b
.
isInputParameter
!=
'Y'
disabled
:
b
.
isInputParameter
!=
'Y'
,
required
:
true
});
baseConfigFormRules
.
value
[
buildField
]
=
[
{
required
:
true
,
message
:
`请填写
${
buildName
}
`
,
trigger
:
'blur'
},
...
...
@@ -865,9 +865,15 @@ const getCalculateParams = (baseConfigFormObj, baseConfigFormInfo) => {
}
}
buildInData
.
value
.
map
(
item
=>
{
let
targetValue
=
baseConfigFormInfo
[
`build_
${
item
.
guid
}
`
];
if
(
typeof
targetValue
===
'string'
){
if
(
/^
[
+-
]?\d{1,3}(
,
\d{3})
*
(\.\d{2})?
$/
.
test
(
targetValue
)){
targetValue
=
parseFloat
(
targetValue
.
replace
(
/,/g
,
''
))
}
}
builtInTarget
.
push
({
...
item
,
targetValue
:
baseConfigFormInfo
[
`build_
${
item
.
guid
}
`
],
targetValue
})
})
params
.
dictionaryJson
=
Object
.
keys
(
dictionaryJson
).
length
?
JSON
.
stringify
(
dictionaryJson
)
:
''
;
...
...
@@ -1060,11 +1066,9 @@ onBeforeMount(() => {
getDetail
();
}
else
{
getDataTypeList
();
getModel
()
}
})
onMounted
(()
=>
{
getModel
()
})
</
script
>
<
template
>
...
...
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