Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Muse
Project
Project
Details
Activity
Releases
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
罗超
Muse
Commits
b15aa7c6
Commit
b15aa7c6
authored
Nov 25, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
dbf0a7b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
48 deletions
+64
-48
centerMpBaidu.vue
src/components/sellDashboard/map/centerMpBaidu.vue
+60
-44
dataLook.vue
src/components/viitto/dataLook.vue
+2
-2
lineChart.vue
src/components/viitto/lineChart.vue
+1
-1
lineChart2.vue
src/components/viitto/lineChart2.vue
+1
-1
No files found.
src/components/sellDashboard/map/centerMpBaidu.vue
View file @
b15aa7c6
...
...
@@ -60,12 +60,12 @@ export default {
//实例化点
const
point
=
new
BMap
.
Point
(
item
.
Lng
,
item
.
Lat
)
//自定义点的样式
// type 0 激活
蓝色五角星 20191119035847676
// 1 未拜访
黄色五角星 20191119035853676
// 2 未激活 红色
五角星 20191119035858082
// type 0 激活
绿色 20191125015057879
// 1 未拜访
紫色 20191125015102111
// 2 未激活 红色
20191125015100234
const
icon
=
new
BMap
.
Icon
(
item
.
type
===
0
?
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911
19035847676.png'
:
item
.
type
===
1
?
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035853676.png'
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035858082
.png'
,
new
BMap
.
Size
(
48
,
48
)
item
.
type
===
0
?
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/201911
25015057879.png'
:
item
.
type
===
1
?
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015102111.png'
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015100234
.png'
,
new
BMap
.
Size
(
30
,
30
)
);
//生成点标注
const
marker
=
new
BMap
.
Marker
(
point
,
{
icon
:
icon
});
...
...
@@ -80,46 +80,62 @@ export default {
map
.
addOverlay
(
marker
);
})
// //2种聚合的实现
const
size
=
new
BMap
.
Size
(
48
,
48
)
const
size
=
new
BMap
.
Size
(
30
,
30
)
var
markerClusterer1
=
new
window
.
BMapLib
.
MarkerClusterer
(
map
,
{
markers
:
markerClusterers
[
1
],
styles
:
[{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035853676.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035853676.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035853676.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
}]
})
var
markerClusterer2
=
new
window
.
BMapLib
.
MarkerClusterer
(
map
,
{
markers
:
markerClusterers
[
2
],
styles
:
[{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035858082.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035858082.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035858082.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
}]
})
var
markerClusterer4
=
new
window
.
BMapLib
.
MarkerClusterer
(
map
,
{
markers
:
markerClusterers
[
0
]
})
markers
:
markerClusterers
[
1
],
styles
:
[{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015102111.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015102111.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015102111.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
}]
})
var
markerClusterer2
=
new
window
.
BMapLib
.
MarkerClusterer
(
map
,
{
markers
:
markerClusterers
[
2
],
styles
:
[{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015100234.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015100234.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015100234.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
}]
})
var
markerClusterer4
=
new
window
.
BMapLib
.
MarkerClusterer
(
map
,
{
markers
:
markerClusterers
[
0
],
styles
:
[{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015057879.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015057879.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
},
{
url
:
'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015057879.png'
,
size
:
size
,
textSize
:
18
,
textColor
:
'white'
,
}]
})
this
.
map
=
map
},
markerClick
(
point
,
item
){
...
...
src/components/viitto/dataLook.vue
View file @
b15aa7c6
...
...
@@ -586,8 +586,8 @@
</el-col>
</el-row>
<el-row>
<lineChart
v-if=
"chartShow && RB_Branch_id !== 0 && ChunData"
:zoom=
"zoom"
:inquireList=
"inquireList"
:preferpriceList=
"preferpriceList"
:guestnumList=
"guestnumList"
:clickcountList=
"clickcountList"
:ordercountList=
"ordercountList"
:unitpriceList=
"unitpriceList"
:day_total_guestprice=
"day_total_guestprice"
:dateList=
"dateList"
:ChunData=
"ChunData"
/>
<lineChart2
v-if=
"chartShow && RB_Branch_id === 0 && ChunData"
:zoom=
"zoom"
:inquireList=
"inquireList"
:preferpriceList=
"preferpriceList"
:guestnumList=
"guestnumList"
:clickcountList=
"clickcountList"
:ordercountList=
"ordercountList"
:unitpriceList=
"unitpriceList"
:day_total_guestprice=
"day_total_guestprice"
:dateList=
"dateList"
:ChunData=
"ChunData"
/>
<lineChart
v-if=
"chartShow && RB_Branch_id !== 0 && ChunData
.length > 0
"
:zoom=
"zoom"
:inquireList=
"inquireList"
:preferpriceList=
"preferpriceList"
:guestnumList=
"guestnumList"
:clickcountList=
"clickcountList"
:ordercountList=
"ordercountList"
:unitpriceList=
"unitpriceList"
:day_total_guestprice=
"day_total_guestprice"
:dateList=
"dateList"
:ChunData=
"ChunData"
/>
<lineChart2
v-if=
"chartShow && RB_Branch_id === 0 && ChunData
.length > 0
"
:zoom=
"zoom"
:inquireList=
"inquireList"
:preferpriceList=
"preferpriceList"
:guestnumList=
"guestnumList"
:clickcountList=
"clickcountList"
:ordercountList=
"ordercountList"
:unitpriceList=
"unitpriceList"
:day_total_guestprice=
"day_total_guestprice"
:dateList=
"dateList"
:ChunData=
"ChunData"
/>
<!--
<lineChart2
v-if=
"chartShow && ChunData"
:zoom=
"zoom"
:inquireList=
"inquireList"
:preferpriceList=
"preferpriceList"
:guestnumList=
"guestnumList"
:clickcountList=
"clickcountList"
:ordercountList=
"ordercountList"
:unitpriceList=
"unitpriceList"
:day_total_guestprice=
"day_total_guestprice"
:dateList=
"dateList"
:ChunData=
"ChunData"
/>
-->
</el-row>
</div>
...
...
src/components/viitto/lineChart.vue
View file @
b15aa7c6
...
...
@@ -82,7 +82,7 @@ export default {
let
_this
=
this
setTimeout
(()
=>
{
_this
.
init
()
},
1
000
)
},
2
000
)
},
methods
:{
initChun
(){
...
...
src/components/viitto/lineChart2.vue
View file @
b15aa7c6
...
...
@@ -82,7 +82,7 @@ export default {
let
_this
=
this
setTimeout
(()
=>
{
_this
.
init
()
},
1
000
)
},
2
000
)
},
methods
:{
initChun
(){
...
...
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