Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
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
华国豪
CRM
Commits
ae326b4f
Commit
ae326b4f
authored
Mar 26, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
5e58eb6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
56 deletions
+38
-56
job.vue
src/components/statistics/job.vue
+17
-52
marital.vue
src/components/statistics/marital.vue
+11
-2
old.vue
src/components/statistics/old.vue
+10
-2
No files found.
src/components/statistics/job.vue
View file @
ae326b4f
...
@@ -194,59 +194,24 @@ export default {
...
@@ -194,59 +194,24 @@ export default {
GetSexOrderList
(){
GetSexOrderList
(){
this
.
loading
=
true
this
.
loading
=
true
this
.
apipost
(
"/api/Statistic/GetDutyTypeOrderList"
,
{},
res
=>
{
this
.
apipost
(
"/api/Statistic/GetDutyTypeOrderList"
,
{},
res
=>
{
console
.
log
(
"fdff"
,
res
)
this
.
strArr
=
[];
let
data
=
res
.
data
.
data
;
data
.
forEach
(
item
=>
{
this
.
strArr
.
push
(
item
.
DutyTypeName
)
})
this
.
loading
=
false
this
.
loading
=
false
let
contShop
=
res
.
data
.
data
[
0
].
ShopMoney
+
res
.
data
.
data
[
1
].
ShopMoney
+
res
.
data
.
data
[
2
].
ShopMoney
,
if
(
res
.
data
.
resultCode
==
1
){
one
=
res
.
data
.
data
[
0
].
ShopMoney
,
this
.
strArr
=
[];
two
=
res
.
data
.
data
[
1
].
ShopMoney
,
let
data
=
res
.
data
.
data
;
three
=
res
.
data
.
data
[
2
].
ShopMoney
,
var
totalOrder
=
0
;
contNum
=
res
.
data
.
data
[
0
].
OrderCount
+
res
.
data
.
data
[
1
].
OrderCount
+
res
.
data
.
data
[
2
].
OrderCount
,
var
totalMoney
=
0
;
zaiN
=
res
.
data
.
data
[
0
].
OrderCount
,
data
.
forEach
(
item
=>
{
twoN
=
res
.
data
.
data
[
1
].
OrderCount
,
this
.
strArr
.
push
(
item
.
DutyTypeName
);
threeN
=
res
.
data
.
data
[
2
].
OrderCount
;
totalOrder
+=
item
.
OrderCount
;
let
chartData
=
[],
shopChartData
=
[];
totalMoney
+=
item
.
ShopMoney
;
chartData
.
push
(
})
((
zaiN
/
contNum
)
*
100
).
toFixed
(
2
)
data
.
forEach
(
item
=>
{
)
this
.
chartData
.
push
(((
item
.
OrderCount
/
totalOrder
)
*
100
).
toFixed
(
2
));
chartData
.
push
(
})
((
twoN
/
contNum
)
*
100
).
toFixed
(
2
)
this
.
orders
=
res
.
data
.
data
;
)
}
else
{
chartData
.
push
(
this
.
$message
.
error
(
res
.
data
.
message
);
((
threeN
/
contNum
)
*
100
).
toFixed
(
2
)
}
)
shopChartData
.
push
(
{
num
:
Number
(((
one
/
contShop
)
*
100
).
toFixed
(
2
)),
color
:
"#0D2481"
,
text
:
'娱乐'
}
)
shopChartData
.
push
(
{
num
:
Number
(((
two
/
contShop
)
*
100
).
toFixed
(
2
)),
color
:
"#FFA475"
,
text
:
'教育'
}
)
shopChartData
.
push
(
{
num
:
Number
(((
three
/
contShop
)
*
100
).
toFixed
(
2
)),
color
:
"#999"
,
text
:
'服务'
}
)
this
.
chartData
=
chartData
this
.
shopChartData
=
shopChartData
this
.
orders
=
res
.
data
.
data
;
console
.
log
(
"this.chartData"
,
this
.
chartData
)
});
});
}
}
}
}
...
...
src/components/statistics/marital.vue
View file @
ae326b4f
...
@@ -26,8 +26,17 @@
...
@@ -26,8 +26,17 @@
<div>
<div>
累计报名
累计报名
<b>
{{
item
.
AgeCount
}}
</b>
人,关联购物金额
<b>
{{
item
.
AgeCount
}}
</b>
人,关联购物金额
<b>
{{
(
item
.
TotalMoney
/
10000
).
toFixed
(
2
)
}}
万
</b>
,报名均价为:
<b>
<b>
{{
item
.
Unit_Price
.
toFixed
(
0
)
}}
元
</b>
<template
v-if=
"item.TotalMoney"
>
{{
(
item
.
TotalMoney
/
10000
).
toFixed
(
2
)
}}
</
template
>
万
</b>
,报名均价为:
<b>
<
template
v-if=
"item.Unit_Price"
>
{{
item
.
Unit_Price
.
toFixed
(
0
)
}}
</
template
>
元
</b>
</div>
</div>
<div>
<div>
最喜爱的产品
最喜爱的产品
...
...
src/components/statistics/old.vue
View file @
ae326b4f
...
@@ -26,8 +26,16 @@
...
@@ -26,8 +26,16 @@
<div>
<div>
累计报名
累计报名
<b>
{{
item
.
AgeCount
}}
</b>
人,关联购物金额
<b>
{{
item
.
AgeCount
}}
</b>
人,关联购物金额
<b>
{{
(
item
.
TotalMoney
/
10000
).
toFixed
(
2
)
}}
万
</b>
,报名均价为:
<b>
<b>
{{
item
.
Unit_Price
.
toFixed
(
0
)
}}
元
</b>
<template
v-if=
"item.TotalMoney"
>
{{
(
item
.
TotalMoney
/
10000
).
toFixed
(
2
)
}}
</
template
>
万
</b>
,报名均价为:
<b>
<
template
v-if=
"item.Unit_Price"
>
{{
item
.
Unit_Price
.
toFixed
(
0
)
}}
</
template
>
元
</b>
</div>
</div>
<div>
<div>
最喜爱的产品
最喜爱的产品
...
...
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