Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
daywrite
bms-vue-obear
Commits
96cd53e2
Commit
96cd53e2
authored
Jun 02, 2019
by
daywrite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售漏斗
parent
57c41511
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
2 deletions
+60
-2
analysisHome.vue
src/components/analysis/analysis/analysisHome.vue
+4
-2
chartSalesFunnel.js
src/components/analysis/analysis/chartSalesFunnel.js
+56
-0
No files found.
src/components/analysis/analysis/analysisHome.vue
View file @
96cd53e2
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<el-row
class=
"header-title"
style=
"height: 100%;"
>
<el-row
class=
"header-title"
style=
"height: 100%;"
>
<el-col>
<el-col>
<span
class=
"title-two"
>
销售漏斗
</span>
<span
class=
"title-two"
>
销售漏斗
</span>
<div
id=
"c
1
"
style=
"height:400px;"
></div>
<div
id=
"c
2
"
style=
"height:400px;"
></div>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
class=
"header-title"
style=
"height: 100%;"
>
<el-row
class=
"header-title"
style=
"height: 100%;"
>
...
@@ -84,6 +84,7 @@ import TimeSearchForm from './timeSearchForm'
...
@@ -84,6 +84,7 @@ import TimeSearchForm from './timeSearchForm'
import
singleRadioTool
from
'../../common/singleRadioTool'
import
singleRadioTool
from
'../../common/singleRadioTool'
import
individualContributions
from
'./individualContributions.js'
import
individualContributions
from
'./individualContributions.js'
import
salesAchievements
from
'./salesAchievements.js'
import
salesAchievements
from
'./salesAchievements.js'
import
chartSalesFunnel
from
'./chartSalesFunnel.js'
import
{
import
{
requestAPI
,
requestAPI
,
api
api
...
@@ -91,7 +92,7 @@ import {
...
@@ -91,7 +92,7 @@ import {
export
default
{
export
default
{
name
:
'caseHome'
,
name
:
'caseHome'
,
mixins
:
[
individualContributions
,
salesAchievements
],
mixins
:
[
individualContributions
,
salesAchievements
,
chartSalesFunnel
],
components
:
{
components
:
{
SearchHeader
,
SearchHeader
,
...
@@ -129,6 +130,7 @@ export default {
...
@@ -129,6 +130,7 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
result
.
countList
=
res
.
counts
this
.
result
.
countList
=
res
.
counts
this
.
c1
(
res
.
chars
[
'individualContributions'
])
this
.
c1
(
res
.
chars
[
'individualContributions'
])
this
.
c2
(
res
.
chars
[
'chartSalesFunnel'
])
this
.
c3
(
'c3-1'
,
res
.
chars
.
salesAchievements
.
child
.
chartSalesArchievementJournalAccount
)
this
.
c3
(
'c3-1'
,
res
.
chars
.
salesAchievements
.
child
.
chartSalesArchievementJournalAccount
)
this
.
c3
(
'c3-2'
,
res
.
chars
.
salesAchievements
.
child
.
chartSalesArchievementProfits
)
this
.
c3
(
'c3-2'
,
res
.
chars
.
salesAchievements
.
child
.
chartSalesArchievementProfits
)
this
.
c3
(
'c3-3'
,
res
.
chars
.
salesAchievements
.
child
.
chartSalesArchievementProjects
)
this
.
c3
(
'c3-3'
,
res
.
chars
.
salesAchievements
.
child
.
chartSalesArchievementProjects
)
...
...
src/components/analysis/analysis/chartSalesFunnel.js
0 → 100644
View file @
96cd53e2
export
default
{
methods
:
{
/* eslint-disable */
c2
(
data
)
{
let
_data
=
data
.
values
Highcharts
.
chart
(
'c2'
,
{
chart
:
{
type
:
'bar'
},
title
:
{
text
:
''
},
xAxis
:
{
categories
:
_data
.
categories
},
yAxis
:
{
min
:
0
,
title
:
{
text
:
''
}
},
legend
:
{
enabled
:
false
},
plotOptions
:
{
series
:
{
stacking
:
'normal'
}
},
tooltip
:
{
formatter
:
function
()
{
let
ret
=
''
let
_x
=
this
.
x
if
(
_x
===
'平均'
)
{
ret
+=
`<b>
${
_x
}
</b><br/>
${
this
.
point
.
stackTotal
}
`
}
else
{
ret
+=
`<b>
${
this
.
series
.
name
}
</b><br/>`
if
(
this
.
series
.
userOptions
.
title
)
{
ret
+=
`项目名称:<b>
${
this
.
series
.
userOptions
.
title
}
</b><br/>`
}
if
(
this
.
series
.
userOptions
.
budget
)
{
ret
+=
`商机金额:
${
this
.
series
.
userOptions
.
budget
}
元<br/>`
}
if
(
this
.
series
.
userOptions
.
bargain_date
)
{
ret
+=
`成交日期:
${
this
.
series
.
userOptions
.
bargain_date
}
<br/>`
}
ret
+=
`商机批注:
${
this
.
series
.
userOptions
.
comment
}
`
}
return
ret
}
},
series
:
_data
.
series
});
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment