diff --git a/src/views/modules/plugins/stats/factagencyuserhousedaily.vue b/src/views/modules/plugins/stats/factagencyuserhousedaily.vue index b7a365607..dc4f4688e 100644 --- a/src/views/modules/plugins/stats/factagencyuserhousedaily.vue +++ b/src/views/modules/plugins/stats/factagencyuserhousedaily.vue @@ -18,12 +18,12 @@ > --> - + @@ -56,19 +56,19 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + { if (res.code !== 0) { return this.$message.error(res.msg) } else { console.log('获取查询详情成功', res.data) // this.optionsA = res.data + // console.log(this.optionsA); this.optionsA.push(res.data) - this.dataForm.agencyId = res.data.agencyId - this.dataForm.level = res.data.level - this.getDataList() + this.dataForm.agencyId = res.data.objectId + this.dataForm.level = res.data.objectType } }) .catch(() => { diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue index 0d9f75ce1..73422ce06 100644 --- a/src/views/modules/visual/components/screen-map/index.vue +++ b/src/views/modules/visual/components/screen-map/index.vue @@ -524,6 +524,7 @@ const vueGis = { } this.centerPoint = [] + //如果存在中心点(返回时赋值) if (this.center && this.center.length > 0) { this.centerPoint = this.center @@ -532,8 +533,6 @@ const vueGis = { } else if (polygonLayer.getSource().getFeatures()[0]) {//如果是初次进入,存在下级组织 this.centerFlag = 'flag_polygon' - this.centerPoint.push(this.mapInfo.longitude) - this.centerPoint.push(this.mapInfo.latitude) } else if (this.mapInfo.longitude && this.mapInfo.latitude) { this.centerPoint.push(this.mapInfo.longitude) @@ -544,7 +543,6 @@ const vueGis = { this.centerPoint = centerPointGlobal this.centerFlag = 'point' } - // debugger if (this.centerFlag === 'flag_parent') { let parentFeatures = parentLayer.getSource().getFeatures()[0] @@ -564,6 +562,7 @@ const vueGis = { } mapView.setZoom(this.zoom); + }, firstCentermap () { if (this.mapInfo.longitude && this.mapInfo.latitude) {