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 9747ee1f
authored
Jul 26, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
17ad3424
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
224 additions
and
131 deletions
src/api/modules/boutique.js
src/views/boutique/BarChart.vue
src/views/boutique/BoutiqueLeft.vue
src/views/boutique/Map.vue
src/views/boutique/rightCompoments/BarTrends.vue
src/views/boutique/rightCompoments/BusinessTrends.vue
src/views/boutique/rightCompoments/StoreMap.vue
src/views/boutiqueDetail/BoutiqueDetailLeft.vue
src/api/modules/boutique.js
View file @
9747ee1
...
@@ -54,8 +54,8 @@ const getRegionMerchant = params => {
...
@@ -54,8 +54,8 @@ const getRegionMerchant = params => {
}
}
// 总 - 获取春雷行动业务趋势
// 总 - 获取春雷行动业务趋势
const
getSpringbu
g
Trend
=
params
=>
{
const
getSpringbu
d
Trend
=
params
=>
{
return
window
.
$HTTP
.
get
(
'upgrade/getSpringbu
g
Trend'
,
params
)
return
window
.
$HTTP
.
get
(
'upgrade/getSpringbu
d
Trend'
,
params
)
}
}
export
default
{
export
default
{
...
@@ -70,5 +70,5 @@ export default {
...
@@ -70,5 +70,5 @@ export default {
getMerchantSupply
,
getMerchantSupply
,
getMerchantTrend
,
getMerchantTrend
,
getRegionMerchant
,
getRegionMerchant
,
getSpringbu
g
Trend
getSpringbu
d
Trend
}
}
src/views/boutique/BarChart.vue
View file @
9747ee1
...
@@ -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-07-2
1 15:11
:43
* @LastEditTime: 2023-07-2
6 14:38
:43
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -87,6 +87,8 @@ export default {
...
@@ -87,6 +87,8 @@ export default {
this
.
barLineOptions
.
xAxis
.
data
=
this
.
dataList
.
map
(
item
=>
item
.
month
)
this
.
barLineOptions
.
xAxis
.
data
=
this
.
dataList
.
map
(
item
=>
item
.
month
)
this
.
barLineOptions
.
series
[
0
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
data1
)
this
.
barLineOptions
.
series
[
0
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
data1
)
this
.
barLineOptions
.
series
[
1
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
data2
)
this
.
barLineOptions
.
series
[
1
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
data2
)
this
.
barLineOptions
.
series
[
2
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
data3
)
this
.
barLineOptions
.
series
[
3
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
data4
)
this
[
this
.
domId
].
setOption
(
this
.
barLineOptions
)
this
[
this
.
domId
].
setOption
(
this
.
barLineOptions
)
},
},
chartBindEvent
()
{
chartBindEvent
()
{
...
...
src/views/boutique/BoutiqueLeft.vue
View file @
9747ee1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @Date: 2023-07-04 13:55:35
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-2
1 15:49:3
9
* @LastEditTime: 2023-07-2
6 14:24:5
9
-->
-->
<
template
>
<
template
>
<div
class=
"left"
>
<div
class=
"left"
>
...
@@ -17,18 +17,20 @@
...
@@ -17,18 +17,20 @@
<
script
>
<
script
>
import
BoutiqueDate
from
'../boutique/BoutiqueDate.vue'
import
BoutiqueDate
from
'../boutique/BoutiqueDate.vue'
import
{
changeMixin
}
from
'@/mixins'
export
default
{
export
default
{
name
:
'BoutiqueLeft'
,
name
:
'BoutiqueLeft'
,
components
:
{
components
:
{
BoutiqueDate
BoutiqueDate
},
},
mixins
:
[
changeMixin
],
computed
:
{
computed
:
{
tabName
()
{
tabName
()
{
let
sname
let
sname
console
.
log
(
this
.
$store
.
state
.
app
)
console
.
log
(
this
.
$store
.
state
.
app
)
switch
(
this
.
activeName
)
{
switch
(
this
.
activeName
)
{
case
0
:
case
0
:
sname
=
this
.
$store
.
state
.
app
.
boutique
.
channel
.
value
==
'
1
'
?
'BarTrends'
:
'BusinessTrends'
sname
=
this
.
$store
.
state
.
app
.
boutique
.
channel
.
value
==
'
cl
'
?
'BarTrends'
:
'BusinessTrends'
break
break
case
1
:
case
1
:
sname
=
'StoreMap'
sname
=
'StoreMap'
...
@@ -53,74 +55,80 @@ export default {
...
@@ -53,74 +55,80 @@ export default {
}],
}],
channelList
:
[{
channelList
:
[{
label
:
'全部渠道'
,
label
:
'全部渠道'
,
value
:
''
value
:
'all'
},
{
label
:
'春蕾行动'
,
value
:
'1'
},
{
},
{
label
:
'广汇渠道'
,
label
:
'广汇渠道'
,
value
:
'2'
value
:
'gh'
},
{
label
:
'春蕾行动'
,
value
:
'cl'
}],
}],
boutiqueList
:
[
boutiqueList
:
[
{
{
name
:
'总门店数'
,
name
:
'总门店数'
,
valueName
:
'
amounttotal
'
,
valueName
:
'
totalMer
'
,
value
:
'2708'
,
value
:
'2708'
,
bottomLabel
:
'上月新增门店数:'
,
bottomLabel
:
'上月新增门店数:'
,
bottemName
:
'
amounttotalThismonth
'
,
bottemName
:
'
incrMer
'
,
bottomValue
:
'21'
bottomValue
:
'21'
},
},
{
{
name
:
'总产值'
,
name
:
'总产值'
,
valueName
:
'
amounttotal
'
,
valueName
:
'
outputvalue
'
,
value
:
'1000000'
,
value
:
'1000000'
,
unit
:
'¥'
,
unit
:
'¥'
,
bottomType
:
'ratio'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'月环比'
,
ratioLeftLabel
:
'月环比'
,
ratioLeftValueName
:
'outputvalueHB'
,
ratioLeftValue
:
'12'
,
ratioLeftValue
:
'12'
,
ratioRightLabel
:
'年同比'
,
ratioRightLabel
:
'年同比'
,
ratioRightValueName
:
'outputvalueTB'
,
ratioRightValue
:
'-7'
ratioRightValue
:
'-7'
},
},
{
{
name
:
'客单价'
,
name
:
'客单价'
,
valueName
:
'
amounttotal
'
,
valueName
:
'
perCusTrans
'
,
value
:
'1003'
,
value
:
'1003'
,
unit
:
'¥'
,
unit
:
'¥'
,
bottomType
:
'ratio'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'月环比'
,
ratioLeftLabel
:
'月环比'
,
ratioLeftValueName
:
'perCusTransHB'
,
ratioLeftValue
:
'12'
,
ratioLeftValue
:
'12'
,
ratioRightLabel
:
'年同比'
,
ratioRightLabel
:
'年同比'
,
ratioRightValueName
:
'perCusTransTB'
,
ratioRightValue
:
'-7'
ratioRightValue
:
'-7'
},
},
{
{
name
:
'总转化率'
,
name
:
'总转化率'
,
valueName
:
'
amounttotal
'
,
valueName
:
'
conversionRate
'
,
value
:
'58'
,
value
:
'58'
,
unit
:
'%'
,
unit
:
'%'
,
bottomType
:
'ratio'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'月环比'
,
ratioLeftLabel
:
'月环比'
,
ratioLeftValueName
:
'conversionRateHB'
,
ratioLeftValue
:
'12'
,
ratioLeftValue
:
'12'
,
ratioRightLabel
:
'年同比'
,
ratioRightLabel
:
'年同比'
,
ratioRightValueName
:
'conversionRateTB'
,
ratioRightValue
:
'-7'
ratioRightValue
:
'-7'
},
},
{
{
name
:
'在营门店数'
,
name
:
'在营门店数'
,
valueName
:
'
amounttotal
'
,
valueName
:
'
openMer
'
,
value
:
'233'
value
:
'233'
},
},
{
{
name
:
'发放电子券门店'
,
name
:
'发放电子券门店'
,
valueName
:
'
amounttotal
'
,
valueName
:
'
usedelecMer
'
,
value
:
'233'
value
:
'233'
},
},
{
{
name
:
'嘀加供货门店'
,
name
:
'嘀加供货门店'
,
valueName
:
'
amounttotal
'
,
valueName
:
'
djsupplyMer
'
,
value
:
'233'
value
:
'233'
},
},
{
{
name
:
'停业门店'
,
name
:
'停业门店'
,
valueName
:
'
amounttotal
'
,
valueName
:
'
closedMer
'
,
value
:
'233'
value
:
'233'
}
}
],
],
...
@@ -131,8 +139,28 @@ export default {
...
@@ -131,8 +139,28 @@ export default {
mounted
()
{
},
mounted
()
{
},
methods
:
{
methods
:
{
changeTab
(
data
)
{
changeTab
(
data
)
{
console
.
log
(
data
)
this
.
activeName
=
data
this
.
activeName
=
data
},
init
()
{
this
.
getAllOverview
()
},
async
getAllOverview
()
{
const
{
boutique
}
=
this
.
$store
.
state
.
app
const
params
=
{
year
:
boutique
.
year
,
channelName
:
boutique
.
channel
.
value
}
const
_data
=
await
this
.
api
.
boutique
.
getAllOverview
(
params
)
const
_dataList
=
_data
.
data
.
dataList
[
0
]
this
.
businessTime
=
_dataList
.
startTime
this
.
boutiqueList
.
forEach
(
item
=>
{
item
.
value
=
_dataList
[
item
.
valueName
]
if
(
item
.
bottomValue
)
item
.
bottomValue
=
_dataList
[
item
.
bottemName
]
if
(
item
.
bottomType
===
'ratio'
)
{
item
.
ratioLeftValue
=
_dataList
[
item
.
ratioLeftValueName
]
item
.
ratioRightValue
=
_dataList
[
item
.
ratioRightValueName
]
}
})
}
}
}
}
}
}
...
...
src/views/boutique/Map.vue
View file @
9747ee1
<!--
* @Description:
* @Author: huyue
* @Date: 2023-07-20 10:19:06
* @LastEditors: huyue
* @LastEditTime: 2023-07-26 16:07:04
-->
<
template
>
<
template
>
<div>
<div>
<div
id=
"map"
class=
"map"
></div>
<div
id=
"map"
class=
"map"
></div>
...
@@ -9,80 +16,96 @@ import * as echarts from 'echarts'
...
@@ -9,80 +16,96 @@ import * as echarts from 'echarts'
import
mapBg
from
'../../assets/images/map-bg.jpg'
import
mapBg
from
'../../assets/images/map-bg.jpg'
export
default
{
export
default
{
name
:
'Map'
,
name
:
'Map'
,
props
:
{
storeDistrictList
:
Array
},
data
()
{
return
{
myChart
:
''
}
},
mounted
()
{
mounted
()
{
var
option
=
{
this
.
myChart
=
echarts
.
init
(
document
.
getElementById
(
'map'
))
tooltip
:
{
},
show
:
true
,
methods
:
{
borderWidth
:
0
,
getOptions
(
data
)
{
padding
:
0
,
var
option
=
{
backgroundColor
:
'#051526'
,
tooltip
:
{
formatter
:
function
(
params
)
{
show
:
true
,
var
_html
=
`<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;">
borderWidth
:
0
,
<div style="color: #fff;">
${
params
.
name
}
</div>
padding
:
0
,
<div style="display:flex;"><div style="color: #c9c9c9">客单价:</div><div style="color: #fff;">¥
${
params
.
data
?
utils
.
numAddSymbol
(
params
.
data
.
value1
)
:
0
}
</div></div>
backgroundColor
:
'#051526'
,
<div style="display:flex;"><div style="color: #c9c9c9">转化率:</div><div style="color: #fff;">
${
params
.
data
?
utils
.
numAddSymbol
(
params
.
data
.
value2
)
:
0
}
%</div></div>
formatter
:
function
(
params
)
{
<div style="display:flex;"><div style="color: #c9c9c9">占比:</div><div style="color: #fff;">
${
params
.
data
?
utils
.
numAddSymbol
(
params
.
data
.
rate
)
:
0
}
%</div></div>
console
.
log
(
params
)
</div>`
var
_html
=
`<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;">
return
_html
<div style="color: #fff;">
${
params
.
name
}
</div>
}
<div style="display:flex;"><div style="color: #c9c9c9">客单价:</div><div style="color: #fff;">¥
${
params
.
data
?
utils
.
numAddSymbol
(
params
.
data
.
perCusTrans
)
:
0
}
</div></div>
},
<div style="display:flex;"><div style="color: #c9c9c9">转化率:</div><div style="color: #fff;">
${
params
.
data
?
utils
.
numAddSymbol
(
params
.
data
.
conversionRate
)
:
0
}
%</div></div>
series
:
[{
<div style="display:flex;"><div style="color: #c9c9c9">占比:</div><div style="color: #fff;">
${
params
.
data
?
utils
.
numAddSymbol
(
params
.
data
.
rate
)
:
0
}
%</div></div>
type
:
'map'
,
</div>`
map
:
'china'
,
return
_html
data
:
[
}
{
name
:
'北京'
,
value
:
100
,
value1
:
2323
,
value2
:
43
,
rate
:
'29'
},
{
name
:
'上海'
,
value
:
200
,
value1
:
2323
,
value2
:
3
,
rate
:
'29'
},
{
name
:
'广东'
,
value
:
300
,
value1
:
2323
,
value2
:
34
,
rate
:
'29'
}
],
itemStyle
:
{
// areaColor: '#061422',
areaColor
:
{
image
:
mapBg
,
repeat
:
'repeat'
},
borderColor
:
'#65C6F8'
,
shadowBlur
:
10
,
shadowColor
:
'rgba(61, 87, 255, 0.41)'
},
},
emphasis
:
{
series
:
[
{
label
:
{
type
:
'map'
,
color
:
'#fff'
map
:
'china'
,
}
,
data
:
data
,
itemStyle
:
{
itemStyle
:
{
// areaColor: '#061422',
areaColor
:
{
areaColor
:
{
type
:
'linear'
,
image
:
mapBg
,
x
:
0
,
repeat
:
'repeat'
y
:
0
,
},
x2
:
1
,
borderColor
:
'#65C6F8'
,
y2
:
0
,
shadowBlur
:
10
,
colorStops
:
[{
shadowColor
:
'rgba(61, 87, 255, 0.41)'
offset
:
0
,
color
:
'#079FF1'
// 0% 处的颜色
},
{
offset
:
1
,
color
:
'#6578FF'
// 100% 处的颜色
}],
global
:
false
// 缺省为 false
}
},
},
select
:
{
emphasis
:
{
areaColor
:
{
label
:
{
type
:
'linear'
,
color
:
'#fff'
x
:
0
,
},
y
:
0
,
itemStyle
:
{
x2
:
0
,
areaColor
:
{
y2
:
1
,
type
:
'linear'
,
colorStops
:
[{
x
:
0
,
offset
:
0
,
color
:
'#079FF1'
// 0% 处的颜色
y
:
0
,
},
{
x2
:
1
,
offset
:
1
,
color
:
'#6578FF'
// 100% 处的颜色
y2
:
0
,
}],
colorStops
:
[{
global
:
false
// 缺省为 false
offset
:
0
,
color
:
'#079FF1'
// 0% 处的颜色
},
{
offset
:
1
,
color
:
'#6578FF'
// 100% 处的颜色
}],
global
:
false
// 缺省为 false
}
},
select
:
{
areaColor
:
{
type
:
'linear'
,
x
:
0
,
y
:
0
,
x2
:
0
,
y2
:
1
,
colorStops
:
[{
offset
:
0
,
color
:
'#079FF1'
// 0% 处的颜色
},
{
offset
:
1
,
color
:
'#6578FF'
// 100% 处的颜色
}],
global
:
false
// 缺省为 false
}
}
}
}
}
}
}]
}]
}
return
option
},
drawMap
(
data
)
{
this
.
mapOption
=
this
.
getOptions
(
data
)
// console.log(data)
// this.mapOption.series[0].data = data
console
.
log
(
this
.
mapOption
)
this
.
myChart
.
setOption
(
this
.
mapOption
)
}
}
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'map'
))
myChart
.
setOption
(
option
)
}
}
}
}
</
script
>
</
script
>
...
...
src/views/boutique/rightCompoments/BarTrends.vue
View file @
9747ee1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-19 17:18:33
* @Date: 2023-07-19 17:18:33
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-2
1 15:31:16
* @LastEditTime: 2023-07-2
6 14:37:47
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -25,12 +25,20 @@ export default {
...
@@ -25,12 +25,20 @@ export default {
return
{
return
{
tooltipFormatterObj
:
[
tooltipFormatterObj
:
[
{
{
label
:
'
开通商户
'
,
label
:
'
部署门店
'
,
attrName
:
'data1'
attrName
:
'data1'
},
},
{
{
label
:
'
采购商户
'
,
label
:
'
在营门店
'
,
attrName
:
'data2'
attrName
:
'data2'
},
{
label
:
'嘀加供货'
,
attrName
:
'data3'
},
{
label
:
'停业门店'
,
attrName
:
'data4'
}
}
],
],
dataList
:
[],
dataList
:
[],
...
@@ -44,8 +52,14 @@ export default {
...
@@ -44,8 +52,14 @@ export default {
this
.
getDataList
()
this
.
getDataList
()
},
},
async
getDataList
()
{
async
getDataList
()
{
const
{
boutique
}
=
this
.
$store
.
state
.
app
const
params
=
{
year
:
boutique
.
year
,
channelName
:
boutique
.
channel
.
value
}
this
.
dataList
=
[]
this
.
dataList
=
[]
const
_data
=
await
this
.
api
.
solar
.
getAllPurchaseTrend
({
year
:
this
.
$store
.
state
.
app
.
solarYear
})
const
_data
=
await
this
.
api
.
boutique
.
getSpringbudTrend
(
params
)
console
.
log
(
_data
)
const
_dataList
=
_data
.
data
.
dataList
const
_dataList
=
_data
.
data
.
dataList
if
(
!
_dataList
.
length
)
{
if
(
!
_dataList
.
length
)
{
this
.
isEmpty
=
true
this
.
isEmpty
=
true
...
@@ -53,10 +67,11 @@ export default {
...
@@ -53,10 +67,11 @@ export default {
}
}
_dataList
.
forEach
(
item
=>
{
_dataList
.
forEach
(
item
=>
{
this
.
dataList
.
push
({
this
.
dataList
.
push
({
month
:
item
.
statDate
,
month
:
item
.
statMonth
,
data1
:
item
.
shopamount
,
data1
:
item
.
deploy_num
,
data2
:
item
.
selfamount
,
data2
:
item
.
open_num
,
data3
:
item
.
shopratio
data3
:
item
.
dj_supply
,
data4
:
item
.
close_num
})
})
})
})
this
.
$refs
.
barTrendsRef
.
drawBar
()
this
.
$refs
.
barTrendsRef
.
drawBar
()
...
...
src/views/boutique/rightCompoments/BusinessTrends.vue
View file @
9747ee1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-19 17:18:33
* @Date: 2023-07-19 17:18:33
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-
19 17:38:57
* @LastEditTime: 2023-07-
26 14:32:32
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -25,15 +25,15 @@ export default {
...
@@ -25,15 +25,15 @@ export default {
return
{
return
{
tooltipFormatterObj
:
[
tooltipFormatterObj
:
[
{
{
label
:
'
商城
'
,
label
:
'
总产值
'
,
attrName
:
'data1'
attrName
:
'data1'
},
},
{
{
label
:
'
自采
'
,
label
:
'
客单价
'
,
attrName
:
'data2'
attrName
:
'data2'
},
},
{
{
label
:
'
占比
'
,
label
:
'
转化率
'
,
attrName
:
'data3'
,
attrName
:
'data3'
,
addSymbol
:
'%'
addSymbol
:
'%'
}
}
...
@@ -49,8 +49,14 @@ export default {
...
@@ -49,8 +49,14 @@ export default {
this
.
getDataList
()
this
.
getDataList
()
},
},
async
getDataList
()
{
async
getDataList
()
{
const
{
boutique
}
=
this
.
$store
.
state
.
app
const
params
=
{
year
:
boutique
.
year
,
channelName
:
boutique
.
channel
.
value
}
this
.
dataList
=
[]
this
.
dataList
=
[]
const
_data
=
await
this
.
api
.
solar
.
getAllPurchaseTrend
({
year
:
this
.
$store
.
state
.
app
.
solarYear
})
const
_data
=
await
this
.
api
.
boutique
.
getAllTrend
(
params
)
console
.
log
(
_data
)
const
_dataList
=
_data
.
data
.
dataList
const
_dataList
=
_data
.
data
.
dataList
if
(
!
_dataList
.
length
)
{
if
(
!
_dataList
.
length
)
{
this
.
isEmpty
=
true
this
.
isEmpty
=
true
...
@@ -58,10 +64,10 @@ export default {
...
@@ -58,10 +64,10 @@ export default {
}
}
_dataList
.
forEach
(
item
=>
{
_dataList
.
forEach
(
item
=>
{
this
.
dataList
.
push
({
this
.
dataList
.
push
({
month
:
item
.
stat
Date
,
month
:
item
.
stat
Month
,
data1
:
item
.
shopamount
,
data1
:
item
.
outputvalue
,
data2
:
item
.
selfamount
,
data2
:
item
.
perCusTrans
,
data3
:
item
.
shopratio
data3
:
item
.
conversionRate
})
})
})
})
this
.
$refs
.
purchaseRef
.
drawBarLine
()
this
.
$refs
.
purchaseRef
.
drawBarLine
()
...
...
src/views/boutique/rightCompoments/StoreMap.vue
View file @
9747ee1
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-19 17:18:33
* @Date: 2023-07-19 17:18:33
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-2
0 17:42:42
* @LastEditTime: 2023-07-2
6 15:32:18
-->
-->
<
template
>
<
template
>
<div>
<div>
<box-title
title=
"区域门店数据"
></box-title>
<box-title
title=
"区域门店数据"
></box-title>
<div
class=
"content"
>
<div
class=
"content"
>
<Map></Map>
<Map
ref=
"map"
:mapData=
"storeDistrictList"
></Map>
<div
class=
"content-right"
>
<div
class=
"content-right"
>
<div
class=
"rank-title"
>
区域门店排行
</div>
<div
class=
"rank-title"
>
区域门店排行
</div>
<Ranking
:id=
"'storeDistrict'"
:rankingsList=
"storeDistrictList"
:rankingDataObj=
"rankStoreObj"
></Ranking>
<Ranking
:id=
"'storeDistrict'"
:rankingsList=
"storeDistrictList"
:rankingDataObj=
"rankStoreObj"
></Ranking>
...
@@ -19,69 +19,86 @@
...
@@ -19,69 +19,86 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Map
from
'../Map.vue'
import
Map
from
'../Map.vue'
import
{
changeMixin
}
from
'@/mixins'
export
default
{
export
default
{
name
:
'StoreMap'
,
name
:
'StoreMap'
,
components
:
{
components
:
{
Map
Map
},
},
mixins
:
[
changeMixin
],
data
()
{
data
()
{
return
{
return
{
storeDistrictList
:
[
storeDistrictList
:
[
{
{
nam
e
:
'广东省'
,
provinc
e
:
'广东省'
,
per
:
'1225家'
num
:
'1225家'
},
},
{
{
nam
e
:
'广东省'
,
provinc
e
:
'广东省'
,
per
:
'1225家'
num
:
'1225家'
},
},
{
{
nam
e
:
'广东省'
,
provinc
e
:
'广东省'
,
per
:
'1225家'
num
:
'1225家'
},
},
{
{
nam
e
:
'广东省'
,
provinc
e
:
'广东省'
,
per
:
'1225家'
num
:
'1225家'
},
},
{
{
nam
e
:
'广东省'
,
provinc
e
:
'广东省'
,
per
:
'1225家'
num
:
'1225家'
},
},
{
{
nam
e
:
'广东省'
,
provinc
e
:
'广东省'
,
per
:
'1225家'
num
:
'1225家'
},
},
{
{
nam
e
:
'广东省'
,
provinc
e
:
'广东省'
,
per
:
'1225家'
num
:
'1225家'
},
},
{
{
nam
e
:
'广东省'
,
provinc
e
:
'广东省'
,
per
:
'1225家'
num
:
'1225家'
},
},
{
{
nam
e
:
'宁夏回族自治区'
,
provinc
e
:
'宁夏回族自治区'
,
per
:
'1225家'
num
:
'1225家'
},
},
{
{
nam
e
:
'西藏自治区'
,
provinc
e
:
'西藏自治区'
,
per
:
'1225家'
num
:
'1225家'
},
},
{
{
nam
e
:
'新疆'
,
provinc
e
:
'新疆'
,
per
:
'1225家'
num
:
'1225家'
}
}
],
],
rankStoreObj
:
[
rankStoreObj
:
[
{
{
name
:
'
nam
e'
,
name
:
'
provinc
e'
,
width
:
'9.72vw'
width
:
'9.72vw'
},
},
{
{
name
:
'
per
'
name
:
'
num
'
}
}
]
]
}
}
},
methods
:
{
init
()
{
this
.
getData
()
},
async
getData
()
{
const
{
boutique
}
=
this
.
$store
.
state
.
app
const
params
=
{
year
:
boutique
.
year
,
channelName
:
boutique
.
channel
.
value
}
const
_data
=
await
this
.
api
.
boutique
.
getRegionMerchant
(
params
)
this
.
storeDistrictList
=
_data
.
data
.
dataList
this
.
$refs
.
map
.
drawMap
(
this
.
storeDistrictList
)
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/boutiqueDetail/BoutiqueDetailLeft.vue
View file @
9747ee1
...
@@ -67,7 +67,9 @@ export default {
...
@@ -67,7 +67,9 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{}
methods
:
{
}
}
}
</
script
>
</
script
>
...
...
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