diff --git a/packages/2.0.5/AppGridBlock/components/list.vue b/packages/2.0.5/AppGridBlock/components/list.vue index 280ccf3f..626cb998 100644 --- a/packages/2.0.5/AppGridBlock/components/list.vue +++ b/packages/2.0.5/AppGridBlock/components/list.vue @@ -144,7 +144,7 @@ @@ -251,11 +251,13 @@ export default { isEdit: false, searchId: "", fileList: [], + location: {} }; }, created() { this.getTreeList(); this.getList(); + this.getCorpLocation() this.dict.load("girdLevel", "girdType", "isLastLevel", "plottingStatus"); }, computed: { @@ -323,6 +325,13 @@ export default { }, }, methods: { + getCorpLocation(){ + this.instance.post("/app/appdvcpconfig/getCorpLocation").then(res=>{ + if(res.code==0){ + this.location = res.data + } + }) + }, handleNodeClick(val) { this.info = { ...val }; this.searchId = val.id; @@ -470,7 +479,7 @@ export default { panel: "panel", // 结果列表将在此容器中进行展示。 autoFitView: true, // 是否自动调整地图视野使绘制的 Marker点都处于视口的可见范围 }); - this.map.setZoomAndCenter(14, [117.147097, 36.72081], false, 600); + this.map.setZoomAndCenter(14, [location.lng, location.lat], false, 600); this.eventOn(); } })