Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
c757d89b
Commit
c757d89b
authored
Dec 27, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
99da97ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
bonus.vue
src/components/work/bonus.vue
+11
-4
commission.vue
src/components/work/commission.vue
+0
-2
formatPrice.js
src/utils/formatPrice.js
+4
-2
No files found.
src/components/work/bonus.vue
View file @
c757d89b
...
...
@@ -35,8 +35,8 @@
</div>
</div>
<div
class=
"row items-center q-my-lg"
>
<div
class=
"col flex q-pl-lg"
>
<img
src=
"../../assets/images/newindex/bonus.png"
alt=
""
>
<div
class=
"col
no-wrap
flex q-pl-lg"
>
<img
src=
"../../assets/images/newindex/bonus.png"
alt=
""
style=
"width:62px;height:62px;"
>
<div
class=
"flex content-between q-pl-lg"
>
<div
class=
"full-width block-name"
>
{{
tab
==
1
?
"月"
:
"年"
}}
度总奖金
</div>
<div
class=
"block-num flex items-baseline"
><span
class=
"block-icon"
>
¥
</span>
...
...
@@ -44,7 +44,7 @@
</div>
</div>
<div
class=
"q-pr-md"
>
<VueApexCharts
width=
"
105
"
height=
"105"
:options=
"chartOptions4"
:series=
"series4"
></VueApexCharts>
<VueApexCharts
width=
"
80%
"
height=
"105"
:options=
"chartOptions4"
:series=
"series4"
></VueApexCharts>
</div>
</div>
<template
v-if=
"tab==1"
>
...
...
@@ -172,6 +172,10 @@
fixed
:
{
enabled
:
false
}
},
legend
:
{
position
:
'right'
,
show
:
true
,
}
},
//查询参数
...
...
@@ -255,6 +259,7 @@
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.bonus
{
...
...
@@ -374,6 +379,7 @@
font-size
:
14px
;
font-weight
:
500
;
color
:
#999999
;
white-space
:nowrap
;
}
}
}
...
...
@@ -394,4 +400,5 @@
color
:
#2961FE
!
important
;
font-size
:
12px
;
}
</
style
>
\ No newline at end of file
</
style
>
src/components/work/commission.vue
View file @
c757d89b
...
...
@@ -282,9 +282,7 @@
getData
()
{
GetSellStatistics
(
this
.
msg
).
then
(
res
=>
{
this
.
commissionData
=
res
.
Data
this
.
series4
=
[
res
.
Data
.
NewSaleMoney
,
res
.
Data
.
RenewSaleMoney
]
console
.
log
(
321
,
this
.
series4
)
})
},
getList
()
{
...
...
src/utils/formatPrice.js
View file @
c757d89b
...
...
@@ -13,12 +13,14 @@ export const formatPrice = (price, type = 1) => {
}
export
const
formatInt
=
(
price
)
=>
{
if
(
price
<
9999
)
{
if
(
price
<
10000
)
{
return
parseInt
(
price
)
}
else
{
}
else
if
(
price
>=
10000
)
{
const
s
=
parseInt
(
price
).
toString
().
slice
(
0
,
-
4
);
const
e
=
parseInt
(
price
).
toString
().
slice
(
-
4
,
-
3
)
return
s
+
'.'
+
e
}
else
{
return
0
}
}
export
const
formatDecimal
=
(
price
=
0
)
=>
{
...
...
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