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 1aba63b2
authored
Aug 21, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
运营数据接口添加
1 parent
bd48eb43
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
200 additions
and
33 deletions
src/api/modules/operational.js
src/mixins/clientMixin.js
src/views/operational/OperationalRight.vue
src/views/operational/components/Analyse.vue
src/views/operational/components/Area.vue
src/views/operational/components/Brand.vue
src/views/operational/components/Business.vue
src/views/operational/components/Category.vue
src/views/operational/components/OperationaLegend.vue
src/views/operational/components/Overview.vue
src/views/operational/components/Project.vue
src/views/operational/components/Store.vue
src/views/operational/components/UserTab.vue
src/views/operational/components/ViewSurface.vue
src/api/modules/operational.js
View file @
1aba63b
// 运营版接口
// 运营版接口
// 企业客户总览接口,获取企业客户总览数据
// 企业客户总览接口---获取企业客户总览数据-区域(省份前5)/品牌(品牌前5)/门店类型分布(门店类型:豪华、合资、新能源、自主品牌)
const
getEnterpriseDistribution
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/overview/getEnterpriseDistribution'
,
params
)
}
// 企业客户总览接口---获取企业客户总览数据(包括:总客户数、新增客户数、留存率、单店产值)
const
getEnterpriseOverview
=
params
=>
{
const
getEnterpriseOverview
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/overview/getEnterpriseOverview'
,
params
)
return
window
.
$HTTP
.
get
(
'dj/overview/getEnterpriseOverview'
,
params
)
}
}
// 企业客户总览接口
// 企业客户总览接口---获取企业客户数据近12个月趋势图(包括:总客户数、新增客户数)
const
getEnterpriseOverviewTrend
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/overview/getEnterpriseOverviewTrend'
,
params
)
}
// 企业客户总览接口---获取路演版本三项新的指标
const
getRoadShowNewIndicators
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/overview/getRoadShowNewIndicators'
,
params
)
}
// 客户数字化业务---门店会员的权益(线索订阅门店数(累计)、线索订阅门店数(当年新增)、活跃使用门店、留存率、自店权益、数字权益、自店权益_产值、数字权益_产值)
const
getMerchantMemberEquity
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/digit/getMerchantMemberEquity'
,
params
)
}
// 客户数字化业务---智慧车管线索订阅(线索订阅门店数(累计)、线索订阅门店数(当年新增)、活跃使用门店、留存率、高危点、高危报警、挽回损失)
const
getSmartCarManageClueSubscription
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/digit/getSmartCarManageClueSubscription'
,
params
)
}
// 客户数字化业务---智慧门店线索订阅(线索订阅门店数(累计)、线索订阅门店数(当年新增)、活跃使用门店、留存率、到店线索、送修线索、续保线索、到店线索_产值、送修线索_产值、续保线索_产值)
const
getSmartMerchantClueSubscription
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/digit/getSmartMerchantClueSubscription'
,
params
)
}
// 私域用户池总览接口---客户价值分析
const
getCustomerValueAnalysis
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/private/getCustomerValueAnalysis'
,
params
)
}
// 私域用户池总览接口---客户年龄分布/车价占比/购车年限分布/里程分布
const
getDistribution
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/private/getDistribution'
,
params
)
}
// 私域用户池总览接口---用户数、企微客户数、企微群数、小程序、个微客户数 趋势图
const
getTrend
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/private/getTrend'
,
params
)
}
// 私域用户池总览接口---客户价值分析--品牌分布/区域分布
const
getValueDistribution
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/private/getValueDistribution'
,
params
)
}
// 私域用户池总览接口---用户数:总数/当年新增,企微客户数:总数/当年新增,企微群数:总数/当年新增,小程序:总数/当年新增,个微客户数:总数/当年新增
const
getoverview
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/private/getoverview'
,
params
)
}
// 营销增值服务业务接口---1.0新车权益销售、1.1新车精品升级、1.2新车线上转化、1.3存量用户众筹(累计展业门店数、当年新增、转化率、客单价、产值)
const
getBusinessType
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/saasAdded/getBusinessType'
,
params
)
}
// 营销增值服务业务接口---累计展业门店数、当年新增门店数、产值_当月、产值_当年、客单价、业务品类_权益类、业务品类_膜类、业务品类_电子类
const
getSaasValueaddedTransformationOverview
=
params
=>
{
return
window
.
$HTTP
.
get
(
'dj/saasAdded/getSaasValueaddedTransformationOverview'
,
params
)
}
export
default
{
export
default
{
getEnterpriseOverview
getEnterpriseDistribution
,
getEnterpriseOverview
,
getEnterpriseOverviewTrend
,
getRoadShowNewIndicators
,
getMerchantMemberEquity
,
getSmartCarManageClueSubscription
,
getSmartMerchantClueSubscription
,
getCustomerValueAnalysis
,
getDistribution
,
getTrend
,
getValueDistribution
,
getoverview
,
getBusinessType
,
getSaasValueaddedTransformationOverview
}
}
src/mixins/clientMixin.js
View file @
1aba63b
...
@@ -11,7 +11,7 @@ export default {
...
@@ -11,7 +11,7 @@ export default {
methods
:
{
methods
:
{
getClientData
()
{
getClientData
()
{
console
.
log
(
22
)
console
.
log
(
22
)
this
.
api
.
customer
.
getEnterpriseDistribution
().
then
(
res
=>
{
this
.
api
.
operational
.
getEnterpriseDistribution
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
res
.
data
.
dataList
.
forEach
(
item
=>
{
res
.
data
.
dataList
.
forEach
(
item
=>
{
if
(
item
.
queryitem
==
'区域排名'
)
this
.
areaData
=
item
.
rankDistributions
if
(
item
.
queryitem
==
'区域排名'
)
this
.
areaData
=
item
.
rankDistributions
...
...
src/views/operational/OperationalRight.vue
View file @
1aba63b
...
@@ -8,12 +8,12 @@
...
@@ -8,12 +8,12 @@
<
template
>
<
template
>
<div
class=
"right"
>
<div
class=
"right"
>
<div
class=
"top box"
>
<div
class=
"top box"
>
<box-title
title=
"
营销增值服务
业务"
></box-title>
<box-title
title=
"
SaaS+增值转化
业务"
></box-title>
<Business></Business>
<Business></Business>
<Project></Project>
<Project></Project>
</div>
</div>
<div
class=
"bottom"
>
<div
class=
"bottom"
>
<box-title
title=
"
私域用户池
总览"
></box-title>
<box-title
title=
"
SaaS订阅业务
总览"
></box-title>
<UserTab></UserTab>
<UserTab></UserTab>
<view-chart></view-chart>
<view-chart></view-chart>
<view-line-group>
<view-line-group>
...
...
src/views/operational/components/Analyse.vue
View file @
1aba63b
...
@@ -35,8 +35,8 @@ export default {
...
@@ -35,8 +35,8 @@ export default {
},
},
methods
:
{
methods
:
{
getCustomerValueAnalysis
()
{
getCustomerValueAnalysis
()
{
this
.
api
.
user
.
getCustomerValueAnalysis
().
then
(
res
=>
{
this
.
api
.
operational
.
getCustomerValueAnalysis
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
=
0
)
{
this
.
analysisList
=
res
.
data
.
dataList
[
0
]
this
.
analysisList
=
res
.
data
.
dataList
[
0
]
}
}
})
})
...
...
src/views/operational/components/Area.vue
View file @
1aba63b
...
@@ -14,14 +14,18 @@
...
@@ -14,14 +14,18 @@
</div>
</div>
<div
class=
"container flex"
>
<div
class=
"container flex"
>
<pie-chart
:id=
"chart.id"
:list=
"areaData"
:keys=
"chart.keys"
></pie-chart>
<pie-chart
:id=
"chart.id"
:list=
"areaData"
:keys=
"chart.keys"
></pie-chart>
<
Legend
:list=
"areaData"
></
Legend>
<
OperationaLegend
:list=
"areaData"
></Operationa
Legend>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
OperationaLegend
from
'./OperationaLegend.vue'
export
default
{
export
default
{
name
:
'Area'
,
name
:
'Area'
,
components
:
{
OperationaLegend
},
data
()
{
data
()
{
return
{
return
{
chart
:
{
chart
:
{
...
...
src/views/operational/components/Brand.vue
View file @
1aba63b
...
@@ -14,13 +14,17 @@
...
@@ -14,13 +14,17 @@
</div>
</div>
<div
class=
"container flex"
>
<div
class=
"container flex"
>
<pie-chart
:id=
"chart.id"
:list=
"brandData"
:keys=
"chart.keys"
></pie-chart>
<pie-chart
:id=
"chart.id"
:list=
"brandData"
:keys=
"chart.keys"
></pie-chart>
<
Legend
:list=
"brandData"
></
Legend>
<
OperationaLegend
:list=
"brandData"
></Operationa
Legend>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
OperationaLegend
from
'./OperationaLegend.vue'
export
default
{
export
default
{
name
:
'Brand'
,
name
:
'Brand'
,
components
:
{
OperationaLegend
},
data
()
{
data
()
{
return
{
return
{
type
:
'gender'
,
type
:
'gender'
,
...
...
src/views/operational/components/Business.vue
View file @
1aba63b
...
@@ -28,33 +28,37 @@ export default {
...
@@ -28,33 +28,37 @@ export default {
name
:
'Business'
,
name
:
'Business'
,
data
()
{
data
()
{
return
{
return
{
businessNum
:
{},
categoryData
:
[],
categoryData
:
[],
list
:
[
list
:
[
{
{
name
:
'累计展业门店数'
,
name
:
'累计展业门店数'
,
value
:
'1'
valueName
:
'totalNum'
,
value
:
0
},
},
{
{
name
:
'当年新增门店数'
,
name
:
'当年新增门店数'
,
value
:
1
valueName
:
'increnum'
,
value
:
0
},
},
{
{
name
:
'客单价'
,
name
:
'客单价'
,
value
:
1
valueName
:
'atv'
,
value
:
0
},
},
{
{
name
:
'当月产值'
,
name
:
'当月产值'
,
value
:
1
valueName
:
'outputValuethismonth'
,
value
:
0
},
},
{
{
name
:
'当年产值'
,
name
:
'当年产值'
,
value
:
1
valueName
:
'outputValuethisyear'
,
value
:
0
}
}
]
]
}
}
},
},
moun
ted
()
{
crea
ted
()
{
this
.
getSaasValueaddedTransformationOverview
()
this
.
getSaasValueaddedTransformationOverview
()
},
},
methods
:
{
methods
:
{
...
@@ -62,21 +66,25 @@ export default {
...
@@ -62,21 +66,25 @@ export default {
return
(
val
*
100
).
toFixed
(
2
)
+
'%'
return
(
val
*
100
).
toFixed
(
2
)
+
'%'
},
},
getSaasValueaddedTransformationOverview
()
{
getSaasValueaddedTransformationOverview
()
{
this
.
api
.
sass
.
getSaasValueaddedTransformationOverview
().
then
(
res
=>
{
this
.
api
.
operational
.
getSaasValueaddedTransformationOverview
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
===
0
)
{
this
.
businessNum
=
res
.
data
.
dataList
[
0
]
const
_data
=
res
.
data
.
dataList
[
0
]
this
.
list
.
forEach
(
item
=>
{
item
.
value
=
_data
[
item
.
valueName
]
})
console
.
log
(
this
.
list
);
this
.
categoryData
=
[
this
.
categoryData
=
[
{
{
name
:
'精品类'
,
name
:
'精品类'
,
value
:
this
.
businessNum
.
equity
value
:
_data
.
equity
},
},
{
{
name
:
'权益类'
,
name
:
'权益类'
,
value
:
this
.
businessNum
.
membrane
value
:
_data
.
membrane
},
},
{
{
name
:
'续保类'
,
name
:
'续保类'
,
value
:
this
.
businessNum
.
electronics
value
:
_data
.
electronics
}
}
]
]
}
}
...
...
src/views/operational/components/Category.vue
View file @
1aba63b
...
@@ -6,15 +6,19 @@
...
@@ -6,15 +6,19 @@
<span>
品类业务
</span>
<span>
品类业务
</span>
</div>
</div>
<div
class=
"category-container flex"
>
<div
class=
"category-container flex"
>
<pie-chart
ref=
"pieChart
"
:id=
"chart.id"
:list=
"categoryData"
height=
"8.29vh
"
></pie-chart>
<pie-chart
ref=
"pieChart
Category"
:id=
"chart.id"
:list=
"categoryData
"
></pie-chart>
<
Legend
class=
"category-legend"
:list=
"categoryData"
></
Legend>
<
OperationaLegend
class=
"category-legend"
:list=
"categoryData"
></Operationa
Legend>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
OperationaLegend
from
'./OperationaLegend.vue'
export
default
{
export
default
{
name
:
'Category'
,
name
:
'Category'
,
components
:
{
OperationaLegend
},
data
()
{
data
()
{
return
{
return
{
chart
:
{
chart
:
{
...
...
src/views/operational/components/OperationaLegend.vue
0 → 100644
View file @
1aba63b
<
template
>
<div
class=
"legend"
>
<div
class=
"legend-item flex"
v-for=
"(item, index) in dataList"
:key=
"index"
>
<div
class=
"icon"
:style=
"
{ background: colors[index] }">
</div>
<div
class=
"item-content"
>
{{
item
.
name
}}
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'OperationaLegend'
,
data
()
{
return
{
dataList
:
this
.
list
}
},
props
:
{
list
:
{
type
:
Array
,
default
:
()
=>
[]
},
colors
:
{
type
:
Array
,
default
:
()
=>
[
'#FF6E76'
,
'#7CFFB2'
,
' #FDF006'
,
'#4FA0FF'
,
'#EB6001'
,
'#BF98FF'
,
'#BF98FF'
,
'#58D9F9'
]
}
},
watch
:
{
list
(
val
)
{
this
.
dataList
=
val
}
},
mounted
()
{},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.legend
{
display
:
flex
;
align-items
:
center
;
flex-wrap
:
wrap
;
width
:
7.7vw
;
height
:
8.54vh
;
margin-left
:
0.42vw
;
.legend-item
{
width
:
3.68vw
;
height
:
2.44vh
;
background
:
#0d133b
;
align-items
:
center
;
font-size
:
7px
;
color
:
#fff
;
box-sizing
:
border-box
;
margin
:
2px
2px
2px
0
;
white-space
:
nowrap
;
.item-content
{
width
:
2.5vw
;
overflow
:
hidden
;
}
.icon
{
width
:
5px
;
height
:
5px
;
background
:
#bf98ff
;
border-radius
:
50%
;
margin
:
4px
;
}
}
}
</
style
>
src/views/operational/components/Overview.vue
View file @
1aba63b
...
@@ -111,21 +111,21 @@ export default {
...
@@ -111,21 +111,21 @@ export default {
return
(
val
*
100
).
toFixed
(
1
)
+
'%'
return
(
val
*
100
).
toFixed
(
1
)
+
'%'
},
},
getMerchantData
()
{
getMerchantData
()
{
this
.
api
.
sass
.
getMerchantData
().
then
(
res
=>
{
this
.
api
.
operational
.
getMerchantMemberEquity
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
merchantData
=
res
.
data
.
dataList
[
0
]
this
.
merchantData
=
res
.
data
.
dataList
[
0
]
}
}
})
})
},
},
getSmartData
()
{
getSmartData
()
{
this
.
api
.
sass
.
getSmartData
().
then
(
res
=>
{
this
.
api
.
operational
.
getSmartCarManageClueSubscription
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
smartData
=
res
.
data
.
dataList
[
0
]
this
.
smartData
=
res
.
data
.
dataList
[
0
]
}
}
})
})
},
},
getSmartClueData
()
{
getSmartClueData
()
{
this
.
api
.
sass
.
getSmartClueData
().
then
(
res
=>
{
this
.
api
.
operational
.
getSmartMerchantClueSubscription
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
smartClueData
=
res
.
data
.
dataList
[
0
]
this
.
smartClueData
=
res
.
data
.
dataList
[
0
]
}
}
...
...
src/views/operational/components/Project.vue
View file @
1aba63b
...
@@ -58,7 +58,7 @@ export default {
...
@@ -58,7 +58,7 @@ export default {
return
this
.
numAddSymbol
(
Math
.
round
(
val
))
return
this
.
numAddSymbol
(
Math
.
round
(
val
))
},
},
getBusinessType
()
{
getBusinessType
()
{
this
.
api
.
sass
.
getBusinessType
().
then
(
res
=>
{
this
.
api
.
operational
.
getBusinessType
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
projectList
=
res
.
data
.
dataList
this
.
projectList
=
res
.
data
.
dataList
}
}
...
...
src/views/operational/components/Store.vue
View file @
1aba63b
...
@@ -6,14 +6,18 @@
...
@@ -6,14 +6,18 @@
</div>
</div>
<div
class=
"container flex"
>
<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"
></pie-chart>
<
Legend
:list=
"storeData"
:colors=
"chart.colors"
></
Legend>
<
OperationaLegend
:list=
"storeData"
:colors=
"chart.colors"
></Operationa
Legend>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
OperationaLegend
from
'./OperationaLegend.vue'
export
default
{
export
default
{
name
:
'Store'
,
name
:
'Store'
,
components
:
{
OperationaLegend
},
data
()
{
data
()
{
return
{
return
{
chart
:
{
chart
:
{
...
...
src/views/operational/components/UserTab.vue
View file @
1aba63b
...
@@ -104,7 +104,7 @@ export default {
...
@@ -104,7 +104,7 @@ export default {
},
},
methods
:
{
methods
:
{
getoverview
()
{
getoverview
()
{
this
.
api
.
user
.
getoverview
().
then
(
res
=>
{
this
.
api
.
operational
.
getoverview
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
dataList
=
res
.
data
.
dataList
[
0
]
this
.
dataList
=
res
.
data
.
dataList
[
0
]
}
}
...
@@ -116,7 +116,7 @@ export default {
...
@@ -116,7 +116,7 @@ export default {
if
(
selectIndex
>
2
)
return
if
(
selectIndex
>
2
)
return
this
.
selectIndex
=
selectIndex
this
.
selectIndex
=
selectIndex
const
params
=
{
req
:
{
queryItem
}
}
const
params
=
{
req
:
{
queryItem
}
}
this
.
api
.
user
.
getTrend
(
params
).
then
(
res
=>
{
this
.
api
.
operational
.
getTrend
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
const
dataList
=
res
.
data
.
dataList
const
dataList
=
res
.
data
.
dataList
const
obj
=
{
const
obj
=
{
...
...
src/views/operational/components/ViewSurface.vue
View file @
1aba63b
...
@@ -30,7 +30,7 @@ export default {
...
@@ -30,7 +30,7 @@ export default {
},
},
methods
:
{
methods
:
{
getEnterpriseOverviewTrend
()
{
getEnterpriseOverviewTrend
()
{
this
.
api
.
customer
.
getEnterpriseOverviewTrend
().
then
(
res
=>
{
this
.
api
.
operational
.
getEnterpriseOverviewTrend
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
dataList
=
res
.
data
.
dataList
this
.
dataList
=
res
.
data
.
dataList
}
}
...
...
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