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 adddc362
authored
Sep 08, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口联调
1 parent
4cc91b55
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
191 additions
and
126 deletions
src/views/internal/InternalLeft.vue
src/views/internal/components/CoreIndex.vue
src/views/internal/components/DigitalLink.vue
src/views/internal/components/DigitalMarketingLeft.vue
src/views/internal/components/LineCharts.vue
src/views/internal/components/ViewEdun.vue
src/views/internal/components/ViewIntersts.vue
src/views/internal/components/constant.js
src/views/internal/InternalLeft.vue
View file @
adddc36
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<
template
>
<
template
>
<div
class=
"left"
>
<div
class=
"left"
>
<div
class=
"left-top"
>
<div
class=
"left-top"
>
<
!--
<
CoreIndex></CoreIndex>
<CoreIndex></CoreIndex>
<DigitalLink></DigitalLink>
-->
<DigitalLink></DigitalLink>
</div>
</div>
<DigitalMarketing></DigitalMarketing>
<DigitalMarketing></DigitalMarketing>
</div>
</div>
...
...
src/views/internal/components/CoreIndex.vue
View file @
adddc36
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
<div
class=
"core-box-content"
>
<div
class=
"core-box-content"
>
<StatisticsBox
:list=
"coreIndexList"
></StatisticsBox>
<StatisticsBox
:list=
"coreIndexList"
></StatisticsBox>
<PullDownSelect
class=
"down-select"
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<PullDownSelect
class=
"down-select"
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<inner-tab
class=
"tab-box"
:list=
"tabList"
:width=
"18.3
"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<inner-tab
class=
"tab-box"
:list=
"tabList"
:width=
"innerTabWidth
"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<BarChart
ref=
"coreChartRef"
domId=
"coreChart"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips
"
></BarChart>
<BarChart
ref=
"coreChartRef"
:label=
"'statYear'"
domId=
"coreChart"
:colorList=
"colorList"
:barWidth=
"'50'"
:valueName=
"valueName
"
></BarChart>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -30,19 +30,15 @@ export default {
...
@@ -30,19 +30,15 @@ export default {
},
},
{
{
name
:
'Saas门店留存率'
,
name
:
'Saas门店留存率'
,
val
:
'
merNum
'
val
:
'
coreRetention
'
}
}
],
],
selectType
:
''
,
dataList
:
[],
activeMerchant
:
[],
activeMerchant
:
[],
coreRetention
:
[],
coreRetention
:
[],
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
tooltips
:
{
valueName
:
'saasMerchantNum'
,
label
:
'门店数'
,
selectActive
:
0
,
attrName
:
'saasMerchantNum'
,
innerTabWidth
:
18.3
XAxis
:
'statYear'
}
}
}
},
},
...
@@ -63,33 +59,55 @@ export default {
...
@@ -63,33 +59,55 @@ export default {
methods
:
{
methods
:
{
selectVal
(
val
)
{
selectVal
(
val
)
{
this
.
selectType
=
val
console
.
log
(
val
)
switch
(
val
.
val
)
{
case
'activeMerchant'
:
this
.
tabList
=
[
'SaaS+门店总数'
,
'有成交门店数'
,
'活跃门店数'
]
this
.
selectActive
=
0
this
.
innerTabWidth
=
18.3
this
.
valueName
=
'saasMerchantNum'
this
.
$refs
.
coreChartRef
.
drawBar
(
this
.
activeMerchant
)
break
case
'coreRetention'
:
this
.
tabList
=
[
'当年留存门店数'
,
'上半年活跃门店数'
,
'门店留存率'
]
this
.
selectActive
=
1
this
.
innerTabWidth
=
19.9
this
.
tooltips
.
attrName
=
'retentionNum'
this
.
$refs
.
coreChartRef
.
drawBar
(
this
.
coreRetention
)
break
}
},
},
// tab切换
// tab切换
changeTab
(
val
)
{
changeTab
(
val
)
{
// switch (val) {
console
.
log
(
val
)
// case 0:
let
_dataList
// this.paymentData = this.dataList.totalData
switch
(
val
)
{
// break
case
0
:
// case 1:
this
.
valueName
=
this
.
selectActive
===
0
?
'saasMerchantNum'
:
'retentionNum'
// this.paymentData = this.dataList.inProgress
_dataList
=
this
.
selectActive
===
0
?
this
.
activeMerchant
:
this
.
coreRetention
// break
// this.$refs.coreChartRef.drawBar(_dataList)
// case 2:
break
// this.paymentData = this.dataList.completed
case
1
:
// break
this
.
valueName
=
this
.
selectActive
===
0
?
'clinchDealMerchantNum'
:
'lastyearActive'
// }
_dataList
=
this
.
selectActive
===
0
?
this
.
activeMerchant
:
this
.
coreRetention
// this.$refs.coreChartRef.drawBar(_dataList)
break
case
2
:
this
.
valueName
=
this
.
selectActive
===
0
?
'activeMerchantNum'
:
'retention'
_dataList
=
this
.
selectActive
===
0
?
this
.
activeMerchant
:
this
.
coreRetention
// this.$refs.coreChartRef.drawBar(_dataList)
break
}
this
.
$refs
.
coreChartRef
.
drawBar
(
_dataList
)
},
},
async
getCoreActiveMerchant
()
{
async
getCoreActiveMerchant
()
{
const
_data
=
await
this
.
api
.
internal
.
getCoreActiveMerchant
()
const
_data
=
await
this
.
api
.
internal
.
getCoreActiveMerchant
()
console
.
log
(
_data
);
const
_dataList
=
_data
.
data
.
dataList
const
_dataList
=
_data
.
data
.
dataList
this
.
activeMerchant
=
this
.
dataList
=
_dataList
this
.
activeMerchant
=
_dataList
console
.
log
(
this
.
dataList
);
this
.
$refs
.
coreChartRef
.
drawBar
(
_dataList
)
this
.
$refs
.
coreChartRef
.
drawBar
()
},
},
async
getCoreRetention
()
{
async
getCoreRetention
()
{
const
_data
=
await
this
.
api
.
internal
.
getCoreRetention
()
const
_data
=
await
this
.
api
.
internal
.
getCoreRetention
()
console
.
log
(
_data
);
const
_dataList
=
_data
.
data
.
dataList
const
_dataList
=
_data
.
data
.
dataList
this
.
coreRetention
=
_dataList
this
.
coreRetention
=
_dataList
}
}
...
...
src/views/internal/components/DigitalLink.vue
View file @
adddc36
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<StatisticsBox
:list=
"digitalLinkList"
></StatisticsBox>
<StatisticsBox
:list=
"digitalLinkList"
></StatisticsBox>
<div
class=
"down-content"
>
<div
class=
"down-content"
>
<PullDownSelect
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<PullDownSelect
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<BarChart
ref=
"linkChartRef"
domId=
"linkChart"
:
dataList
.
sync=
"dataList"
:colorList=
"colorList"
:tooltipFormatterObj=
"tooltips
"
></BarChart>
<BarChart
ref=
"linkChartRef"
domId=
"linkChart"
:
label=
"'statDate'"
:colorList=
"colorList"
:valueName=
"'num'
"
></BarChart>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -26,11 +26,11 @@ export default {
...
@@ -26,11 +26,11 @@ export default {
selectList
:
[
selectList
:
[
{
{
name
:
'成品设备激活趋势'
,
name
:
'成品设备激活趋势'
,
val
:
'
num
'
val
:
'
finished
'
},
},
{
{
name
:
'半成品发货趋势'
,
name
:
'半成品发货趋势'
,
val
:
'
merNum
'
val
:
'
semifinished
'
}
}
],
],
dataList
:
[
dataList
:
[
...
@@ -48,34 +48,61 @@ export default {
...
@@ -48,34 +48,61 @@ export default {
}
}
],
],
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
tooltips
:
{
start
:
''
,
label
:
'场次'
,
end
:
''
attrName
:
'actiNum'
}
}
}
},
},
created
()
{
created
()
{
this
.
end
=
this
.
formatDate
()
const
start
=
new
Date
()
start
.
setTime
(
start
.
setMonth
(
start
.
getMonth
()
-
12
))
this
.
start
=
this
.
formatDate
(
start
)
this
.
getLinkFinishedProductTrend
()
this
.
getLinkFinishedProductTrend
()
},
},
mounted
()
{
mounted
()
{
this
.
$refs
.
linkChartRef
.
drawBar
()
this
.
$bus
.
$on
(
'innerGetAllOverview'
,
data
=>
{
this
.
$bus
.
$on
(
'innerGetAllOverview'
,
data
=>
{
this
.
digitalLinkList
=
data
.
filter
(
item
=>
item
.
tag
===
'digitalLink'
)
this
.
digitalLinkList
=
data
.
filter
(
item
=>
item
.
tag
===
'digitalLink'
)
})
})
},
},
methods
:
{
methods
:
{
selectVal
(
val
)
{},
selectVal
(
val
)
{
async
getLinkFinishedProductTrend
()
{
switch
(
val
.
val
)
{
case
'finished'
:
this
.
getLinkFinishedProductTrend
(
'finished'
)
break
case
'semifinished'
:
this
.
getLinkFinishedProductTrend
(
'semifinished'
)
break
}
},
async
getLinkFinishedProductTrend
(
queryItem
)
{
const
params
=
{
const
params
=
{
queryItem
:
'finished'
,
// finished--成品,semifinished--半成品
queryItem
:
queryItem
||
'finished'
,
// finished--成品,semifinished--半成品
queryType
:
1
queryType
:
0
,
startDate
:
this
.
start
,
endDate
:
this
.
end
}
}
const
_data
=
await
this
.
api
.
internal
.
getLinkFinishedProductTrend
(
params
)
const
_data
=
await
this
.
api
.
internal
.
getLinkFinishedProductTrend
(
params
)
const
_dataList
=
_data
.
data
.
dataList
const
_dataList
=
_data
.
data
.
dataList
this
.
$refs
.
linkChartRef
.
drawBar
(
_dataList
)
},
// 日期转化
formatDate
(
val
)
{
const
date
=
val
||
new
Date
()
const
year
=
date
.
getFullYear
()
let
month
=
date
.
getMonth
()
+
1
let
day
=
date
.
getDate
()
if
(
month
<
10
)
{
month
=
'0'
+
month
}
if
(
day
<
10
)
{
day
=
'0'
+
day
}
const
currentdate
=
year
+
'-'
+
month
+
'-'
+
day
return
currentdate
}
}
}
}
}
}
...
...
src/views/internal/components/DigitalMarketingLeft.vue
View file @
adddc36
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"marketing-left"
>
<div
class=
"marketing-left"
>
<PullDownSelect
ref=
"leftDownSelect"
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<PullDownSelect
ref=
"leftDownSelect"
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<inner-tab
class=
"inner-tab"
v-if=
"tabShow"
:list=
"tabList"
:width=
"6.4"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<inner-tab
class=
"inner-tab"
v-if=
"tabShow"
:list=
"tabList"
:width=
"6.4"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<BarChart
ref=
"trendChartRef"
domId=
"trendChart"
:
height=
"'16vh'"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips
"
></BarChart>
<BarChart
ref=
"trendChartRef"
domId=
"trendChart"
:
label=
"'statMonth'"
:height=
"'16vh'"
:colorList=
"colorList"
:valueName=
"valueName
"
></BarChart>
</div>
</div>
</
template
>
</
template
>
...
@@ -20,47 +20,37 @@ export default {
...
@@ -20,47 +20,37 @@ export default {
return
{
return
{
tabList
:
[
'订单量'
,
'收入'
],
tabList
:
[
'订单量'
,
'收入'
],
selectList
:
digitalMarketingLeftSelectList
[
0
],
selectList
:
digitalMarketingLeftSelectList
[
0
],
dataList
:
[
{
statMonth
:
'2021'
,
actiNum
:
400
},
{
statMonth
:
'2022'
,
actiNum
:
400
},
{
statMonth
:
'2023'
,
actiNum
:
400
}
],
colorList
:
[
'#2AD191'
,
'#00A89E'
,
'#061422'
],
colorList
:
[
'#2AD191'
,
'#00A89E'
,
'#061422'
],
tooltips
:
{
valueName
:
'registerNum'
,
label
:
'场次'
,
tabShow
:
false
,
attrName
:
'actiNum'
marketingTrendList
:
[],
},
marketingCrowdFundingTrendList
:
[]
tabShow
:
false
}
}
},
},
created
()
{
this
.
getMarketingTrend
()
this
.
getMarketingCrowdFundingTrend
()
},
mounted
()
{
mounted
()
{
this
.
$refs
.
trendChartRef
.
drawBar
()
//
this.$refs.trendChartRef.drawBar()
this
.
$bus
.
$on
(
'digitalMarketingTabChange'
,
data
=>
{
this
.
$bus
.
$on
(
'digitalMarketingTabChange'
,
data
=>
{
console
.
log
(
data
)
console
.
log
(
data
)
this
.
$refs
.
leftDownSelect
.
selectType
=
''
this
.
$refs
.
leftDownSelect
.
selectType
=
''
this
.
tabShow
=
false
this
.
tabShow
=
false
this
.
selectList
=
digitalMarketingLeftSelectList
[
data
]
this
.
selectList
=
digitalMarketingLeftSelectList
[
data
]
//
switch (data) {
switch
(
data
)
{
//
case 0:
case
0
:
// this.switchShow = false
this
.
valueName
=
'registerNum'
// this.barchartHeight = '16vh'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingTrendList
)
//
break
break
//
case 1:
case
1
:
// this.switchShow = true
this
.
valueName
=
'activityNum'
// this.barchartHeight = '14vh'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingCrowdFundingTrendList
)
//
break
break
//
}
}
})
})
},
},
...
@@ -69,21 +59,44 @@ export default {
...
@@ -69,21 +59,44 @@ export default {
console
.
log
(
val
)
console
.
log
(
val
)
this
.
tabShow
=
false
this
.
tabShow
=
false
switch
(
val
.
val
)
{
switch
(
val
.
val
)
{
case
'num'
:
case
'registerNum'
:
this
.
valueName
=
'registerNum'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingTrendList
)
break
break
case
'merNum'
:
case
'activeNum'
:
this
.
valueName
=
'activeNum'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingTrendList
)
break
break
case
'trend'
:
case
'output'
:
this
.
valueName
=
'output'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingTrendList
)
this
.
tabShow
=
true
this
.
tabShow
=
true
break
break
case
'num1'
:
case
'activityNum'
:
this
.
valueName
=
'activityNum'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingCrowdFundingTrendList
)
break
break
case
'merNum2'
:
case
'orderNum'
:
this
.
valueName
=
'orderNum'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingCrowdFundingTrendList
)
break
break
case
'trend3'
:
case
'avgPrice'
:
this
.
valueName
=
'avgPrice'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingCrowdFundingTrendList
)
this
.
tabShow
=
true
this
.
tabShow
=
true
break
break
}
}
},
async
getMarketingTrend
()
{
const
_data
=
await
this
.
api
.
internal
.
getMarketingTrend
()
const
_dataList
=
_data
.
data
.
dataList
this
.
marketingTrendList
=
_dataList
this
.
$refs
.
trendChartRef
.
drawBar
(
_dataList
)
},
async
getMarketingCrowdFundingTrend
()
{
const
_data
=
await
this
.
api
.
internal
.
getMarketingCrowdFundingTrend
()
const
_dataList
=
_data
.
data
.
dataList
this
.
marketingCrowdFundingTrendList
=
_dataList
}
}
}
}
}
}
...
...
src/views/internal/components/LineCharts.vue
View file @
adddc36
...
@@ -61,7 +61,7 @@ export default {
...
@@ -61,7 +61,7 @@ export default {
drawLine
(
dataList
)
{
drawLine
(
dataList
)
{
this
.
dataList
=
dataList
this
.
dataList
=
dataList
this
.
barLineOptions
=
getLineOptions
({
tooltipFormatter
:
this
.
tooltipFormatter
,
seriesData
:
dataList
})
this
.
barLineOptions
=
getLineOptions
({
tooltipFormatter
:
this
.
tooltipFormatter
,
seriesData
:
dataList
})
this
.
barLineOptions
.
xAxis
.
data
=
dataList
.
map
(
item
=>
item
.
statMonth
)
this
.
barLineOptions
.
xAxis
.
data
=
dataList
.
map
(
item
=>
item
.
statMonth
||
item
.
statDate
)
this
.
barLineOptions
.
series
[
0
].
data
=
dataList
.
map
(
item
=>
item
[
this
.
valName
])
this
.
barLineOptions
.
series
[
0
].
data
=
dataList
.
map
(
item
=>
item
[
this
.
valName
])
this
[
this
.
domId
].
setOption
(
this
.
barLineOptions
)
this
[
this
.
domId
].
setOption
(
this
.
barLineOptions
)
},
},
...
...
src/views/internal/components/ViewEdun.vue
View file @
adddc36
<
template
>
<
template
>
<div
class=
"edun-box"
>
<div
class=
"edun-box"
>
<div
class=
"edun-statistic-box"
>
<div
class=
"edun-statistic-box"
>
<div
class=
"patch-title"
>
按年统计客户销售金额分布的合理性
</div>
<div
class=
"patch-title
title
"
>
按年统计客户销售金额分布的合理性
</div>
<inner-tab
class=
"inner-tab"
:list=
"tabList"
:width=
"8.1"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<inner-tab
class=
"inner-tab"
:list=
"tabList"
:width=
"8.1"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<div
class=
"switch-box"
>
<div
class=
"switch-box"
>
<div
class=
"text"
>
收入占比:
64.89
%
</div>
<div
class=
"text"
>
收入占比:
{{
ratio
}}
%
</div>
<PriceSwitch
:selectList=
"priceList"
:unit=
"'万元'"
></PriceSwitch>
<PriceSwitch
:selectList=
"priceList"
:unit=
"'万元'"
></PriceSwitch>
</div>
</div>
<BarChart
ref=
"edunChartRef"
domId=
"edunChart"
:
height=
"'24vh'"
:dataList
.
sync=
"dataList
"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips"
></BarChart>
<BarChart
ref=
"edunChartRef"
domId=
"edunChart"
:
label=
"'statDate'"
:height=
"'24vh'
"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips"
></BarChart>
</div>
</div>
<div
class=
"income-box"
>
<div
class=
"income-box"
>
<div
class=
"patch-title title"
>
月收入趋势
</div>
<div
class=
"patch-title title"
>
月收入趋势
</div>
...
@@ -32,24 +32,10 @@ export default {
...
@@ -32,24 +32,10 @@ export default {
return
{
return
{
tabList
:
[
'品牌商数'
,
'总金额'
],
tabList
:
[
'品牌商数'
,
'总金额'
],
priceList
:
edunPriceList
,
priceList
:
edunPriceList
,
dataList
:
[
{
statMonth
:
'2021'
,
actiNum
:
400
},
{
statMonth
:
'2022'
,
actiNum
:
400
},
{
statMonth
:
'2023'
,
actiNum
:
400
}
],
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
tooltips
:
{
tooltips
:
{
label
:
'场次'
,
label
:
'场次'
,
attrName
:
'
actiN
um'
attrName
:
'
n
um'
},
},
lineDataList
:
[
lineDataList
:
[
{
{
...
@@ -64,7 +50,8 @@ export default {
...
@@ -64,7 +50,8 @@ export default {
statMonth
:
'2023'
,
statMonth
:
'2023'
,
actiNum
:
800
actiNum
:
800
}
}
]
],
ratio
:
0
}
}
},
},
...
@@ -76,26 +63,34 @@ export default {
...
@@ -76,26 +63,34 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
$refs
.
edunChartRef
.
drawBar
()
//
this.$refs.edunChartRef.drawBar()
this
.
$refs
.
edunLineChartRef
.
drawLine
()
//
this.$refs.edunLineChartRef.drawLine()
},
},
methods
:
{
methods
:
{
changeTab
(
val
)
{
changeTab
(
val
)
{
console
.
log
(
val
)
switch
(
val
)
{
case
0
:
this
.
getManageESalesAmountRationality
(
'brandnum'
)
break
case
1
:
this
.
getManageESalesAmountRationality
(
'output'
)
break
}
},
},
async
getManageESalesAmountRationality
()
{
async
getManageESalesAmountRationality
(
queryItem
)
{
const
params
=
{
const
params
=
{
endPrice
:
''
,
queryItem
:
queryItem
||
'brandnum'
// brandnum--品牌总数;output--总金额
startPrice
:
''
,
queryItem
:
'brandnum'
}
}
const
_data
=
await
this
.
api
.
internal
.
getManageESalesAmountRationality
(
params
)
const
_data
=
await
this
.
api
.
internal
.
getManageESalesAmountRationality
(
params
)
const
_dataList
=
_data
.
data
.
dataList
[
0
]
const
_dataList
=
_data
.
data
.
dataList
[
0
].
finishedProductTrendList
this
.
ratio
=
_data
.
data
.
dataList
[
0
].
ratio
this
.
$refs
.
edunChartRef
.
drawBar
(
_dataList
)
},
},
async
getManageETrend
()
{
async
getManageETrend
()
{
const
_data
=
await
this
.
api
.
internal
.
getManageETrend
()
const
_data
=
await
this
.
api
.
internal
.
getManageETrend
()
const
_dataList
=
_data
.
data
.
dataList
const
_dataList
=
_data
.
data
.
dataList
this
.
$refs
.
edunLineChartRef
.
drawLine
(
_dataList
)
}
}
}
}
}
}
...
...
src/views/internal/components/ViewIntersts.vue
View file @
adddc36
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
<div
class=
"patch-title"
>
按年统计客户销售金额分布的合理性
</div>
<div
class=
"patch-title"
>
按年统计客户销售金额分布的合理性
</div>
<inner-tab
class=
"inner-tab"
:list=
"tabList"
:width=
"12.4"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<inner-tab
class=
"inner-tab"
:list=
"tabList"
:width=
"12.4"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<div
class=
"switch-box"
>
<div
class=
"switch-box"
>
<div
class=
"text"
>
收入占比:
64.89
%
</div>
<div
class=
"text"
>
收入占比:
{{
ratio
}}
%
</div>
<PriceSwitch
:selectList=
"priceList"
:unit=
"'万元'"
></PriceSwitch>
<PriceSwitch
:selectList=
"priceList"
:unit=
"'万元'"
></PriceSwitch>
</div>
</div>
<BarChart
ref=
"equityChartRef"
domId=
"equityChart"
:height=
"'24vh'"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips"
></BarChart>
<BarChart
ref=
"equityChartRef"
domId=
"equityChart"
:
label=
"'statDate'"
:
height=
"'24vh'"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips"
></BarChart>
</div>
</div>
<div
class=
"income-box"
>
<div
class=
"income-box"
>
<div
class=
"patch-title title"
>
月收入趋势
</div>
<div
class=
"patch-title title"
>
月收入趋势
</div>
...
@@ -30,7 +30,7 @@ export default {
...
@@ -30,7 +30,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
tabList
:
[
'门店数'
,
'会员人数'
,
'
会员人数
'
],
tabList
:
[
'门店数'
,
'会员人数'
,
'
销售收入
'
],
priceList
:
equityPriceList
,
priceList
:
equityPriceList
,
dataList
:
[
dataList
:
[
{
{
...
@@ -49,7 +49,7 @@ export default {
...
@@ -49,7 +49,7 @@ export default {
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
tooltips
:
{
tooltips
:
{
label
:
'场次'
,
label
:
'场次'
,
attrName
:
'
actiN
um'
attrName
:
'
n
um'
},
},
lineDataList
:
[
lineDataList
:
[
{
{
...
@@ -64,7 +64,8 @@ export default {
...
@@ -64,7 +64,8 @@ export default {
statMonth
:
'2023'
,
statMonth
:
'2023'
,
actiNum
:
800
actiNum
:
800
}
}
]
],
ratio
:
0
}
}
},
},
...
@@ -76,26 +77,37 @@ export default {
...
@@ -76,26 +77,37 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
$refs
.
equityChartRef
.
drawBar
()
//
this.$refs.equityChartRef.drawBar()
this
.
$refs
.
equityLineChartRef
.
drawLine
()
//
this.$refs.equityLineChartRef.drawLine()
},
},
methods
:
{
methods
:
{
changeTab
(
val
)
{
changeTab
(
val
)
{
console
.
log
(
val
)
switch
(
val
)
{
case
0
:
this
.
getManageMemberSalesAmountRationality
(
'num'
)
break
case
1
:
this
.
getManageMemberSalesAmountRationality
(
'customerNum'
)
break
case
2
:
this
.
getManageMemberSalesAmountRationality
(
'output'
)
break
}
},
},
async
getManageMemberSalesAmountRationality
()
{
async
getManageMemberSalesAmountRationality
(
queryItem
)
{
const
params
=
{
const
params
=
{
endPrice
:
''
,
queryItem
:
queryItem
||
'num'
// num--门店数;customerNum--会员人数;output--销售收入
startPrice
:
''
,
queryItem
:
'num'
}
}
const
_data
=
await
this
.
api
.
internal
.
getManageMemberSalesAmountRationality
(
params
)
const
_data
=
await
this
.
api
.
internal
.
getManageMemberSalesAmountRationality
(
params
)
const
_dataList
=
_data
.
data
.
dataList
[
0
]
const
_dataList
=
_data
.
data
.
dataList
[
0
].
finishedProductTrendList
this
.
ratio
=
_data
.
data
.
dataList
[
0
].
ratio
this
.
$refs
.
equityChartRef
.
drawBar
(
_dataList
)
},
},
async
getManageMemberTrend
()
{
async
getManageMemberTrend
()
{
const
_data
=
await
this
.
api
.
internal
.
getManageMemberTrend
()
const
_data
=
await
this
.
api
.
internal
.
getManageMemberTrend
()
const
_dataList
=
_data
.
data
.
dataList
const
_dataList
=
_data
.
data
.
dataList
this
.
$refs
.
equityLineChartRef
.
drawLine
(
_dataList
)
}
}
}
}
}
}
...
...
src/views/internal/components/constant.js
View file @
adddc36
...
@@ -121,29 +121,29 @@ const digitalMarketingLeftSelectList = [
...
@@ -121,29 +121,29 @@ const digitalMarketingLeftSelectList = [
[
[
{
{
name
:
'注册门店趋势'
,
name
:
'注册门店趋势'
,
val
:
'
n
um'
val
:
'
registerN
um'
},
},
{
{
name
:
'活跃门店趋势'
,
name
:
'活跃门店趋势'
,
val
:
'
mer
Num'
val
:
'
active
Num'
},
},
{
{
name
:
'月订单量与收入趋势'
,
name
:
'月订单量与收入趋势'
,
val
:
'
trend
'
val
:
'
output
'
}
}
],
],
[
[
{
{
name
:
'活动趋势'
,
name
:
'活动趋势'
,
val
:
'
num1
'
val
:
'
activityNum
'
},
},
{
{
name
:
'订单趋势'
,
name
:
'订单趋势'
,
val
:
'
merNum2
'
val
:
'
orderNum
'
},
},
{
{
name
:
'客单价趋势'
,
name
:
'客单价趋势'
,
val
:
'
trend3
'
val
:
'
avgPrice
'
}
}
]
]
]
]
...
...
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