Commit b15aa7c6 authored by 华国豪's avatar 华国豪 🙄

1

parent dbf0a7b1
...@@ -60,12 +60,12 @@ export default { ...@@ -60,12 +60,12 @@ export default {
//实例化点 //实例化点
const point = new BMap.Point(item.Lng, item.Lat) const point = new BMap.Point(item.Lng, item.Lat)
//自定义点的样式 //自定义点的样式
// type 0 激活 蓝色五角星 20191119035847676 // type 0 激活 绿色 20191125015057879
// 1 未拜访 黄色五角星 20191119035853676 // 1 未拜访 紫色 20191125015102111
// 2 未激活 红色五角星 20191119035858082 // 2 未激活 红色 20191125015100234
const icon = new BMap.Icon( const icon = new BMap.Icon(
item.type === 0 ? 'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035847676.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', item.type === 0 ? 'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015057879.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(48, 48) new BMap.Size(30, 30)
); );
//生成点标注 //生成点标注
const marker = new BMap.Marker(point, { icon: icon }); const marker = new BMap.Marker(point, { icon: icon });
...@@ -80,21 +80,21 @@ export default { ...@@ -80,21 +80,21 @@ export default {
map.addOverlay(marker); map.addOverlay(marker);
}) })
// //2种聚合的实现 // //2种聚合的实现
const size = new BMap.Size( 48, 48 ) const size = new BMap.Size( 30, 30 )
var markerClusterer1 = new window.BMapLib.MarkerClusterer(map, { var markerClusterer1 = new window.BMapLib.MarkerClusterer(map, {
markers: markerClusterers[1], markers: markerClusterers[1],
styles: [{ styles: [{
url:'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035853676.png', url:'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015102111.png',
size: size, size: size,
textSize: 18, textSize: 18,
textColor: 'white', textColor: 'white',
}, { }, {
url: 'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035853676.png', url: 'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015102111.png',
size: size, size: size,
textSize: 18, textSize: 18,
textColor: 'white', textColor: 'white',
}, { }, {
url: 'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035853676.png', url: 'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015102111.png',
size: size, size: size,
textSize: 18, textSize: 18,
textColor: 'white', textColor: 'white',
...@@ -103,23 +103,39 @@ export default { ...@@ -103,23 +103,39 @@ export default {
var markerClusterer2 = new window.BMapLib.MarkerClusterer(map, { var markerClusterer2 = new window.BMapLib.MarkerClusterer(map, {
markers: markerClusterers[2], markers: markerClusterers[2],
styles: [{ styles: [{
url:'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035858082.png', url:'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015100234.png',
size: size, size: size,
textSize: 18, textSize: 18,
textColor: 'white', textColor: 'white',
}, { }, {
url: 'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035858082.png', url: 'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015100234.png',
size: size, size: size,
textSize: 18, textSize: 18,
textColor: 'white', textColor: 'white',
}, { }, {
url: 'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191119035858082.png', url: 'http://imgfile.oytour.com/New/Upload/Cloud/2019-11/20191125015100234.png',
size: size, size: size,
textSize: 18, textSize: 18,
textColor: 'white', textColor: 'white',
}] }]
}) })
var markerClusterer4 = new window.BMapLib.MarkerClusterer(map, { markers: markerClusterers[0] }) 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 this.map = map
}, },
markerClick(point, item){ markerClick(point, item){
......
...@@ -586,8 +586,8 @@ ...@@ -586,8 +586,8 @@
</el-col> </el-col>
</el-row> </el-row>
<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"/> <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" :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"/> --> <!-- <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> </el-row>
</div> </div>
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
let _this = this let _this = this
setTimeout(()=>{ setTimeout(()=>{
_this.init() _this.init()
}, 1000) }, 2000)
},methods:{ },methods:{
initChun(){ initChun(){
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
let _this = this let _this = this
setTimeout(()=>{ setTimeout(()=>{
_this.init() _this.init()
}, 1000) }, 2000)
},methods:{ },methods:{
initChun(){ initChun(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment