Browse Source

调整地图

feature
战立标 2 years ago
parent
commit
76e74ab245
  1. 19
      src/views/dataBoard/cpts/map/index.vue
  2. 8
      src/views/dataBoard/overview/index.vue

19
src/views/dataBoard/cpts/map/index.vue

@ -841,7 +841,7 @@ export default {
popup.remove()
})
pointMarkerItem.on("click", () => {
this.$router.push('/homeDetails/index?id='+data[i].id)
this.$router.push('/homeDetails/index?id=' + data[i].id)
})
@ -942,6 +942,10 @@ export default {
</script>
<style lang="scss" scoped>
/deep/ .amap-container {
background: transparent !important;
}
.m-map {
position: relative;
height: 100%;
@ -1025,6 +1029,7 @@ export default {
background-color: rgba(#000, 0.2);
cursor: pointer;
}
/deep/ .label-num-class {
font-size: 16px;
font-weight: 500;
@ -1040,12 +1045,12 @@ export default {
display: none;
}
/* /deep/ .jw-popup-bg {
background: url('@/assets/images/overview/map-pop-img.png') no-repeat;
width: 80px;
height: 80px;
margin-right: 10px;
}*/
/* /deep/ .jw-popup-bg {
background: url('@/assets/images/overview/map-pop-img.png') no-repeat;
width: 80px;
height: 80px;
margin-right: 10px;
}*/
/deep/ .jw-popup-container {
display: flex;

8
src/views/dataBoard/overview/index.vue

@ -418,14 +418,14 @@ export default {
}
})
})
if (params.length) {
// if (params.length) {
this.$refs.map.setNum(params)
}
// }
},
setPoint(data) {
if (data) {
// if (data) {
this.$refs.map.setPoint(data)
}
// }
},
//
async getMapData(

Loading…
Cancel
Save