Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
Overview
Details
Activity
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
姜雷
dcxy-manage-shell
Commits
1d34e885
Commit
1d34e885
authored
May 06, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据首页的数据保留小数
parent
15a06cb2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
chart.vue
src/containers/Dashboard/CustomerConsumption/chart.vue
+4
-1
CustomerRecharge.vue
...ontainers/Dashboard/CustomerRecharge/CustomerRecharge.vue
+1
-1
No files found.
src/containers/Dashboard/CustomerConsumption/chart.vue
View file @
1d34e885
...
@@ -46,6 +46,9 @@ export default {
...
@@ -46,6 +46,9 @@ export default {
.
color
(
'serviceName'
,
[
'#4e82fb'
,
'#fb774e'
,
'#ffc934'
,
'#41bf52'
])
.
color
(
'serviceName'
,
[
'#4e82fb'
,
'#fb774e'
,
'#ffc934'
,
'#41bf52'
])
.
label
(
'payableMoney'
,
{
.
label
(
'payableMoney'
,
{
offset
:
10
,
offset
:
10
,
formatter
:
val
=>
{
return
this
.
$formatPrice
(
Number
(
val
));
},
});
});
this
.
chart
.
render
();
this
.
chart
.
render
();
...
@@ -64,7 +67,7 @@ export default {
...
@@ -64,7 +67,7 @@ export default {
if
(
this
.
totalDom
&&
this
.
countDom
)
{
if
(
this
.
totalDom
&&
this
.
countDom
)
{
let
money
=
let
money
=
this
.
consumeCount
&&
this
.
consumeCount
.
payableMoney
this
.
consumeCount
&&
this
.
consumeCount
.
payableMoney
?
this
.
consumeCount
.
payableMoney
?
this
.
$formatPrice
(
this
.
consumeCount
.
payableMoney
)
:
'0.00'
;
:
'0.00'
;
let
menCount
=
let
menCount
=
this
.
consumeCount
&&
this
.
consumeCount
.
payMen
this
.
consumeCount
&&
this
.
consumeCount
.
payMen
...
...
src/containers/Dashboard/CustomerRecharge/CustomerRecharge.vue
View file @
1d34e885
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
class=
"CustomerRecharge-tooltip"
class=
"CustomerRecharge-tooltip"
style=
"background-color:#4e82fb;"
style=
"background-color:#4e82fb;"
></span>
总充值:
></span>
总充值:
<span
style=
"color:#f00;"
>
{{
rechargeCount
&&
rechargeCount
.
rechargeMoney
?
(
rechargeCount
.
rechargeMoney
).
toFixed
(
2
)
:
'0.00'
}}
元
</span>
<span
style=
"color:#f00;"
>
{{
rechargeCount
&&
rechargeCount
.
rechargeMoney
?
$formatPrice
(
rechargeCount
.
rechargeMoney
)
:
'0.00'
}}
元
</span>
<span
<span
class=
"CustomerRecharge-tooltip"
class=
"CustomerRecharge-tooltip"
style=
"background-color:#26c9a8;"
style=
"background-color:#26c9a8;"
...
...
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