Browse Source

禁用街道时点击统计,非街道时隐藏资源统计隐藏

feature
战立标 2 years ago
parent
commit
5c30cdf6d0
  1. 20
      src/views/dataBoard/cpts/sjkb-map/index.vue
  2. 4
      src/views/dataBoard/overview/index.vue

20
src/views/dataBoard/cpts/sjkb-map/index.vue

@ -134,10 +134,10 @@ export default {
type: Object,
default: () => ({}),
},
// level: {
// type: String,
// default: "",
// },
level: {
type: String,
default: "",
},
// peopleType: {
// type: String,
// default: "staffAgency",
@ -931,8 +931,16 @@ export default {
let pointData = data.map(item => item.data)
pointData = pointData.reduce((a, b) => a.concat(b), []);
pointData = pointData.filter(item => item.num > 0 && !isNaN(item.latitude)&& !isNaN(item.longitude))
console.log(pointData, 'pointData')
console.log(pointData, 'pointData11')
pointData = pointData.filter(item => {
if(item.num > 0 && !isNaN(item.latitude)&& !isNaN(item.longitude)) {
return true
}
})
console.log(this.level,'this.level')
if (this.level != "street") {
pointData = pointData.filter(item => item.type != 'resources')
}
numPointMarker1 = new PointLayer({
name: 'numPointMarker1',
zIndex: 20,

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

@ -421,14 +421,14 @@ export default {
this.peopleType = this.currentLevel === "grid" ? "unit" : "staffAgency";
this.$refs.map.removeResourcesPoint();
console.log(this.currentLevel, 'level', orgId, this.currentLevel === 'agency' || this.currentLevel === 'community' || this.currentLevel === 'grid')
if (this.currentLevel === 'community' || this.currentLevel === 'grid') {
if (this.currentLevel !== 'street') {
this.setResourcesPoint({agencyId: this.orgId})
}
this.getMapCount()
});
},
showMapDialog(data) {
if (data.type === "resources") {
if (data.type === "resources" || this.currentLevel === 'street') {
this.clickAgencyItem(data)
} else {
// -- njjwtqk =

Loading…
Cancel
Save