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 9b07d996
authored
Jul 22, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交客流转化
1 parent
8f20ebe3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
9 deletions
src/config/env.development.js
src/views/salesData/flow.vue
src/views/salesData/trend.vue
src/config/env.development.js
View file @
9b07d99
...
@@ -12,7 +12,9 @@ module.exports = {
...
@@ -12,7 +12,9 @@ module.exports = {
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.160:8081', // 本地开发项目地址,
// baseURL: 'http://192.168.1.158:9996',
baseURL
:
'http://192.168.1.152:9996'
,
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/views/salesData/flow.vue
View file @
9b07d99
...
@@ -18,9 +18,10 @@
...
@@ -18,9 +18,10 @@
</div>
</div>
</div>
</div>
<div
class=
"flow-right"
>
<div
class=
"flow-right"
>
<!--
<div
class=
"ranking-value"
>
{{
currentName
}}{{
isBrand
?
'门店'
:
'品牌'
}}
排名
</div>
-->
<div
class=
"ranking-title"
>
<div
class=
"ranking-title"
>
<div
@
click=
"changeRank(1)"
:class=
"isActive == 1 ? 'active' : ''"
>
前5
{{
isBrand
?
'门店'
:
'品牌'
}}
</div>
<div
@
click=
"changeRank(1)"
:class=
"isActive == 1 ? 'active' : ''"
>
{{
currentName
}}
前5
{{
isBrand
?
'门店'
:
'品牌'
}}
</div>
<div
@
click=
"changeRank(2)"
:class=
"isActive == 2 ? 'active' : ''"
>
后5
{{
isBrand
?
'门店'
:
'品牌'
}}
</div>
<div
@
click=
"changeRank(2)"
:class=
"isActive == 2 ? 'active' : ''"
>
{{
currentName
}}
后5
{{
isBrand
?
'门店'
:
'品牌'
}}
</div>
</div>
</div>
<div
class=
"ranking-content"
>
<div
class=
"ranking-content"
>
<div
class=
"ranking-item"
v-for=
"(item, index) in flowData"
:key=
"index"
>
<div
class=
"ranking-item"
v-for=
"(item, index) in flowData"
:key=
"index"
>
...
@@ -93,7 +94,8 @@ export default {
...
@@ -93,7 +94,8 @@ export default {
paramsData
:
{},
paramsData
:
{},
topList
:
[],
topList
:
[],
lastList
:
[],
lastList
:
[],
isBrand
:
false
isBrand
:
false
,
currentName
:
''
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -150,7 +152,7 @@ export default {
...
@@ -150,7 +152,7 @@ export default {
},
},
borderWidth
:
0
borderWidth
:
0
},
},
color
:
[
'
rgba(235, 96, 2, 1)'
,
'rgba(235, 96, 2, .8)'
,
'rgba(235, 96, 2, .6)'
,
'rgba(235, 96, 2, .4)'
,
'rgba(245, 170, 2, .8)
'
],
color
:
[
'
#BF98FF'
,
'#E60115'
,
'#4FA0FF'
,
'#EB6001'
,
'#F5AA01
'
],
series
:
[
series
:
[
{
{
name
:
'漏斗图'
,
name
:
'漏斗图'
,
...
@@ -193,12 +195,12 @@ export default {
...
@@ -193,12 +195,12 @@ export default {
this
.
echartsFunnel
.
on
(
this
.
echartsFunnel
.
on
(
'mouseover'
,
'mouseover'
,
utils
.
debounce
(
data
=>
{
utils
.
debounce
(
data
=>
{
this
.
getSaleTrans
(
this
.
paramsData
,
data
.
data
.
type
)
this
.
getSaleTrans
(
this
.
paramsData
,
data
.
data
.
type
,
data
.
data
.
name
)
}),
}),
1000
/
60
1000
/
60
)
)
},
},
getSaleTrans
(
val
,
queryItem
=
'enter'
)
{
getSaleTrans
(
val
,
queryItem
=
'enter'
,
name
=
'客流'
)
{
const
params
=
{
const
params
=
{
req
:
{
req
:
{
queryItem
:
queryItem
,
queryItem
:
queryItem
,
...
@@ -232,6 +234,7 @@ export default {
...
@@ -232,6 +234,7 @@ export default {
}
}
}
}
this
.
flowData
=
this
.
isActive
==
1
?
this
.
topList
:
this
.
lastList
this
.
flowData
=
this
.
isActive
==
1
?
this
.
topList
:
this
.
lastList
this
.
currentName
=
name
})
})
},
},
// 切换品牌排序
// 切换品牌排序
...
...
src/views/salesData/trend.vue
View file @
9b07d99
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
return
txt
return
txt
}
}
},
},
color
:
[
'#
4FA0FF'
,
'#FF6E76'
,
'#7CFFB2'
,
'#FDF006'
,
'#EB60
01'
],
color
:
[
'#
BF98FF'
,
'#E60115'
,
'#4FA0FF'
,
'#EB6001'
,
'#F5AA
01'
],
grid
:
{
grid
:
{
left
:
'3%'
,
left
:
'3%'
,
right
:
'4%'
,
right
:
'4%'
,
...
@@ -132,7 +132,7 @@ export default {
...
@@ -132,7 +132,7 @@ export default {
type
:
'value'
,
type
:
'value'
,
splitLine
:
{
splitLine
:
{
lineStyle
:
{
lineStyle
:
{
color
:
'rgba(96,98,102,0.2)'
color
:
'rgba(96,98,102,0.2)'
}
}
},
},
splitNumber
:
4
splitNumber
:
4
...
@@ -190,6 +190,14 @@ export default {
...
@@ -190,6 +190,14 @@ export default {
this
.
option
.
series
[
index
].
data
=
this
.
dataList
[
index
].
map
(
item
=>
item
.
num
)
this
.
option
.
series
[
index
].
data
=
this
.
dataList
[
index
].
map
(
item
=>
item
.
num
)
})
})
this
.
echartsTrend
.
setOption
(
this
.
option
)
this
.
echartsTrend
.
setOption
(
this
.
option
)
this
.
chartAction
()
},
chartAction
(
type
)
{
this
.
echartsTrend
.
dispatchAction
({
type
:
type
||
'showTip'
,
seriesIndex
:
0
,
dataIndex
:
this
.
dataList
[
0
].
length
-
1
})
}
}
}
}
}
}
...
...
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