Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
data-view
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 862a2c61
authored
Jul 04, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_v1.0.0' of
http://192.168.3.233:8090/gh/data-view
into dev_v1.0.0
2 parents
b2095f38
29e4130a
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
114 additions
and
70 deletions
src/assets/css/index.scss
src/components/LineChart.vue
src/components/Marquee.vue
src/components/RanKing.vue
src/components/ViewControl.vue
src/components/ViewTabs.vue
src/config/env.development.js
src/mixins/clientMixin.js
src/mixins/salesMixin.js
src/views/afterSales/analyze.vue
src/views/afterSales/efficient.vue
src/views/afterSales/file.vue
src/views/afterSales/first.vue
src/views/afterSales/keep.vue
src/views/afterSales/lost.vue
src/views/afterSales/mileage.vue
src/views/afterSales/sadayasu.vue
src/views/customer/age.vue
src/views/customer/buyCar.vue
src/views/customer/sex.vue
src/views/salesData/customerCategory.vue
src/views/salesData/enterCategory.vue
src/views/salesData/infoFrom.vue
src/assets/css/index.scss
View file @
862a2c6
...
@@ -77,7 +77,7 @@ img {
...
@@ -77,7 +77,7 @@ img {
.box
{
.box
{
background
:
#1d1c1c
;
background
:
#1d1c1c
;
overflow
:
hidden
;
//
overflow: hidden;
}
}
.inline
{
.inline
{
...
@@ -120,7 +120,7 @@ img {
...
@@ -120,7 +120,7 @@ img {
justify-content
:
center
;
justify-content
:
center
;
img
{
img
{
width
:
20vh
;
max-
width
:
20vh
;
height
:
9
.5vh
;
height
:
9
.5vh
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
src/components/LineChart.vue
View file @
862a2c6
...
@@ -37,6 +37,10 @@ export default {
...
@@ -37,6 +37,10 @@ export default {
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
},
queryType
:
{
type
:
Number
,
default
:
0
},
tooltipFormatterObj
:
{
tooltipFormatterObj
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
{
default
:
()
=>
{
...
@@ -147,7 +151,12 @@ export default {
...
@@ -147,7 +151,12 @@ export default {
},
},
drawLine
()
{
drawLine
()
{
this
.
lineOptions
.
xAxis
.
data
=
this
.
dataList
.
map
(
item
=>
item
.
statDate
)
this
.
lineOptions
.
xAxis
.
data
=
[]
this
.
dataList
.
map
(
e
=>
{
let
month
=
new
Date
(
e
.
statDate
).
getMonth
()
this
.
lineOptions
.
xAxis
.
data
.
push
(
this
.
queryType
==
0
?
`
${
month
==
0
?
'1月'
:
`
${
Number
(
month
)
+
1
}
月`
}
`
:
e
.
statDate
.
split
(
'-'
).
slice
(
1
).
join
(
'-'
))
})
this
.
lineOptions
.
series
[
0
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
num
)
this
.
lineOptions
.
series
[
0
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
num
)
...
...
src/components/Marquee.vue
View file @
862a2c6
...
@@ -22,7 +22,7 @@ export default {
...
@@ -22,7 +22,7 @@ export default {
},
},
delay
:
{
delay
:
{
type
:
Number
,
type
:
Number
,
default
:
0
default
:
100
0
}
}
},
},
data
()
{
data
()
{
...
@@ -66,7 +66,7 @@ export default {
...
@@ -66,7 +66,7 @@ export default {
},
500
)
},
500
)
},
},
reset
()
{
reset
()
{
let
awaitTime
=
(
this
.
speed
+
2
)
*
1000
let
awaitTime
=
(
this
.
speed
+
2
)
*
this
.
delay
this
.
target
=
0
this
.
target
=
0
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
run
()
this
.
run
()
...
...
src/components/RanKing.vue
View file @
862a2c6
...
@@ -63,6 +63,9 @@ export default {
...
@@ -63,6 +63,9 @@ export default {
.brand-num
{
.brand-num
{
color
:
#606266
;
color
:
#606266
;
margin-right
:
0.6vw
;
margin-right
:
0.6vw
;
display
:
inline-block
;
width
:
0.3vw
;
text-align
:
center
;
}
}
.marquee
{
.marquee
{
width
:
80%
;
width
:
80%
;
...
...
src/components/ViewControl.vue
View file @
862a2c6
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
:key="index"
:key="index"
@click="change(index)"
@click="change(index)"
>
>
{{
i
}}
<div
class=
"text text-hide"
>
{{
i
}}
</div>
<template
v-if=
"index == 1"
>
<template
v-if=
"index == 1"
>
<div
class=
"arrow"
></div>
<div
class=
"arrow"
></div>
</
template
>
</
template
>
...
@@ -23,7 +25,9 @@
...
@@ -23,7 +25,9 @@
:class=
"['options-item flex',
{'active':i.active}]"
:class=
"['options-item flex',
{'active':i.active}]"
:key="index"
:key="index"
@click="chooseBrand({i,index})"
@click="chooseBrand({i,index})"
>
{{
i
.
brandName
}}
</div>
>
<div
class=
"text-hide"
>
{{
i
.
brandName
}}
</div>
</div>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
...
@@ -105,8 +109,8 @@ export default {
...
@@ -105,8 +109,8 @@ export default {
let
{
brands
}
=
this
let
{
brands
}
=
this
brands
.
map
(
e
=>
e
.
active
=
false
)
brands
.
map
(
e
=>
e
.
active
=
false
)
brands
[
index
].
active
=
true
brands
[
index
].
active
=
true
this
.
brandsKey
=
Date
.
now
()
//
this.brandsKey = Date.now()
this
.
$refs
.
brands
.
style
.
display
=
'none'
//
this.$refs.brands.style.display = 'none'
this
.
change
(
1
,
i
)
this
.
change
(
1
,
i
)
},
},
}
}
...
@@ -131,6 +135,9 @@ export default {
...
@@ -131,6 +135,9 @@ export default {
.brand
{
.brand
{
padding
:
0
16px
;
padding
:
0
16px
;
border-radius
:
0
4px
4px
0
;
border-radius
:
0
4px
4px
0
;
.text
{
width
:
calc
(
100%
-
20px
);
}
&
:hover
~
.options-box
{
&
:hover
~
.options-box
{
display
:
block
;
display
:
block
;
}
}
...
@@ -201,6 +208,12 @@ export default {
...
@@ -201,6 +208,12 @@ export default {
background-color
:
#eb6001
;
background-color
:
#eb6001
;
}
}
}
}
.active
{
position
:
sticky
;
top
:
0
;
z-index
:
2
;
left
:
0
;
}
}
}
::-webkit-scrollbar
{
::-webkit-scrollbar
{
background-color
:
#383737
;
background-color
:
#383737
;
...
...
src/components/ViewTabs.vue
View file @
862a2c6
...
@@ -8,14 +8,18 @@
...
@@ -8,14 +8,18 @@
<div
class=
"tab-total-box"
>
<div
class=
"tab-total-box"
>
<div
class=
"total-title-box flex"
>
<div
class=
"total-title-box flex"
>
<div
class=
"title inline total"
>
客户总数
</div>
<div
class=
"title inline total"
>
客户总数
</div>
<div
class=
"title inline"
>
昨日
新增
</div>
<div
class=
"title inline"
>
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
新增
</div>
<div
class=
"title inline"
>
上月
到店
</div>
<div
class=
"title inline"
>
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
到店
</div>
</div>
</div>
<div
class=
"total-number-box flex"
>
<div
class=
"total-number-box flex"
>
<transition-number
<transition-number
:num=
"
pageData.total.totalNum
"
:num=
"
test
"
idKey=
"number-total"
idKey=
"number-total"
/>
/>
<!--
<transition-number
:num=
"pageData.total.totalNum"
idKey=
"number-total"
/>
-->
<transition-number
<transition-number
:num=
"pageData.total.incrNum"
:num=
"pageData.total.incrNum"
idKey=
"number-incr"
idKey=
"number-incr"
...
@@ -41,7 +45,7 @@
...
@@ -41,7 +45,7 @@
class="item-total"
class="item-total"
/>
/>
<div
class=
"item-incr flex"
>
<div
class=
"item-incr flex"
>
上月
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
<transition-number
<transition-number
:num=
"pageData[i.key].incrNum"
:num=
"pageData[i.key].incrNum"
:idKey=
"`number-incr-$
{i.key}`"
:idKey=
"`number-incr-$
{i.key}`"
...
@@ -180,7 +184,7 @@ export default {
...
@@ -180,7 +184,7 @@ export default {
const
params
=
{
const
params
=
{
queryItem
,
queryItem
,
queryType
,
queryType
,
queryTime
:
this
.
getNDate
(
-
1
)
queryTime
:
this
.
getNDate
(
-
1
)
}
}
this
.
tabHead
=
this
.
isGroup
?
[
'前5品牌'
,
'后5品牌'
]
:
[
'前5门店'
,
'后5门店'
]
this
.
tabHead
=
this
.
isGroup
?
[
'前5品牌'
,
'后5品牌'
]
:
[
'前5门店'
,
'后5门店'
]
this
.
api
.
overview
[
this
.
isGroup
?
'getBrandOverallbase'
:
'getMerchantOverallbase'
](
params
).
then
(({
code
,
data
})
=>
{
this
.
api
.
overview
[
this
.
isGroup
?
'getBrandOverallbase'
:
'getMerchantOverallbase'
](
params
).
then
(({
code
,
data
})
=>
{
...
@@ -204,7 +208,7 @@ export default {
...
@@ -204,7 +208,7 @@ export default {
},
},
ObjectToArray
(
obj
)
{
ObjectToArray
(
obj
)
{
let
arr
=
[]
let
arr
=
[]
JSON
.
parse
(
obj
).
map
(
e
=>
{
if
(
obj
)
JSON
.
parse
(
obj
).
map
(
e
=>
{
Object
.
keys
(
e
).
map
(
name
=>
arr
.
push
({
name
,
num
:
e
[
name
]
}))
Object
.
keys
(
e
).
map
(
name
=>
arr
.
push
({
name
,
num
:
e
[
name
]
}))
})
})
return
arr
return
arr
...
@@ -247,7 +251,7 @@ export default {
...
@@ -247,7 +251,7 @@ export default {
{
tabType
}
=
this
{
tabType
}
=
this
lineData
.
map
(
e
=>
{
lineData
.
map
(
e
=>
{
let
month
=
new
Date
(
e
.
statDate
).
getMonth
()
let
month
=
new
Date
(
e
.
statDate
).
getMonth
()
xData
.
push
(
queryType
==
0
?
`
${
month
==
0
?
'1月'
:
`
${
Number
(
month
)
+
1
}
月`
}
`
:
e
.
statDate
)
xData
.
push
(
queryType
==
0
?
`
${
month
==
0
?
'1月'
:
`
${
Number
(
month
)
+
1
}
月`
}
`
:
new
Date
(
e
.
statDate
).
format
(
'MM-dd'
)
)
data
.
push
(
e
.
totalNum
)
data
.
push
(
e
.
totalNum
)
})
})
let
options
=
{
let
options
=
{
...
@@ -268,10 +272,11 @@ export default {
...
@@ -268,10 +272,11 @@ export default {
type
:
'category'
,
type
:
'category'
,
axisLabel
:
{
axisLabel
:
{
show
:
true
,
show
:
true
,
interval
:
queryType
==
0
?
0
:
7
,
interval
:
queryType
==
0
?
0
:
6
,
color
:
'#606266'
,
color
:
'#606266'
,
fontSize
:
'0.8em'
,
fontSize
:
'0.8em'
,
margin
:
20
margin
:
20
,
showMaxLabel
:
true
},
},
data
:
xData
,
data
:
xData
,
axisTick
:
{
axisTick
:
{
...
@@ -346,7 +351,7 @@ export default {
...
@@ -346,7 +351,7 @@ export default {
grid-template-columns
:
41.5%
57.5%
;
grid-template-columns
:
41.5%
57.5%
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-bottom
:
0.5vh
;
margin-bottom
:
0.5vh
;
overflow
:
hidden
;
.tab-total-box
{
.tab-total-box
{
height
:
100%
;
height
:
100%
;
padding-left
:
8px
;
padding-left
:
8px
;
...
@@ -434,7 +439,7 @@ export default {
...
@@ -434,7 +439,7 @@ export default {
height
:
100%
;
height
:
100%
;
}
}
.empty-img
{
.empty-img
{
width
:
20vh
;
max-
width
:
20vh
;
height
:
9.5vh
;
height
:
9.5vh
;
}
}
}
}
...
...
src/config/env.development.js
View file @
862a2c6
...
@@ -11,8 +11,8 @@ module.exports = {
...
@@ -11,8 +11,8 @@ module.exports = {
envVersion
:
'trial'
,
envVersion
:
'trial'
,
title
:
'广汇汽车服务'
,
title
:
'广汇汽车服务'
,
request
:
{
request
:
{
baseURL
:
'http://192.168.3.126:8081'
,
// 本地测试项目地址,
//
baseURL: 'http://192.168.3.126:8081', // 本地测试项目地址,
//
baseURL: 'http://192.168.1.152:8081', // 本地开发项目地址,
baseURL
:
'http://192.168.1.152:8081'
,
// 本地开发项目地址,
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/mixins/clientMixin.js
View file @
862a2c6
...
@@ -47,6 +47,15 @@ export default {
...
@@ -47,6 +47,15 @@ export default {
this
.
brandName
=
newVal
.
brand
.
name
this
.
brandName
=
newVal
.
brand
.
name
}
}
this
.
getClientData
()
this
.
getClientData
()
},
pieAction
(
data
)
{
this
.
brandList
=
[]
let
array
=
this
.
distributionRank
&&
this
.
distributionRank
[
data
.
name
]
if
(
array
&&
array
.
length
>
0
)
{
for
(
let
i
of
array
)
{
this
.
brandList
.
push
(
i
&&
Object
.
keys
(
i
)[
0
])
}
}
}
}
}
}
}
}
src/mixins/salesMixin.js
View file @
862a2c6
...
@@ -48,6 +48,15 @@ export default {
...
@@ -48,6 +48,15 @@ export default {
this
.
brandName
=
newVal
.
brand
.
name
this
.
brandName
=
newVal
.
brand
.
name
}
}
this
.
getSalesData
()
this
.
getSalesData
()
},
pieAction
(
data
)
{
this
.
brandList
=
[]
let
array
=
this
.
typeRanking
&&
this
.
typeRanking
[
data
.
name
]
if
(
array
&&
array
.
length
>
0
)
{
for
(
let
i
of
array
)
{
this
.
brandList
.
push
(
i
&&
Object
.
keys
(
i
)[
0
])
}
}
}
}
}
}
}
}
src/views/afterSales/analyze.vue
View file @
862a2c6
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<div>
<div>
<div
class=
"title"
>
售后客户价值分析
</div>
<div
class=
"title"
>
售后客户价值分析
</div>
<template
v-if=
"barData.length > 0"
>
<template
v-if=
"barData.length > 0"
>
<div
class=
"analyze-content"
:style=
"
{ height: height - 5 + 'vh'}">
<div
class=
"analyze-content"
:style=
"
{ height: height - 5 + 'vh'
}">
<div
class=
"content-left bg"
>
<div
class=
"content-left bg"
>
<div
id=
"analyzeBar"
style=
"height: 100%"
></div>
<div
id=
"analyzeBar"
style=
"height: 100%"
></div>
</div>
</div>
...
@@ -47,8 +47,7 @@ export default {
...
@@ -47,8 +47,7 @@ export default {
brandName
:
''
brandName
:
''
}
}
},
},
mounted
()
{
mounted
()
{},
},
methods
:
{
methods
:
{
getChart
()
{
getChart
()
{
this
.
barChart
=
echarts
.
init
(
document
.
getElementById
(
'analyzeBar'
))
this
.
barChart
=
echarts
.
init
(
document
.
getElementById
(
'analyzeBar'
))
...
@@ -131,7 +130,8 @@ export default {
...
@@ -131,7 +130,8 @@ export default {
const
params
=
{
const
params
=
{
req
:
{
req
:
{
queryItem
:
'valueanalyse'
,
queryItem
:
'valueanalyse'
,
queryTime
:
this
.
getCurrentDate
(),
// queryTime: "2022-06-23",
queryTime
:
this
.
getCurrentDate
(),
queryType
:
this
.
watchReportParams
.
reportType
queryType
:
this
.
watchReportParams
.
reportType
}
}
}
}
...
@@ -154,7 +154,7 @@ export default {
...
@@ -154,7 +154,7 @@ export default {
})
})
},
},
initPieData
(
name
)
{
initPieData
(
name
)
{
this
.
analyzeData
=
[]
this
.
analyzeData
=
[]
datas
.
Customer
.
valueType
.
value
.
map
(
item
=>
{
datas
.
Customer
.
valueType
.
value
.
map
(
item
=>
{
if
(
item
.
name
==
name
)
{
if
(
item
.
name
==
name
)
{
const
distributionRank
=
this
.
distributionRank
[
item
.
value
]
const
distributionRank
=
this
.
distributionRank
[
item
.
value
]
...
@@ -180,12 +180,13 @@ export default {
...
@@ -180,12 +180,13 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.title
{
.title
{
padding
:
1vh
0.556vw
;
padding
:
1vh
0.556vw
;
}
}
.analyze-content
{
.analyze-content
{
display
:
flex
;
display
:
flex
;
padding
:
0
8px
1.8vh
;
padding
:
0
8px
1.8vh
;
box-sizing
:
border-box
;
.bg
{
.bg
{
background-color
:
#262525
;
background-color
:
#262525
;
}
}
...
...
src/views/afterSales/efficient.vue
View file @
862a2c6
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div
v-if=
"isEmpty"
class=
"empty"
>
<div
v-if=
"isEmpty"
class=
"empty"
>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
</div>
</div>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"efficientChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
></LineChart>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"efficientChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
:queryType=
"queryType"
></LineChart>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -35,6 +35,7 @@ export default {
...
@@ -35,6 +35,7 @@ export default {
return
{
return
{
isEmpty
:
true
,
isEmpty
:
true
,
storeOrBrandTxt
:
'品牌'
,
storeOrBrandTxt
:
'品牌'
,
queryType
:
0
,
dataList
:
[]
dataList
:
[]
}
}
},
},
...
@@ -42,6 +43,7 @@ export default {
...
@@ -42,6 +43,7 @@ export default {
methods
:
{
methods
:
{
init
(
val
)
{
init
(
val
)
{
this
.
isEmpty
=
true
this
.
isEmpty
=
true
this
.
queryType
=
+
this
.
watchReportParams
.
reportType
var
params
=
{
var
params
=
{
req
:
{
req
:
{
queryItem
:
'valid'
,
queryItem
:
'valid'
,
...
...
src/views/afterSales/file.vue
View file @
862a2c6
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div
v-if=
"isEmpty"
class=
"empty"
>
<div
v-if=
"isEmpty"
class=
"empty"
>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
</div>
</div>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"fileChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
></LineChart>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"fileChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
:queryType=
"queryType"
></LineChart>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -35,6 +35,7 @@ export default {
...
@@ -35,6 +35,7 @@ export default {
return
{
return
{
isEmpty
:
true
,
isEmpty
:
true
,
storeOrBrandTxt
:
'品牌'
,
storeOrBrandTxt
:
'品牌'
,
queryType
:
0
,
dataList
:
[]
dataList
:
[]
}
}
},
},
...
@@ -44,6 +45,7 @@ export default {
...
@@ -44,6 +45,7 @@ export default {
methods
:
{
methods
:
{
init
(
val
)
{
init
(
val
)
{
this
.
isEmpty
=
true
this
.
isEmpty
=
true
this
.
queryType
=
+
this
.
watchReportParams
.
reportType
var
params
=
{
var
params
=
{
req
:
{
req
:
{
queryItem
:
'file'
,
queryItem
:
'file'
,
...
@@ -97,7 +99,7 @@ export default {
...
@@ -97,7 +99,7 @@ export default {
num
:
item
.
num
||
0
,
num
:
item
.
num
||
0
,
hrate
:
item
.
hrate
||
0
,
hrate
:
item
.
hrate
||
0
,
trate
:
item
.
trate
||
0
,
trate
:
item
.
trate
||
0
,
statDate
:
item
.
statDate
.
split
(
'-'
)
,
statDate
:
item
.
statDate
,
topList
:
topList
,
topList
:
topList
,
lastList
:
lastList
lastList
:
lastList
})
})
...
...
src/views/afterSales/first.vue
View file @
862a2c6
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div
v-if=
"isEmpty"
class=
"empty"
>
<div
v-if=
"isEmpty"
class=
"empty"
>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
</div>
</div>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"firstChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
:tooltipFormatterObj=
"tooltipFormatterObj"
></LineChart>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"firstChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
:tooltipFormatterObj=
"tooltipFormatterObj"
:queryType=
"queryType"
></LineChart>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -35,10 +35,11 @@ export default {
...
@@ -35,10 +35,11 @@ export default {
return
{
return
{
isEmpty
:
true
,
isEmpty
:
true
,
storeOrBrandTxt
:
'品牌'
,
storeOrBrandTxt
:
'品牌'
,
queryType
:
0
,
tooltipFormatterObj
:
[
tooltipFormatterObj
:
[
{
{
label
:
'回店率'
,
label
:
'回店率'
,
attrName
:
'
num
'
,
attrName
:
'
rate
'
,
addSymbol
:
'%'
addSymbol
:
'%'
},
},
{
{
...
@@ -59,6 +60,7 @@ export default {
...
@@ -59,6 +60,7 @@ export default {
methods
:
{
methods
:
{
init
(
val
)
{
init
(
val
)
{
this
.
isEmpty
=
true
this
.
isEmpty
=
true
this
.
queryType
=
+
this
.
watchReportParams
.
reportType
var
params
=
{
var
params
=
{
req
:
{
req
:
{
queryItem
:
'first'
,
queryItem
:
'first'
,
...
@@ -110,6 +112,7 @@ export default {
...
@@ -110,6 +112,7 @@ export default {
})
})
this
.
dataList
.
push
({
this
.
dataList
.
push
({
num
:
item
.
num
||
0
,
num
:
item
.
num
||
0
,
rate
:
item
.
rate
||
0
,
hrate
:
item
.
hrate
||
0
,
hrate
:
item
.
hrate
||
0
,
trate
:
item
.
trate
||
0
,
trate
:
item
.
trate
||
0
,
statDate
:
item
.
statDate
,
statDate
:
item
.
statDate
,
...
...
src/views/afterSales/keep.vue
View file @
862a2c6
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div
v-if=
"isEmpty"
class=
"empty"
>
<div
v-if=
"isEmpty"
class=
"empty"
>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
</div>
</div>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"keepChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
></LineChart>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"keepChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
:queryType=
"queryType"
></LineChart>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -35,6 +35,7 @@ export default {
...
@@ -35,6 +35,7 @@ export default {
return
{
return
{
isEmpty
:
true
,
isEmpty
:
true
,
storeOrBrandTxt
:
'品牌'
,
storeOrBrandTxt
:
'品牌'
,
queryType
:
0
,
dataList
:
[]
dataList
:
[]
}
}
},
},
...
@@ -42,6 +43,7 @@ export default {
...
@@ -42,6 +43,7 @@ export default {
methods
:
{
methods
:
{
init
(
val
)
{
init
(
val
)
{
this
.
isEmpty
=
true
this
.
isEmpty
=
true
this
.
queryType
=
+
this
.
watchReportParams
.
reportType
var
params
=
{
var
params
=
{
req
:
{
req
:
{
queryItem
:
'retain'
,
queryItem
:
'retain'
,
...
...
src/views/afterSales/lost.vue
View file @
862a2c6
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div
v-if=
"isEmpty"
class=
"empty"
>
<div
v-if=
"isEmpty"
class=
"empty"
>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
</div>
</div>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"lostChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
></LineChart>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"lostChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
:queryType=
"queryType"
></LineChart>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -35,6 +35,7 @@ export default {
...
@@ -35,6 +35,7 @@ export default {
return
{
return
{
isEmpty
:
true
,
isEmpty
:
true
,
storeOrBrandTxt
:
'品牌'
,
storeOrBrandTxt
:
'品牌'
,
queryType
:
0
,
dataList
:
[]
dataList
:
[]
}
}
},
},
...
@@ -42,6 +43,7 @@ export default {
...
@@ -42,6 +43,7 @@ export default {
methods
:
{
methods
:
{
init
(
val
)
{
init
(
val
)
{
this
.
isEmpty
=
true
this
.
isEmpty
=
true
this
.
queryType
=
+
this
.
watchReportParams
.
reportType
var
params
=
{
var
params
=
{
req
:
{
req
:
{
queryItem
:
'loss'
,
queryItem
:
'loss'
,
...
...
src/views/afterSales/mileage.vue
View file @
862a2c6
...
@@ -63,6 +63,7 @@ export default {
...
@@ -63,6 +63,7 @@ export default {
const
params
=
{
const
params
=
{
req
:
{
req
:
{
queryItem
:
'mileage'
,
queryItem
:
'mileage'
,
queryTime
:
this
.
getCurrentDate
(),
queryTime
:
this
.
getCurrentDate
(),
queryType
:
this
.
watchReportParams
.
reportType
queryType
:
this
.
watchReportParams
.
reportType
}
}
...
@@ -87,12 +88,16 @@ export default {
...
@@ -87,12 +88,16 @@ export default {
},
},
pieAction
(
data
)
{
pieAction
(
data
)
{
let
distributionRank
=
this
.
distributionRank
[
data
.
name
]
let
distributionRank
=
this
.
distributionRank
[
data
.
name
]
this
.
rankingData
=
[]
for
(
const
key
in
distributionRank
)
{
for
(
const
key
in
distributionRank
)
{
this
.
rankingData
.
push
({
this
.
rankingData
.
push
({
brand
:
key
,
brand
:
key
,
value
:
distributionRank
[
key
]
value
:
distributionRank
[
key
]
})
})
}
}
this
.
rankingData
.
sort
(
function
(
a
,
b
)
{
return
b
.
value
-
a
.
value
//倒序
})
},
},
init
(
newVal
)
{
init
(
newVal
)
{
this
.
isBrand
=
false
this
.
isBrand
=
false
...
@@ -146,6 +151,9 @@ export default {
...
@@ -146,6 +151,9 @@ export default {
.brand-num
{
.brand-num
{
color
:
#606266
;
color
:
#606266
;
margin-right
:
8px
;
margin-right
:
8px
;
display
:
inline-block
;
width
:
0.3vw
;
text-align
:
center
;
}
}
.marquee
{
.marquee
{
width
:
4.9vw
;
width
:
4.9vw
;
...
...
src/views/afterSales/sadayasu.vue
View file @
862a2c6
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div
v-if=
"isEmpty"
class=
"empty"
>
<div
v-if=
"isEmpty"
class=
"empty"
>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
</div>
</div>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"sadayasuChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
:tooltipFormatterObj=
"tooltipFormatterObj"
></LineChart>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"sadayasuChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
:tooltipFormatterObj=
"tooltipFormatterObj"
:queryType=
"queryType"
></LineChart>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -35,10 +35,11 @@ export default {
...
@@ -35,10 +35,11 @@ export default {
return
{
return
{
isEmpty
:
true
,
isEmpty
:
true
,
storeOrBrandTxt
:
'品牌'
,
storeOrBrandTxt
:
'品牌'
,
queryType
:
0
,
tooltipFormatterObj
:
[
tooltipFormatterObj
:
[
{
{
label
:
'回店率'
,
label
:
'回店率'
,
attrName
:
'
num
'
,
attrName
:
'
rate
'
,
addSymbol
:
'%'
addSymbol
:
'%'
},
},
{
{
...
@@ -59,6 +60,7 @@ export default {
...
@@ -59,6 +60,7 @@ export default {
methods
:
{
methods
:
{
init
(
val
)
{
init
(
val
)
{
this
.
isEmpty
=
true
this
.
isEmpty
=
true
this
.
queryType
=
+
this
.
watchReportParams
.
reportType
var
params
=
{
var
params
=
{
req
:
{
req
:
{
queryItem
:
'regular'
,
queryItem
:
'regular'
,
...
@@ -110,6 +112,7 @@ export default {
...
@@ -110,6 +112,7 @@ export default {
})
})
this
.
dataList
.
push
({
this
.
dataList
.
push
({
num
:
item
.
num
||
0
,
num
:
item
.
num
||
0
,
rate
:
item
.
rate
||
0
,
hrate
:
item
.
hrate
||
0
,
hrate
:
item
.
hrate
||
0
,
trate
:
item
.
trate
||
0
,
trate
:
item
.
trate
||
0
,
statDate
:
item
.
statDate
,
statDate
:
item
.
statDate
,
...
...
src/views/customer/age.vue
View file @
862a2c6
...
@@ -35,11 +35,6 @@ export default {
...
@@ -35,11 +35,6 @@ export default {
id
:
'age-pie'
id
:
'age-pie'
}
}
}
}
},
methods
:
{
pieAction
(
data
)
{
this
.
brandList
=
this
.
distributionRank
&&
this
.
distributionRank
[
data
.
name
]
&&
Object
.
keys
(
this
.
distributionRank
[
data
.
name
])
}
}
}
}
}
</
script
>
</
script
>
src/views/customer/buyCar.vue
View file @
862a2c6
...
@@ -35,11 +35,6 @@ export default {
...
@@ -35,11 +35,6 @@ export default {
id
:
'car-pie'
id
:
'car-pie'
}
}
}
}
},
methods
:
{
pieAction
(
data
)
{
this
.
brandList
=
this
.
distributionRank
&&
this
.
distributionRank
[
data
.
name
]
&&
Object
.
keys
(
this
.
distributionRank
[
data
.
name
])
}
}
}
}
}
</
script
>
</
script
>
src/views/customer/sex.vue
View file @
862a2c6
...
@@ -35,15 +35,6 @@ export default {
...
@@ -35,15 +35,6 @@ export default {
colors
:
[
'#EB6001'
,
'#BF98FF'
,
'#FF6E76'
]
colors
:
[
'#EB6001'
,
'#BF98FF'
,
'#FF6E76'
]
}
}
}
}
},
methods
:
{
pieAction
(
data
)
{
this
.
brandList
=
[]
let
array
=
this
.
distributionRank
&&
this
.
distributionRank
[
data
.
name
]
for
(
let
i
of
array
)
{
this
.
brandList
.
push
(
Object
.
keys
(
i
)[
0
])
}
}
}
}
}
}
</
script
>
</
script
>
src/views/salesData/customerCategory.vue
View file @
862a2c6
...
@@ -37,9 +37,11 @@ export default {
...
@@ -37,9 +37,11 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
pieAction
(
data
)
{
// pieAction(data) {
this
.
brandList
=
this
.
typeRanking
&&
this
.
typeRanking
[
data
.
name
]
&&
Object
.
keys
(
this
.
typeRanking
[
data
.
name
])
// console.log(data,'客户级别')
}
// console.log(this.typeRanking)
// this.brandList = this.typeRanking&&this.typeRanking[data.name]&&Object.keys(this.typeRanking[data.name])
// }
}
}
}
}
</
script
>
</
script
>
src/views/salesData/enterCategory.vue
View file @
862a2c6
...
@@ -37,10 +37,5 @@ export default {
...
@@ -37,10 +37,5 @@ export default {
}
}
}
}
},
},
methods
:
{
pieAction
(
data
)
{
this
.
brandList
=
this
.
typeRanking
&&
this
.
typeRanking
[
data
.
name
]
&&
Object
.
keys
(
this
.
typeRanking
[
data
.
name
])
}
}
}
}
</
script
>
</
script
>
src/views/salesData/infoFrom.vue
View file @
862a2c6
...
@@ -36,10 +36,5 @@ export default {
...
@@ -36,10 +36,5 @@ export default {
}
}
}
}
},
},
methods
:
{
pieAction
(
data
)
{
this
.
brandList
=
this
.
typeRanking
&&
this
.
typeRanking
[
data
.
name
]
&&
Object
.
keys
(
this
.
typeRanking
[
data
.
name
])
}
}
}
}
</
script
>
</
script
>
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