|
@@ -85,7 +85,7 @@
|
|
|
:position="marker.position"
|
|
|
:events="estateEvents"
|
|
|
:title="marker.estate_name"
|
|
|
- :label="{content: marker.estate_name, offset: [0, -20]}"
|
|
|
+ :label="{content: marker.estate_name, offset: [-10, -20]}"
|
|
|
:extData="{id: marker.id}"
|
|
|
>
|
|
|
<!-- https://img2.honglounews.com/20220110041534-8330.png -->
|
|
@@ -649,6 +649,13 @@ export default {
|
|
|
this.$msg(`您确定要保存该数据(覆盖原来数据)吗?`, 'confirm', () => {
|
|
|
let polygons = JSON.parse(JSON.stringify(this.polygons))
|
|
|
polygons.map(one=> {
|
|
|
+ // console.log(one.fillColor)
|
|
|
+ // if (one.fillColor === '#DC9B21') {
|
|
|
+ // one.fillColor = '#F8A41C'
|
|
|
+ // one.strokeColor = '#F8A41C'
|
|
|
+ // one.fillOpacity = '0.4'
|
|
|
+ // one.strokeOpacity = '0.8'
|
|
|
+ // }
|
|
|
let tPath = []
|
|
|
one.editable = false
|
|
|
one.path.forEach(sub => {
|
|
@@ -665,6 +672,8 @@ export default {
|
|
|
markerData,
|
|
|
mapDiyObj: this.mapDiyObj,
|
|
|
}
|
|
|
+ // console.log(polygons)
|
|
|
+ // return
|
|
|
const query = this.$route.query
|
|
|
this.$api.other.admmapcoordinedit({
|
|
|
uuid: query.id,
|
|
@@ -696,10 +705,10 @@ export default {
|
|
|
path: tempPath,
|
|
|
editable: true,
|
|
|
fillColor: obj.fillColor || '#DC3021', // 填充色
|
|
|
- fillOpacity: obj.fillOpacity || 0.3, // 填充透明度
|
|
|
+ fillOpacity: obj.fillOpacity || 0.4, // 填充透明度
|
|
|
strokeColor: obj.strokeColor || '#DC3021', // 轮廓颜色
|
|
|
strokeWeight: 2, // 轮廓宽度
|
|
|
- strokeOpacity: 0.9, // 轮廓透明度
|
|
|
+ strokeOpacity: 0.8, // 轮廓透明度
|
|
|
text: obj.text,
|
|
|
})
|
|
|
that.polygons = [...polygons]
|