Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shld-databoard-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘自豪 Rambo Pan
shld-databoard-ui
Commits
899f92ef
Commit
899f92ef
authored
Sep 20, 2024
by
Inner peace
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/240806_pro_release' into 240806_pro_release
parents
c29a46af
984d2638
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
safe-quality.vue
src/module/databoard/databoard/safe-quality.vue
+13
-9
No files found.
src/module/databoard/databoard/safe-quality.vue
View file @
899f92ef
...
...
@@ -494,24 +494,24 @@ export default {
var
car
=
[];
let
carPlan
=
this
.
formatNumber
(
plan
.
car
);
car
.
push
(
carPlan
);
car
.
push
(
this
.
switchZeroToNull
(
carPlan
)
);
let
carCompletion
=
this
.
formatNumber
(
complete
.
car
);
car
.
push
(
carCompletion
);
car
.
push
(
this
.
formatNumber
(
remaining
.
car
));
car
.
push
(
this
.
switchZeroToNull
(
carCompletion
)
);
car
.
push
(
this
.
switchZeroToNull
(
this
.
formatNumber
(
remaining
.
car
)
));
this
.
carPlanRate
=
carPlan
==
0
?
100
:
Math
.
floor
((
100
*
carCompletion
)
/
carPlan
);
var
ship
=
[];
let
shipPlan
=
this
.
formatNumber
(
plan
.
ship
);
ship
.
push
(
shipPlan
);
ship
.
push
(
this
.
switchZeroToNull
(
shipPlan
)
);
let
shipCompletion
=
this
.
formatNumber
(
complete
.
ship
);
ship
.
push
(
shipCompletion
);
ship
.
push
(
this
.
formatNumber
(
remaining
.
ship
));
ship
.
push
(
this
.
switchZeroToNull
(
shipCompletion
)
);
ship
.
push
(
this
.
switchZeroToNull
(
this
.
formatNumber
(
remaining
.
ship
)
));
this
.
shipPlanRate
=
shipPlan
==
0
?
100
:
Math
.
floor
((
shipCompletion
*
100
)
/
shipPlan
);
var
train
=
[];
let
trainPlan
=
this
.
formatNumber
(
plan
.
train
);
train
.
push
(
t
rainPlan
);
train
.
push
(
t
his
.
switchZeroToNull
(
trainPlan
)
);
let
trainCompletion
=
this
.
formatNumber
(
complete
.
train
);
train
.
push
(
t
rainCompletion
);
train
.
push
(
this
.
formatNumber
(
remaining
.
train
));
train
.
push
(
t
his
.
switchZeroToNull
(
trainCompletion
)
);
train
.
push
(
this
.
switchZeroToNull
(
this
.
formatNumber
(
remaining
.
train
)
));
this
.
trainPlanRate
=
trainPlan
==
0
?
100
:
Math
.
floor
((
100
*
trainCompletion
)
/
trainPlan
);
// 渲染
var
seryCar
=
this
.
getcarShipTrainCss
();
...
...
@@ -550,6 +550,10 @@ export default {
// 格式化保留两位小数,返回数字
return
Number
(
conver_num_retain
(
number
).
replaceAll
(
','
,
''
));
},
// 为0时返回null
switchZeroToNull
(
number
){
return
number
===
0
?
null
:
number
;
},
getcarShipTrainCss
(){
return
{
type
:
'bar'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment