Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 06a6efe1
authored
Aug 22, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.1.0' of
http://192.168.3.233:8090/h5/glsk-data-view-pd
into v2.1.0
2 parents
20a8ee46
0e2022dd
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
138 additions
and
100 deletions
src/views/operational/OperationalRight.vue
src/views/operational/components/Age.vue
src/views/operational/components/Area.vue
src/views/operational/components/Brand.vue
src/views/operational/components/BuyCar.vue
src/views/operational/components/Category.vue
src/views/operational/components/Mileage.vue
src/views/operational/components/Price.vue
src/views/operational/components/Store.vue
src/views/operational/components/UserTab.vue
src/views/operational/components/ViewPieGroup.vue
src/views/operational/OperationalRight.vue
View file @
06a6efe
...
...
@@ -8,12 +8,12 @@
<
template
>
<div
class=
"right"
>
<div
class=
"top box"
>
<box-title
title=
"
SaaS+增值转化
业务"
></box-title>
<box-title
title=
"
营销增值服务
业务"
></box-title>
<Business></Business>
<Project></Project>
</div>
<div
class=
"bottom"
>
<box-title
title=
"
SaaS订阅业务
总览"
></box-title>
<box-title
title=
"
私域用户池
总览"
></box-title>
<div
class=
"bottom-content"
>
<UserTab></UserTab>
<view-chart></view-chart>
...
...
src/views/operational/components/Age.vue
View file @
06a6efe
...
...
@@ -12,7 +12,7 @@
<span
class=
"title-bg"
>
客户年龄分布
</span>
</div>
<div
class=
"user-container flex"
>
<pie-chart
ref=
"pieChart"
:id=
"chart.id"
:size=
"chart.size"
:list=
"ageData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
@
pieAction=
"pieAction"
></pie-chart>
<pie-chart
ref=
"pieChart"
:id=
"chart.id"
:
colors=
"chart.colors"
:
size=
"chart.size"
:list=
"ageData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
@
pieAction=
"pieAction"
></pie-chart>
<div
class=
"legend-item flex"
>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
...
...
@@ -30,6 +30,7 @@ export default {
id
:
'user-age'
,
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
},
selectData
:
''
,
...
...
src/views/operational/components/Area.vue
View file @
06a6efe
...
...
@@ -13,8 +13,8 @@
<span
class=
"title-bg"
>
区域分布
</span>
</div>
<div
class=
"container flex"
>
<pie-chart
:id=
"chart.id"
:list=
"areaData"
:keys=
"chart.keys"
></pie-chart>
<OperationaLegend
:list=
"areaData"
></OperationaLegend>
<pie-chart
:id=
"chart.id"
:list=
"areaData"
:keys=
"chart.keys"
:colors=
"chart.colors"
></pie-chart>
<OperationaLegend
:list=
"areaData"
:width=
"'3.68vw'"
:colors=
"chart.colors"
></OperationaLegend>
</div>
</div>
</
template
>
...
...
@@ -30,7 +30,8 @@ export default {
return
{
chart
:
{
id
:
'area'
,
keys
:
[
'name'
,
'num'
]
keys
:
[
'name'
,
'num'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
]
},
areaData
:
[]
}
...
...
src/views/operational/components/Brand.vue
View file @
06a6efe
...
...
@@ -13,8 +13,8 @@
<span
class=
"title-bg"
>
品牌分布
</span>
</div>
<div
class=
"container flex"
>
<pie-chart
:id=
"chart.id"
:list=
"brandData"
:keys=
"chart.keys"
></pie-chart>
<OperationaLegend
:list=
"brandData"
></OperationaLegend>
<pie-chart
:id=
"chart.id"
:list=
"brandData"
:keys=
"chart.keys"
:colors=
"chart.colors"
></pie-chart>
<OperationaLegend
:list=
"brandData"
:colors=
"chart.colors"
></OperationaLegend>
</div>
</div>
</
template
>
...
...
@@ -30,7 +30,8 @@ export default {
type
:
'gender'
,
chart
:
{
id
:
'brand'
,
keys
:
[
'name'
,
'num'
]
keys
:
[
'name'
,
'num'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
]
},
brandData
:
[]
}
...
...
src/views/operational/components/BuyCar.vue
View file @
06a6efe
...
...
@@ -12,7 +12,7 @@
<span
class=
"title-bg"
>
购车年限
</span>
</div>
<div
class=
"user-container flex"
>
<pie-chart
@
pieAction=
"pieAction"
:size=
"chart.size"
ref=
"pieChart"
:id=
"chart.id"
:list=
"buyCarData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<pie-chart
@
pieAction=
"pieAction"
:
colors=
"chart.colors"
:
size=
"chart.size"
ref=
"pieChart"
:id=
"chart.id"
:list=
"buyCarData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<div
class=
"legend-item flex"
>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
...
...
@@ -32,6 +32,7 @@ export default {
id
:
'bugCar'
,
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
},
buyCarData
:
[]
...
...
src/views/operational/components/Category.vue
View file @
06a6efe
...
...
@@ -4,8 +4,8 @@
<span
class=
"title-bg"
>
品类业务
</span>
</div>
<div
class=
"category-container flex"
>
<pie-chart
ref=
"pieChartCategory"
:id=
"chart.id"
:list=
"categoryData"
></pie-chart>
<OperationaLegend
class=
"category-legend"
:list=
"categoryData"
:width=
"'4.17vw'"
:height=
"'2.44vh'"
></OperationaLegend>
<pie-chart
ref=
"pieChartCategory"
:id=
"chart.id"
:list=
"categoryData"
:colors=
"chart.colors"
></pie-chart>
<OperationaLegend
class=
"category-legend"
:list=
"categoryData"
:width=
"'4.17vw'"
:height=
"'2.44vh'"
:colors=
"chart.colors"
></OperationaLegend>
</div>
</div>
</
template
>
...
...
@@ -20,7 +20,8 @@ export default {
data
()
{
return
{
chart
:
{
id
:
'category'
id
:
'category'
,
colors
:
[
'#EB6001'
,
'#34AFFF'
,
'#16E193'
,
'#BF98FF'
]
}
}
},
...
...
src/views/operational/components/Mileage.vue
View file @
06a6efe
...
...
@@ -5,7 +5,7 @@
<span
class=
"title-bg"
>
里程分布
</span>
</div>
<div
class=
"user-container flex"
>
<pie-chart
@
pieAction=
"pieAction"
:size=
"chart.size"
ref=
"pieChart"
:id=
"chart.id"
:list=
"mileageData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<pie-chart
@
pieAction=
"pieAction"
:
colors=
"chart.colors"
:
size=
"chart.size"
ref=
"pieChart"
:id=
"chart.id"
:list=
"mileageData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<div
class=
"legend-item flex"
>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
...
...
@@ -25,6 +25,7 @@ export default {
id
:
'mileage'
,
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
},
mileageData
:
[]
...
...
src/views/operational/components/Price.vue
View file @
06a6efe
...
...
@@ -5,7 +5,7 @@
<span
class=
"title-bg"
>
车价占比
</span>
</div>
<div
class=
"user-container flex"
>
<pie-chart
@
pieAction=
"pieAction"
ref=
"pieChart"
:size=
"chart.size"
:id=
"chart.id"
:list=
"priceData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<pie-chart
@
pieAction=
"pieAction"
ref=
"pieChart"
:
colors=
"chart.colors"
:
size=
"chart.size"
:id=
"chart.id"
:list=
"priceData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<div
class=
"legend-item flex"
>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
...
...
@@ -25,6 +25,7 @@ export default {
id
:
'user-price'
,
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
},
priceData
:
[]
...
...
src/views/operational/components/Store.vue
View file @
06a6efe
...
...
@@ -12,7 +12,7 @@
<span
class=
"title-bg"
>
门店类型
</span>
</div>
<div
class=
"container flex"
>
<pie-chart
:id=
"chart.id"
:list=
"storeData"
:keys=
"chart.keys"
></pie-chart>
<pie-chart
:id=
"chart.id"
:list=
"storeData"
:keys=
"chart.keys"
:colors=
"chart.colors"
></pie-chart>
<OperationaLegend
:list=
"storeData"
:colors=
"chart.colors"
></OperationaLegend>
</div>
</div>
...
...
@@ -30,7 +30,7 @@ export default {
chart
:
{
id
:
'store'
,
keys
:
[
'name'
,
'num'
],
colors
:
[
'#
4FA0FF'
,
'#7CFFB2
'
,
'#FDF006'
,
'#EB6001'
]
colors
:
[
'#
34AFFF'
,
'#16E193
'
,
'#FDF006'
,
'#EB6001'
]
},
storeData
:
[]
}
...
...
src/views/operational/components/UserTab.vue
View file @
06a6efe
...
...
@@ -2,29 +2,48 @@
<div
class=
"user-tab"
>
<!--
<StatisticsBox
class=
"user"
:list=
"userData"
></StatisticsBox>
-->
<div
class=
"statistics user"
>
<div
:class=
"['statistics-item',
{'item-active': selectIndex == index
&&
selectIndex
< 3
}]"
v-for=
"(item, index) in userData"
:key=
"index"
:style=
"
{'width': 100 / userData.length + '%'}" @click="clickSaasTab(index)">
<div
:class=
"['statistics-item',
{ 'item-active': selectIndex == index
&&
selectIndex
< 3
}]"
v-for=
"(item, index) in userData"
:key=
"index"
:style=
"
{ width: 100 / userData.length + '%' }"
@click="clickSaasTab(index)"
>
<div
class=
"statistics-top"
>
<div
class=
"statistics-name"
>
{{
item
.
name
}}
</div>
<div
class=
"statistics-price"
><span
class=
"statistics-unit"
v-if=
"item.unitType == 'left'"
>
{{
item
.
unit
}}
</span><span
class=
"statistics-price-number"
>
{{
numAddSymbol
(
item
.
value
)
}}
</span><span
v-if=
"item.unitType == 'right'"
>
{{
item
.
unit
}}
</span></div>
<div
v-if=
"item.rate"
class=
"statistics-top-rate"
>
占比
<span>
{{
item
.
rate
}}
%
</span></div>
<div
class=
"statistics-name"
>
{{
item
.
name
}}
</div>
<div
class=
"statistics-price"
>
<span
class=
"statistics-unit"
v-if=
"item.unitType == 'left'"
>
{{
item
.
unit
}}
</span>
<span
class=
"statistics-price-number"
>
{{
numAddSymbol
(
item
.
value
)
}}
</span>
<span
v-if=
"item.unitType == 'right'"
>
{{
item
.
unit
}}
</span>
</div>
<div
v-if=
"item.rate"
class=
"statistics-top-rate"
>
占比
<span>
{{
item
.
rate
}}
%
</span>
</div>
</div>
<div
class=
"statistics-bottom"
v-if=
"item.bottomLabel || item.bottomType"
>
<template
v-if=
"item.bottomType == 'money'"
>
<span>
{{
item
.
bottomLabel
}}
</span>
<span>
¥
{{
numAddSymbol
(
item
.
bottomValue
)
}}
</span>
<span>
{{
item
.
bottomLabel
}}
</span>
<span>
¥
{{
numAddSymbol
(
item
.
bottomValue
)
}}
</span>
</
template
>
<
template
v-else-if=
"item.bottomType == 'slot'"
>
<slot
:name=
"item.valueName"
:
[
item
.
valueName
]="
item
"
></slot>
</
template
>
<
template
v-else-if=
"item.bottomType == 'ratio'"
>
<div
class=
"ratio"
>
<div
class=
"ratio-left"
>
{{
item
.
ratioLeftLabel
}}
<span
:class=
"item.ratioLeftValue > 0 ? 'positive' : 'negative'"
>
{{
item
.
ratioLeftValue
}}
%
</span></div>
<div
class=
"ratio-right"
>
{{
item
.
ratioRightLabel
}}
<span
:class=
"item.ratioRightValue > 0 ? 'positive' : 'negative'"
>
{{
item
.
ratioRightValue
}}
%
</span></div>
<div
class=
"ratio-left"
>
{{
item
.
ratioLeftLabel
}}
<span
:class=
"item.ratioLeftValue > 0 ? 'positive' : 'negative'"
>
{{
item
.
ratioLeftValue
}}
%
</span>
</div>
<div
class=
"ratio-right"
>
{{
item
.
ratioRightLabel
}}
<span
:class=
"item.ratioRightValue > 0 ? 'positive' : 'negative'"
>
{{
item
.
ratioRightValue
}}
%
</span>
</div>
</div>
</
template
>
<
template
v-else
>
<span>
{{
item
.
bottomLabel
}}
</span>
<span
class=
"bottom-num"
>
{{
numAddSymbol
(
item
.
bottomValue
)
}}
</span>
<span>
{{
item
.
bottomLabel
}}
</span>
<span
class=
"bottom-num"
>
{{
numAddSymbol
(
item
.
bottomValue
)
}}
</span>
</
template
>
</div>
</div>
...
...
@@ -107,7 +126,7 @@ export default {
this
.
selectIndex
=
selectIndex
const
params
=
{
req
:
{
queryItem
}}
this
.
api
.
operational
.
getTrend
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
;
console
.
log
(
res
)
if
(
res
.
code
===
'0'
)
{
const
dataList
=
res
.
data
.
dataList
const
obj
=
{
...
...
@@ -120,6 +139,18 @@ export default {
},
clickSaasTab
(
val
)
{
if
(
val
>
2
)
return
if
(
val
===
this
.
selectIndex
)
return
switch
(
val
)
{
case
0
:
this
.
getTrend
(
'total'
,
'用户数'
)
break
case
1
:
this
.
getTrend
(
'wechat'
,
'企微客户数'
)
break
case
2
:
this
.
getTrend
(
'wechatgroup'
,
'企微群数'
)
break
}
this
.
selectIndex
=
val
}
}
...
...
@@ -131,88 +162,88 @@ export default {
height
:
9.02vh
;
margin
:
1.22vh
0
0.98vh
0
;
.statistics
{
display
:
flex
;
color
:
#fff
;
height
:
9.51vh
;
&-item
{
padding
:
0.49vh
0.53vw
;
margin-right
:
0.56vw
;
background
:
#061422
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
&:last-child
{
margin-right
:
0
;
display
:
flex
;
color
:
#fff
;
height
:
9.51vh
;
&-item
{
padding
:
0.49vh
0.53vw
;
margin-right
:
0.56vw
;
background
:
#061422
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
&:last-child
{
margin-right
:
0
;
}
}
}
&
-top
{
position
:
relative
;
padding-left
:
0.3vw
;
&-rate
{
position
:
absolute
;
right
:
0
;
top
:
0
;
font-size
:
12px
;
color
:
#95ACD9
;
span
{
color
:
#EB6001
;
&
-top
{
position
:
relative
;
padding-left
:
0.3vw
;
&-rate
{
position
:
absolute
;
right
:
0
;
top
:
0
;
font-size
:
12px
;
color
:
#95acd9
;
span
{
color
:
#eb6001
;
}
}
}
}
&
-name
{
font-weight
:
500
;
font-size
:
14px
;
margin-bottom
:
0.4vh
;
height
:
2.22vh
;
}
&
-unit
{
padding-right
:
0.56vw
;
}
&
-price
{
display
:
flex
;
align-items
:
center
;
color
:
#25D6FF
;
font-weight
:
600
;
font-size
:
14px
;
height
:
3.11vh
;
&-number
{
&
-name
{
font-weight
:
500
;
font-size
:
14px
;
margin-bottom
:
0.4vh
;
height
:
2.22vh
;
}
&
-unit
{
padding-right
:
0.56vw
;
font-size
:
20px
;
color
:
#5894FF
;
background-image
:
-webkit-linear-gradient
(
left
,
#24D8FF
,
#7787FF
);
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
}
}
&
-bottom
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
12px
;
color
:
#95ACD9
;
border-top
:
1px
solid
#2A3D72
;
padding
:
0.4vh
0.3vw
0
;
margin-top
:
0.4vh
;
.ratio
{
&
-price
{
display
:
flex
;
width
:
100%
;
justify-content
:
space-between
;
.positive,
.negative{
display
:
inline-block
;
margin-left
:
0.28vw
;
align-items
:
center
;
color
:
#25d6ff
;
font-weight
:
600
;
font-size
:
14px
;
height
:
3.11vh
;
&-number
{
padding-right
:
0.56vw
;
font-size
:
20px
;
color
:
#5894ff
;
background-image
:
-webkit-linear-gradient
(
left
,
#24d8ff
,
#7787ff
);
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
}
.positive
{
color
:
#EB6001
;
}
&
-bottom
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
12px
;
color
:
#95acd9
;
border-top
:
1px
solid
#2a3d72
;
padding
:
0.4vh
0.3vw
0
;
margin-top
:
0.4vh
;
.ratio
{
display
:
flex
;
width
:
100%
;
justify-content
:
space-between
;
.positive,
.negative
{
display
:
inline-block
;
margin-left
:
0.28vw
;
}
.positive
{
color
:
#eb6001
;
}
.negative
{
color
:
#16e193
;
}
}
.
negative
{
color
:
#
16E193
;
.
bottom-num
{
color
:
#
fff
;
}
}
.
bottom-num
{
color
:
#f
ff
;
.
item-active
{
border
:
1px
solid
#24d8
ff
;
}
}
.item-active
{
border
:
1px
solid
#24D8FF
;
}
}
}
</
style
>
src/views/operational/components/ViewPieGroup.vue
View file @
06a6efe
...
...
@@ -35,7 +35,7 @@ export default {
.pie-group
{
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
);
gap
:
0
8px
;
gap
:
0
0.28vw
;
margin
:
0
0.83vw
;
width
:
calc
(
100%
-
1.66vw
);
.box
{
...
...
Write
Preview
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