Browse Source

优化

shibei_master
ZhaoTongYao 3 years ago
parent
commit
ded6d48f9c
  1. 9
      src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue
  2. 21
      src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanfuwufenxi.vue

9
src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue

@ -21,6 +21,7 @@
</template> </template>
<screen-nodata class="nodata" v-else></screen-nodata> <screen-nodata class="nodata" v-else></screen-nodata>
</div> </div>
<div class="dashed-line"></div>
<div class="list right-list"> <div class="list right-list">
<template v-if="info.content"> <template v-if="info.content">
<!-- <div class="item-title">需求内容</div> --> <!-- <div class="item-title">需求内容</div> -->
@ -290,6 +291,12 @@ export default {
.list-wr { .list-wr {
display: flex; display: flex;
padding: 0 20px; padding: 0 20px;
.dashed-line {
width: 1px;
height: 600px;
margin: 0 15px;
border: 1px dashed #1257c9;
}
.left-list { .left-list {
width: 280px !important; width: 280px !important;
height: 600px; height: 600px;
@ -322,7 +329,7 @@ export default {
} }
} }
.right-list { .right-list {
padding: 0 25px !important; padding: 0 15px !important;
} }
} }
</style> </style>

21
src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanfuwufenxi.vue

@ -62,6 +62,8 @@
@clickFeature="clickMap" @clickFeature="clickMap"
:showIconLayer="true" :showIconLayer="true"
:showPolygonLayer="true" :showPolygonLayer="true"
:showPolIconLayer="true"
:areaScale="0.1"
:clickType="'popup'" :clickType="'popup'"
:isAddOpenlay="true"></screen-map> :isAddOpenlay="true"></screen-map>
</div> </div>
@ -369,8 +371,9 @@ export default {
if (item.coordinates && item.coordinates.length > 0) { if (item.coordinates && item.coordinates.length > 0) {
if (!this.isRepeatItem(item.name)) { if (!this.isRepeatItem(item.name)) {
let colorIndex = index < polygonColorArray.length ? index : 0 let colorIndex = index < polygonColorArray.length ? index : 0
item.fillColor = transparent, item.fillColor = 'rgba(0, 229, 237, 0.16)'
item.color = polygonColorArray[colorIndex] item.color = '#00E5ED'
// item.color = polygonColorArray[colorIndex]
subPolygonList.push(item) subPolygonList.push(item)
} }
} }
@ -456,7 +459,10 @@ export default {
if (this.isfirstInit) { if (this.isfirstInit) {
// this.agencyInfo.level = 'agency' // this.agencyInfo.level = 'agency'
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray //mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray
this.$refs.map.loadMap(this.agencyInfo, this.polygonList, null, this.distributionsList, this.iconUrlArray, null) const polygonIconArray = [
'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211116/a219130b6bc74b0b80b5ddb0fce0892a.png',
]
this.$refs.map.loadMap(this.agencyInfo, this.polygonList, polygonIconArray, this.distributionsList, this.iconUrlArray, null)
} else { } else {
this.$refs.map.refreshMap(this.agencyInfo, this.polygonList, this.distributionsList, false) this.$refs.map.refreshMap(this.agencyInfo, this.polygonList, this.distributionsList, false)
} }
@ -464,10 +470,11 @@ export default {
// //
async clickMap (feature) { async clickMap (feature) {
if (feature.values_.coordinates && feature.values_.coordinates.length > 0) { //
await this.loadOrgData(feature.values_.level, feature.values_.id) // if (feature.values_.coordinates && feature.values_.coordinates.length > 0) {
this.loadMap() // await this.loadOrgData(feature.values_.level, feature.values_.id)
} // this.loadMap()
// }
console.log('标注信息', feature.values_.properties) console.log('标注信息', feature.values_.properties)
if (!feature.values_.properties) { if (!feature.values_.properties) {
return return

Loading…
Cancel
Save