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 ef2ed7f4
authored
Sep 08, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
7189c637
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
19 deletions
src/views/internal/components/BarChart.vue
src/views/internal/components/ViewClue.vue
src/views/internal/components/BarChart.vue
View file @
ef2ed7f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-07 14:01:42
* @Date: 2023-07-07 14:01:42
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-09-0
7 17:32:33
* @LastEditTime: 2023-09-0
8 14:40:35
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -50,6 +50,9 @@ export default {
...
@@ -50,6 +50,9 @@ export default {
label
:
{
label
:
{
type
:
String
,
type
:
String
,
default
:
'statMonth'
default
:
'statMonth'
},
valueName
:
{
type
:
String
}
}
},
},
data
()
{
data
()
{
...
@@ -80,7 +83,7 @@ export default {
...
@@ -80,7 +83,7 @@ export default {
if
(
dataList
&&
dataList
.
length
)
{
if
(
dataList
&&
dataList
.
length
)
{
console
.
log
(
this
.
dataList
)
console
.
log
(
this
.
dataList
)
this
.
barOptions
.
xAxis
.
data
=
dataList
.
map
(
item
=>
item
[
this
.
label
])
this
.
barOptions
.
xAxis
.
data
=
dataList
.
map
(
item
=>
item
[
this
.
label
])
this
.
barOptions
.
series
[
0
].
data
=
dataList
.
map
(
item
=>
item
[
this
.
tooltipFormatterObj
.
attr
Name
])
this
.
barOptions
.
series
[
0
].
data
=
dataList
.
map
(
item
=>
item
[
this
.
value
Name
])
this
[
this
.
domId
].
setOption
(
this
.
barOptions
)
this
[
this
.
domId
].
setOption
(
this
.
barOptions
)
}
}
},
},
...
...
src/views/internal/components/ViewClue.vue
View file @
ef2ed7f
...
@@ -2,24 +2,24 @@
...
@@ -2,24 +2,24 @@
<div
class=
"clue"
>
<div
class=
"clue"
>
<div
class=
"trend-box"
>
<div
class=
"trend-box"
>
<div
class=
"patch-title"
>
注册门店趋势
</div>
<div
class=
"patch-title"
>
注册门店趋势
</div>
<BarChart
ref=
"signChartRef"
domId=
"signChart"
:height=
"chartHeight"
:colorList=
"colorList"
:tooltipFormatterObj=
"tooltips
"
></BarChart>
<BarChart
ref=
"signChartRef"
domId=
"signChart"
:height=
"chartHeight"
valueName=
"activeNum"
:colorList=
"colorList
"
></BarChart>
</div>
</div>
<div
class=
"trend-box"
>
<div
class=
"trend-box"
>
<div
class=
"patch-title"
>
活跃门店趋势
</div>
<div
class=
"patch-title"
>
活跃门店趋势
</div>
<BarChart
ref=
"dynamicChartRef"
domId=
"dynamicChart"
:height=
"chartHeight"
:colorList=
"greenColorList"
:tooltipFormatterObj=
"tooltips
"
></BarChart>
<BarChart
ref=
"dynamicChartRef"
domId=
"dynamicChart"
:height=
"chartHeight"
valueName=
"registerNum"
:colorList=
"greenColorList
"
></BarChart>
</div>
</div>
<div
class=
"trend-box"
>
<div
class=
"trend-box"
>
<div
class=
"patch-title"
>
月收入趋势
</div>
<div
class=
"patch-title"
>
月收入趋势
</div>
<LineChart
ref=
"monthIncomeChartRef"
domId=
"monthIncomeChart"
:height=
"chartHeight"
:tooltipFormatterObj=
"tooltips"
:valName=
"tooltips.attrName
"
></LineChart>
<LineChart
ref=
"monthIncomeChartRef"
domId=
"monthIncomeChart"
:height=
"chartHeight"
valName=
"output
"
></LineChart>
</div>
</div>
<div
class=
"trend-box"
>
<div
class=
"trend-box"
>
<div
class=
"patch-title"
>
销售渠道趋势
</div>
<div
class=
"patch-title"
>
销售渠道趋势
</div>
<BarChart
ref=
"saleChartRef"
domId=
"saleChart"
:height=
"chartHeight"
:colorList=
"colorList"
:tooltipFormatterObj=
"tooltips
"
></BarChart>
<BarChart
ref=
"saleChartRef"
domId=
"saleChart"
:height=
"chartHeight"
:colorList=
"colorList"
valueName=
"channel
"
></BarChart>
</div>
</div>
<div
class=
"trend-box"
>
<div
class=
"trend-box"
>
<div
class=
"patch-title"
>
按年统计客户销售金额的合理性-
<PriceSwitch
class=
"rationality"
unit=
""
:selectList=
"selectList"
></PriceSwitch></div>
<div
class=
"patch-title"
>
按年统计客户销售金额的合理性-
<PriceSwitch
class=
"rationality"
unit=
""
:selectList=
"selectList"
@
selectPrice=
"selectPrice"
></PriceSwitch></div>
<div
class=
"rationality-text"
>
收入占比:64.89%
<PriceSwitch
style=
"display: inline-block;"
:selectList=
"rationalityPriceList"
></PriceSwitch></div>
<div
class=
"rationality-text"
>
收入占比:64.89%
<PriceSwitch
style=
"display: inline-block;"
:selectList=
"rationalityPriceList"
></PriceSwitch></div>
<BarChart
ref=
"rationalityChartRef"
domId=
"rationalityChart"
height=
"13.99vh"
label=
"statDate"
:colorList=
"greenColorList"
:tooltipFormatterObj=
"salesTooltips
"
></BarChart>
<BarChart
ref=
"rationalityChartRef"
domId=
"rationalityChart"
height=
"13.99vh"
label=
"statDate"
:colorList=
"greenColorList"
valueName=
"num
"
></BarChart>
</div>
</div>
<div
class=
"trend-box"
>
<div
class=
"trend-box"
>
<div
class=
"patch-title"
>
设备订阅数量和线索相关性分析
</div>
<div
class=
"patch-title"
>
设备订阅数量和线索相关性分析
</div>
...
@@ -61,14 +61,6 @@ export default {
...
@@ -61,14 +61,6 @@ export default {
actiNum
:
800
actiNum
:
800
}
}
],
],
tooltips
:
{
label
:
'场次'
,
attrName
:
'activeNum'
},
salesTooltips
:
{
label
:
'数量'
,
attrName
:
'num'
},
correlationTooltips
:
{
correlationTooltips
:
{
label
:
'设备数'
,
label
:
'设备数'
,
attrName
:
'deviceNum'
attrName
:
'deviceNum'
...
@@ -79,8 +71,6 @@ export default {
...
@@ -79,8 +71,6 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
// this.$refs.rationalityChartRef.drawBar()
// this.$refs.correlationChartRef.drawLine()
this
.
init
()
this
.
init
()
},
},
methods
:
{
methods
:
{
...
@@ -108,8 +98,23 @@ export default {
...
@@ -108,8 +98,23 @@ export default {
async
getManageClueAnalysis
()
{
async
getManageClueAnalysis
()
{
const
_data
=
await
this
.
api
.
internal
.
getManageClueAnalysis
()
const
_data
=
await
this
.
api
.
internal
.
getManageClueAnalysis
()
const
_dataList
=
_data
.
data
.
dataList
const
_dataList
=
_data
.
data
.
dataList
console
.
log
(
_dataList
);
this
.
$refs
.
correlationChartRef
.
drawLine
(
_dataList
)
this
.
$refs
.
correlationChartRef
.
drawLine
(
_dataList
)
},
selectPrice
(
val
)
{
console
.
log
(
val
)
switch
(
val
)
{
case
'门店数'
:
this
.
getManageClueSalesAmountRationality
(
'num'
)
break
case
'用户数'
:
this
.
getManageClueSalesAmountRationality
(
'customerNum'
)
break
case
'销售数'
:
this
.
getManageClueSalesAmountRationality
(
'output'
)
break
default
:
break
}
}
}
}
}
}
}
...
...
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