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
566b528f
authored
2025-06-26 09:22:09 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据定价更新
1 parent
e7282000
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
src/utils/common.ts
src/views/data_pricing/calculateConfig.vue
src/views/data_pricing/priceModel.vue
src/views/data_quality/qualityRules.vue
src/utils/common.ts
View file @
566b528
...
...
@@ -120,6 +120,9 @@ export const filterCascaderData = (data, field, val, type = 'disabled') => {
}
// 数字千分位 保留两位小数
export
const
changeNum
=
(
num
,
fixed
=
0
,
round
=
false
)
=>
{
if
(
num
===
''
||
num
===
null
||
num
===
undefined
){
return
''
;
}
num
=
parseFloat
(
num
);
if
(
round
)
{
let
parts
=
num
.
toFixed
(
fixed
).
split
(
"."
)
...
...
src/views/data_pricing/calculateConfig.vue
View file @
566b528
...
...
@@ -203,7 +203,7 @@ const getDiseaseData = () => {
const
getDataCatalog
=
()
=>
{
return
getDamCatalogList
({
dataType
:
userData
.
superTubeFlag
==
'Y'
?
"P"
:
"D"
,
sceneType
:
"D"
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
.
records
||
[];
const
data
=
res
.
data
||
[];
typeMap
.
value
.
dataResourceGuid
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
item
=
baseConfigFormItems
.
value
.
find
(
item
=>
item
.
field
==
'dataResourceGuid'
);
if
(
item
)
{
...
...
src/views/data_pricing/priceModel.vue
View file @
566b528
...
...
@@ -730,7 +730,7 @@ const setSignatoryTableInfo = (row, isEdit = false) => {
},
{
label
:
"默认值"
,
field
:
"defaultValue"
,
width
:
180
,
align
:
'right'
,
getName
:
(
scope
)
=>
{
return
scope
.
row
.
defaultValue
!==
null
&&
scope
.
row
.
defaultValue
!==
''
?
changeNum
(
scope
.
row
.
defaultValue
,
2
)
:
'-'
return
changeNum
(
scope
.
row
.
defaultValue
,
2
)
||
'-'
}
},
{
...
...
src/views/data_quality/qualityRules.vue
View file @
566b528
...
...
@@ -667,9 +667,6 @@ const clickCreateGroup = () => {
formItems
.
value
.
map
(
item
=>
{
if
(
item
.
field
===
'orderNum'
)
{
item
.
default
=
null
;
}
else
if
(
item
.
field
===
'damGuid'
){
item
.
options
=
productList
.
value
;
item
.
default
=
''
;
}
else
{
item
.
default
=
""
;
}
...
...
@@ -956,6 +953,7 @@ const getProducts = () => {
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
[];
productList
.
value
=
data
;
formItems
.
value
.
at
(
-
2
).
options
=
data
;
}
})
}
...
...
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