From 7793200c2cd0f5594968710608d3753309967307 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 20 Jul 2022 12:07:23 +0800 Subject: [PATCH] =?UTF-8?q?wxwork.config=E6=95=B4=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppBuilding/components/searchMap.vue | 4 ++-- src/apps/AppGridManagement/Map.vue | 4 ++-- src/components/AiTMap.vue | 6 +++--- src/project/saas/AppBuilding/components/searchMap.vue | 3 +-- src/project/saas/AppGridManagement/Map.vue | 2 +- src/project/xicheng/AppMerchantMap/AppMerchantMap.vue | 2 +- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/apps/AppBuilding/components/searchMap.vue b/src/apps/AppBuilding/components/searchMap.vue index 2e1823ba..276b3b1f 100644 --- a/src/apps/AppBuilding/components/searchMap.vue +++ b/src/apps/AppBuilding/components/searchMap.vue @@ -132,7 +132,7 @@ export default { buildPopup: false } }, - computed: {...mapState(['user', 'config'])}, + computed: {...mapState(['user', 'wxwork'])}, mounted() { this.getCommunityList().then(points => { this.getMarkerCluster(points) @@ -217,7 +217,7 @@ export default { } } - this.config.latlng && map.setCenter(this.config.latlng) + this.wxwork.config.latlng && map.setCenter(this.wxwork.config.latlng) let MarkerCluster = new TMap.MarkerCluster({ map, gridSize: 60, enableDefaultStyle: false, // 关闭默认样式 diff --git a/src/apps/AppGridManagement/Map.vue b/src/apps/AppGridManagement/Map.vue index feadb530..b50bbfa0 100644 --- a/src/apps/AppGridManagement/Map.vue +++ b/src/apps/AppGridManagement/Map.vue @@ -54,7 +54,7 @@ export default { labels: [] } }, - computed: {...mapState(['user', 'config'])}, + computed: {...mapState(['user', 'wxwork'])}, created() { this.$dict.load('girdType') this.areaId = this.user.areaId @@ -178,7 +178,7 @@ export default { }); map.fitBounds(bounds, {padding: 100}) } else { - map.setCenter(this.config.latlng) + map.setCenter(this.wxwork.config.latlng) } } else { diff --git a/src/components/AiTMap.vue b/src/components/AiTMap.vue index a38e50f6..51400eec 100644 --- a/src/components/AiTMap.vue +++ b/src/components/AiTMap.vue @@ -33,7 +33,7 @@ export default { lib: Object, }, computed: { - ...mapState(['config']), + ...mapState(['wxwork']), key() { return process.env.NODE_ENV == "production" ? "RWWBZ-64BEJ-MVLFJ-FTHLQ-JTR6J-SAB2S" : @@ -59,8 +59,8 @@ export default { }, initTMap() { let latLng = {} - if (this.config.lat) { //通用版 - latLng = this.config + if (this.wxwork.config.lat) { //通用版 + latLng = this.wxwork.config this.mapLib = TMap this.tmap = new TMap.Map(this.$refs.tmap, { zoom: 11, diff --git a/src/project/saas/AppBuilding/components/searchMap.vue b/src/project/saas/AppBuilding/components/searchMap.vue index d4346c59..545e909e 100644 --- a/src/project/saas/AppBuilding/components/searchMap.vue +++ b/src/project/saas/AppBuilding/components/searchMap.vue @@ -142,7 +142,7 @@ export default { buildPopup: false } }, - computed: {...mapState(['user', 'config'])}, + computed: {...mapState(['user', 'wxwork'])}, mounted() { this.getCommunityList().then(points => { this.getMarkerCluster(points) @@ -178,7 +178,6 @@ export default { getMarkerCluster(points, count = 0) { let {lib: TMap, map} = this if (map) { - // map.setCenter(this.config.latlng) let MarkerCluster = new TMap.MarkerCluster({ map, gridSize: 60, enableDefaultStyle: false, // 关闭默认样式 diff --git a/src/project/saas/AppGridManagement/Map.vue b/src/project/saas/AppGridManagement/Map.vue index fda17d4c..842db661 100644 --- a/src/project/saas/AppGridManagement/Map.vue +++ b/src/project/saas/AppGridManagement/Map.vue @@ -64,7 +64,7 @@ export default { latLngCenter: [], //中心点 } }, - computed: {...mapState(['user', 'config'])}, + computed: {...mapState(['user'])}, created() { this.areaId = this.user.areaId // this.getLeafNodes() diff --git a/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue b/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue index 7837a999..2fa94f94 100644 --- a/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue +++ b/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue @@ -39,7 +39,7 @@ list: [] } }, - computed: {...mapState(['user', 'config'])}, + computed: {...mapState(['user'])}, created () { this.areaId = this.user.areaId