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 06262297
authored
Jun 29, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化价值分析
1 parent
01d076ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
70 deletions
src/utils/data.js
src/views/afterSales/analyze.vue
src/views/salesData/flow.vue
src/utils/data.js
View file @
0626229
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-06-23 17:38:33
* @LastEditors: huyue
* @LastEditTime: 2022-06-29 19:
09:07
* @LastEditTime: 2022-06-29 19:
47:34
*/
const
DefaultData
=
{
defaultLineHeight
:
'19.8'
,
...
...
@@ -83,14 +83,14 @@ const Customer = {
valueType
:
{
name
:
'价值类型'
,
value
:
[
{
name
:
'重要价值'
,
value
:
37
},
{
name
:
'重要发展'
,
value
:
37
},
{
name
:
'重要召回'
,
value
:
3
7
},
{
name
:
'重要挽留'
,
value
:
37
},
{
name
:
'一般价值'
,
value
:
37
},
{
name
:
'一般发展'
,
value
:
37
},
{
name
:
'一般召回'
,
value
:
3
7
},
{
name
:
'一般挽留'
,
value
:
37
}
{
name
:
'重要价值'
,
value
:
1
},
{
name
:
'重要发展'
,
value
:
2
},
{
name
:
'重要召回'
,
value
:
3
},
{
name
:
'重要挽留'
,
value
:
4
},
{
name
:
'一般价值'
,
value
:
5
},
{
name
:
'一般发展'
,
value
:
6
},
{
name
:
'一般召回'
,
value
:
7
},
{
name
:
'一般挽留'
,
value
:
8
}
]
}
}
...
...
src/views/afterSales/analyze.vue
View file @
0626229
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-06-23 15:05:21
* @LastEditors: huyue
* @LastEditTime: 2022-06-29 1
1:30:36
* @LastEditTime: 2022-06-29 1
9:47:17
-->
<
template
>
<div>
...
...
@@ -115,6 +115,10 @@ export default {
]
}
this
.
barChart
.
setOption
(
this
.
option
)
// 鼠标划入
this
.
barChart
.
on
(
'mouseover'
,
data
=>
{
this
.
initPieData
(
data
.
name
)
})
},
getValueType
()
{
const
params
=
{
...
...
@@ -137,7 +141,7 @@ export default {
this
.
initPieData
()
})
},
initPieData
()
{
initPieData
(
name
)
{
const
distributionRank
=
this
.
distributionRank
[
this
.
key
]
Object
.
keys
(
distributionRank
).
forEach
(
item
=>
{
this
.
analyzeData
.
push
({
...
...
@@ -161,7 +165,7 @@ export default {
flex
:
1
;
}
.contetn-right
{
width
:
43
%
;
width
:
50
%
;
margin-left
:
8px
;
}
}
...
...
src/views/salesData/flow.vue
View file @
0626229
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-06-23 15:05:21
* @LastEditors: huyue
* @LastEditTime: 2022-06-29 19:
28:03
* @LastEditTime: 2022-06-29 19:
45:27
-->
<
template
>
<div>
...
...
@@ -82,7 +82,6 @@ export default {
],
option
:
{},
echartsFunnel
:
''
,
funnelDom
:
''
,
hasData
:
true
,
paramsData
:
{},
topList
:
[],
...
...
@@ -91,8 +90,7 @@ export default {
}
},
mounted
()
{
this
.
funnelDom
=
document
.
getElementById
(
'flow'
)
this
.
echartsFunnel
=
echarts
.
init
(
this
.
funnelDom
)
this
.
echartsFunnel
=
echarts
.
init
(
document
.
getElementById
(
'flow'
))
// resize
window
.
addEventListener
(
'resize'
,
()
=>
{
this
.
echartsFunnel
.
resize
()
...
...
@@ -207,60 +205,63 @@ export default {
api
=
'storeSaleTrans'
}
this
.
api
.
sales
[
api
](
params
).
then
(
res
=>
{
this
.
topList
=
[
{
id
:
1
,
name
:
'林则徐:苟利国家生死以岂因祸福避趋之'
,
num
:
3323425
},
{
id
:
2
,
name
:
'林则徐'
,
num
:
9999999
},
{
id
:
3
,
name
:
'fg'
,
num
:
33234
},
{
id
:
4
,
name
:
'售后客户价值分析'
,
num
:
33234
},
{
id
:
5
,
name
:
'林则徐:苟利国家生死以岂因祸福避趋之'
,
num
:
33234
}
]
this
.
lastList
=
[
{
id
:
1
,
name
:
'广汇集团BI数据看板-前端-交互'
,
num
:
3323425
},
{
id
:
2
,
name
:
'广汇集团BI数据看板-前端-交互广汇集团BI数据看板-前端-交互'
,
num
:
9999999
},
{
id
:
3
,
name
:
'fsdfasdg'
,
num
:
33234
},
{
id
:
4
,
name
:
'广汇集团BI数据看板-前端-交互'
,
num
:
33234
},
{
id
:
5
,
name
:
'广汇集团BI数据看板-前端-交互'
,
num
:
33234
}
]
const
{
topList
,
lastList
}
=
res
.
data
.
dataList
[
0
]
this
.
topList
=
topList
?
JSON
.
parse
(
topList
)
:
[]
this
.
lastList
=
lastList
?
JSON
.
parse
(
lastList
)
:
[]
// this.topList = [
// {
// id: 1,
// name: '林则徐:苟利国家生死以岂因祸福避趋之',
// num: 3323425
// },
// {
// id: 2,
// name: '林则徐',
// num: 9999999
// },
// {
// id: 3,
// name: 'fg',
// num: 33234
// },
// {
// id: 4,
// name: '售后客户价值分析',
// num: 33234
// },
// {
// id: 5,
// name: '林则徐:苟利国家生死以岂因祸福避趋之',
// num: 33234
// }
// ]
// this.lastList = [
// {
// id: 1,
// name: '广汇集团BI数据看板-前端-交互',
// num: 3323425
// },
// {
// id: 2,
// name: '广汇集团BI数据看板-前端-交互广汇集团BI数据看板-前端-交互',
// num: 9999999
// },
// {
// id: 3,
// name: 'fsdfasdg',
// num: 33234
// },
// {
// id: 4,
// name: '广汇集团BI数据看板-前端-交互',
// num: 33234
// },
// {
// id: 5,
// name: '广汇集团BI数据看板-前端-交互',
// num: 33234
// }
// ]
this
.
flowData
=
this
.
topList
})
},
...
...
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