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 b2277e40
authored
Nov 28, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加柱状图
1 parent
05a51b5d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
4 deletions
src/api/modules/boutique.js
src/views/boutique/BoutiqueLeft.vue
src/views/boutique/rightCompoments/IncreMerchants.vue
src/api/modules/boutique.js
View file @
b2277e4
...
@@ -63,6 +63,16 @@ const getYears = params => {
...
@@ -63,6 +63,16 @@ const getYears = params => {
return
window
.
$HTTP
.
get
(
'upgrade/getYears'
,
params
)
return
window
.
$HTTP
.
get
(
'upgrade/getYears'
,
params
)
}
}
// 总体----获取上月新增门店
const
getIncreMerchant
=
params
=>
{
return
window
.
$HTTP
.
get
(
'upgrade/getIncreMerchant'
,
params
)
}
// 总体----获取新增门店趋势
const
getIncreMerchantTrend
=
params
=>
{
return
window
.
$HTTP
.
get
(
'upgrade/getIncreMerchantTrend'
,
params
)
}
export
default
{
export
default
{
getAllMerchantRank
,
getAllMerchantRank
,
getAllOverview
,
getAllOverview
,
...
@@ -76,5 +86,7 @@ export default {
...
@@ -76,5 +86,7 @@ export default {
getMerchantTrend
,
getMerchantTrend
,
getRegionMerchant
,
getRegionMerchant
,
getSpringbudTrend
,
getSpringbudTrend
,
getYears
getYears
,
getIncreMerchant
,
getIncreMerchantTrend
}
}
src/views/boutique/BoutiqueLeft.vue
View file @
b2277e4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<BoutiqueDate
:defaultYear=
"defaultYear"
:yearList=
"yearList"
:channelList=
"channelList"
:businessTime=
"businessTime"
></BoutiqueDate>
<BoutiqueDate
:defaultYear=
"defaultYear"
:yearList=
"yearList"
:channelList=
"channelList"
:businessTime=
"businessTime"
></BoutiqueDate>
<StatisticsBox
:list=
"boutiqueList.slice(0,4)"
></StatisticsBox>
<StatisticsBox
:list=
"boutiqueList.slice(0,4)"
></StatisticsBox>
<StatisticsBox
class=
"sencod-box"
:list=
"boutiqueList.slice(4,9)"
></StatisticsBox>
<StatisticsBox
class=
"sencod-box"
:list=
"boutiqueList.slice(4,9)"
></StatisticsBox>
<Tab
class=
"tab-box"
:list=
"tabList"
:width=
"
19.17
"
:itemWidth=
"10"
@
changeTab=
"changeTab"
></Tab>
<Tab
class=
"tab-box"
:list=
"tabList"
:width=
"
22
"
:itemWidth=
"10"
@
changeTab=
"changeTab"
></Tab>
<components
class=
"tab-content"
:is=
"tabName"
></components>
<components
class=
"tab-content"
:is=
"tabName"
></components>
</div>
</div>
</
template
>
</
template
>
...
@@ -35,7 +35,7 @@ export default {
...
@@ -35,7 +35,7 @@ export default {
sname
=
'StoreMap'
sname
=
'StoreMap'
break
break
case
2
:
case
2
:
sname
=
'
BarTrend
s'
sname
=
'
IncreMerchant
s'
break
break
}
}
return
sname
return
sname
...
@@ -131,7 +131,7 @@ export default {
...
@@ -131,7 +131,7 @@ export default {
value
:
'0'
value
:
'0'
}
}
],
],
tabList
:
[
'趋势分析'
,
'区域门店数据'
],
tabList
:
[
'趋势分析'
,
'区域门店数据'
,
'新增门店数'
],
activeName
:
0
activeName
:
0
}
}
},
},
...
...
src/views/boutique/rightCompoments/IncreMerchants.vue
0 → 100644
View file @
b2277e4
<
template
>
<div
class=
"increMerchants-box"
>
<box-title
title=
"新增门店数分析"
></box-title>
<BarChart
v-if=
"!isEmpty"
ref=
"increMerchantsTrendChartRef"
class=
"bar-chart"
isMultiple
domId=
"increMerchantsTrendChart"
height=
"44.89vh"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:tooltipFormatterObj=
"tooltips.amountTooltip"
:barWidth=
"30"
></BarChart>
<div
v-else
class=
"empty"
>
<Empty></Empty>
</div>
</div>
</
template
>
<
script
>
import
{
boutiqueMixin
}
from
'@/mixins'
import
BarChart
from
'../../crowdfunding/components/BarChart.vue'
export
default
{
name
:
'IncreMerchants'
,
mixins
:
[
boutiqueMixin
],
components
:
{
BarChart
},
data
()
{
return
{
isEmpty
:
false
,
dataList
:
[],
tooltips
:
{
amountTooltip
:
{
label
:
'门店'
,
attrName
:
'incrMer'
}
},
colorList
:
[
[
'#2AD191'
,
'#00A89E'
,
'#061422'
],
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
]
]
}
},
mounted
()
{},
methods
:
{
init
()
{
const
{
boutique
}
=
this
.
$store
.
state
.
app
const
params
=
{
year
:
boutique
.
year
,
channelName
:
boutique
.
channel
.
value
}
this
.
getIncreMerchantTrend
(
params
)
},
async
getIncreMerchantTrend
(
params
)
{
const
_result
=
await
this
.
api
.
boutique
.
getIncreMerchantTrend
(
params
)
const
_data
=
_result
.
data
.
dataList
if
(
!
_data
.
length
)
{
this
.
isEmpty
=
true
return
}
this
.
dataList
=
_data
this
.
$nextTick
(()
=>
{
this
.
$refs
.
increMerchantsTrendChartRef
.
drawBar
()
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.increMerchants-box
{
//
width
:
36.94vw
;
//
height
:
34vh
;
//
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
.bar-chart
{
//
padding-left
:
1.39vw
;
}
}
</
style
>
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