|
|
@ -57,7 +57,7 @@ |
|
|
|
</div> --> |
|
|
|
|
|
|
|
<div class="card-map"> |
|
|
|
<screen-map class="map" |
|
|
|
<!-- <screen-map class="map" |
|
|
|
ref="map" |
|
|
|
@clickFeature="clickMap" |
|
|
|
:showIconLayer="true" |
|
|
@ -65,7 +65,16 @@ |
|
|
|
:showPolIconLayer="true" |
|
|
|
:clickType="'popup'" |
|
|
|
:areaScale="0.1" |
|
|
|
:isAddOpenlay="true"></screen-map> |
|
|
|
:isAddOpenlay="true"></screen-map> --> |
|
|
|
<new-map |
|
|
|
ref="duoMap" |
|
|
|
:pitch="0" |
|
|
|
:srcGridData="agencyInfo" |
|
|
|
:dotList2="distributionsList" |
|
|
|
:dotIcoList2="dotIconList" |
|
|
|
:icon-size="20" |
|
|
|
@clickDot="clickMap" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div class="map-tips"> |
|
|
|
|
|
|
@ -100,6 +109,7 @@ import ScreenNodata from "@/views/modules/visual/components/screen-nodata" |
|
|
|
|
|
|
|
import screenMap from "@/views/modules/visual/components/screen-map" |
|
|
|
import duoyuanDialog from './duoyuanDialog.vue' |
|
|
|
import newMap from '../../cpts/map/index2.vue' |
|
|
|
|
|
|
|
import { pieOption } from './pieOption.js' |
|
|
|
import nextTick from 'dai-js/tools/nextTick' |
|
|
@ -173,6 +183,17 @@ export default { |
|
|
|
require('../../../../../assets/img/shuju/volunteer2.png'), // 代办员 |
|
|
|
require('../../../../../assets/img/shuju/volunteer6.png'), // 调解员 |
|
|
|
], |
|
|
|
dotIconList: { |
|
|
|
whdw: require('../../../../../assets/img/shuju/volunteer4.png'), // 文化队伍 |
|
|
|
lwh: require('../../../../../assets/img/shuju/volunteer5.png'), // 楼委会 |
|
|
|
lyjlb: require('../../../../../assets/img/shuju/volunteer7.png'), // 老友俱乐部 |
|
|
|
zaxld: require('../../../../../assets/img/shuju/volunteer8.png'), // 治安巡逻 |
|
|
|
yjdw: require('../../../../../assets/img/shuju/volunteer3.png'), // 应急队伍 |
|
|
|
other: require('../../../../../assets/img/shuju/volunteer9.png'), // 其他 |
|
|
|
// require('../../../../../assets/img/shuju/volunteer1.png'), // 采集员 |
|
|
|
// require('../../../../../assets/img/shuju/volunteer2.png'), // 代办员 |
|
|
|
// require('../../../../../assets/img/shuju/volunteer6.png'), // 调解员 |
|
|
|
}, |
|
|
|
polygonList: [] |
|
|
|
} |
|
|
|
}, |
|
|
@ -186,7 +207,7 @@ export default { |
|
|
|
|
|
|
|
async mounted () { |
|
|
|
this.dataLoading = true |
|
|
|
await this.getAgencylist() // 获取当前登录人员信息 |
|
|
|
// await this.getAgencylist() // 获取当前登录人员信息 |
|
|
|
await this.getData() // 获取饼图数据 |
|
|
|
await this.getTable() // 获取列表数据 |
|
|
|
this.dataLoading = false |
|
|
@ -367,9 +388,9 @@ export default { |
|
|
|
} |
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
if (code === 0) { |
|
|
|
this.agencyInfo.agencyLevel = data.agencyLevel, |
|
|
|
this.agencyInfo.longitude = data.longitude, |
|
|
|
this.agencyInfo.latitude = data.latitude |
|
|
|
this.agencyInfo = data |
|
|
|
// this.agencyInfo.longitude = data.longitude, |
|
|
|
// this.agencyInfo.latitude = data.latitude |
|
|
|
let subPolygonList = [] |
|
|
|
data.children.forEach((item, index) => { |
|
|
|
if (item.coordinates && item.coordinates.length > 0) { |
|
|
@ -443,6 +464,7 @@ export default { |
|
|
|
this.distributionsList = [] |
|
|
|
data.list.forEach((item, index) => { |
|
|
|
item.urlIndex = this.getLegendIconIndex(item.color) |
|
|
|
item.categoryKey = item.categoryCode |
|
|
|
// if (index === 0) { |
|
|
|
// item.latitude = "36.07394505338441" |
|
|
|
// item.longitude = "120.3868167667315" |
|
|
@ -452,7 +474,7 @@ export default { |
|
|
|
// this.distributionsList = data.list |
|
|
|
await this.loadOrgData() |
|
|
|
// 第一次加载完置为false |
|
|
|
this.loadMap() |
|
|
|
// this.loadMap() |
|
|
|
this.isfirstInit = false |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
@ -480,11 +502,12 @@ export default { |
|
|
|
// await this.loadOrgData(feature.values_.level, feature.values_.id) |
|
|
|
// this.loadMap() |
|
|
|
// } |
|
|
|
console.log('标注信息', feature.values_.properties) |
|
|
|
if (!feature.values_.properties) { |
|
|
|
console.log('标注信息', feature) |
|
|
|
if (!feature) { |
|
|
|
return |
|
|
|
} |
|
|
|
const data = feature.values_.properties.info |
|
|
|
// const data = feature.values_.properties.info |
|
|
|
const data = feature |
|
|
|
data.organizationName = data.organizationName ? data.organizationName : '--' |
|
|
|
data.categoryName = data.categoryName ? data.categoryName : '--' |
|
|
|
data.organizationPersonCount = data.organizationPersonCount ? data.organizationPersonCount : '--' |
|
|
@ -503,34 +526,37 @@ export default { |
|
|
|
} |
|
|
|
const coordinate = [data.longitude, data.latitude] |
|
|
|
const showData = ` |
|
|
|
<div style='font-size:16px; color:#FFFFFF;'>详细信息</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:10px'>组织名称: |
|
|
|
<span>`+ data.organizationName + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>组织类型: |
|
|
|
<span>`+ data.categoryName + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>组织人数: |
|
|
|
<span>`+ data.organizationPersonCount + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>组织成员: |
|
|
|
<span>`+ organizationPersonnel + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>服务事项: |
|
|
|
<span>`+ data.serviceItem + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>负责人: |
|
|
|
<span>`+ data.principalName + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>联系电话: |
|
|
|
<span>`+ data.principalPhone + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>创建时间: |
|
|
|
<span>`+ data.organizationCreatedTime + `</span> |
|
|
|
<div style='width: 100%;text-align:left;word-break: break-all; white-space: normal;'> |
|
|
|
<div style='font-size:16px; color:#FFFFFF;'>详细信息</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:10px'>组织名称: |
|
|
|
<span>`+ data.organizationName + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>组织类型: |
|
|
|
<span>`+ data.categoryName + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>组织人数: |
|
|
|
<span>`+ data.organizationPersonCount + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px;word-break: break-all;'>组织成员: |
|
|
|
<span>`+ organizationPersonnel + `</span> |
|
|
|
</div> |
|
|
|
<div style='width: 100%;font-size:12px; color:#FFFFFF;margin-top:5px;word-break: break-all;'>服务事项: |
|
|
|
<span style='word-break: break-all;'>`+ data.serviceItem + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>负责人: |
|
|
|
<span>`+ data.principalName + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>联系电话: |
|
|
|
<span>`+ data.principalPhone + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>创建时间: |
|
|
|
<span>`+ data.organizationCreatedTime + `</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
` |
|
|
|
// console.log(showData) |
|
|
|
this.$refs.map.handleShowPopup(showData, coordinate) |
|
|
|
// this.$refs.map.handleShowPopup(showData, coordinate) |
|
|
|
this.$refs.duoMap.showPopup(showData, coordinate) |
|
|
|
}, |
|
|
|
//点击项目 - 接口获取 |
|
|
|
// async clickMap (feature) { |
|
|
@ -657,6 +683,7 @@ export default { |
|
|
|
ScreenNodata, |
|
|
|
|
|
|
|
screenMap, |
|
|
|
newMap, |
|
|
|
duoyuanDialog |
|
|
|
}, |
|
|
|
|
|
|
@ -720,6 +747,16 @@ export default { |
|
|
|
font-weight: 800; |
|
|
|
} |
|
|
|
} |
|
|
|
.card-map { |
|
|
|
::v-deep .l7-popup-content { |
|
|
|
background: #1257c9; |
|
|
|
} |
|
|
|
::v-deep .l7-popup-close-button { |
|
|
|
right: 10px; |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.card-left-title { |
|
|
|
position: relative; |
|
|
|
padding-left: 40px; |
|
|
@ -790,6 +827,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|