From a73b2d5673a62985671a5eba83d3f3c0d49621d3 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 10 Feb 2022 18:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AF=81js=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E7=B1=BB=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/saas/AppGridManagement/Map.vue | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/saas/AppGridManagement/Map.vue b/src/saas/AppGridManagement/Map.vue index 255af9b6..e0c3014d 100644 --- a/src/saas/AppGridManagement/Map.vue +++ b/src/saas/AppGridManagement/Map.vue @@ -14,7 +14,7 @@ @@ -37,11 +37,11 @@ 网格管理员 {{ item.name }}  {{ item.phone }} + v-if="item.phone"> - + @@ -86,7 +86,7 @@ export default { }, methods: { - toChoose () { + toChoose() { uni.navigateTo({ url: './SelectGird?isFormMap=1' }) @@ -101,7 +101,7 @@ export default { id: e.id, girdName: e.girdName, points: e.points.map(p => [p.lng, p.lat]) - } + } }) arr.length > 0 && this.renderGridMap(arr) @@ -109,7 +109,7 @@ export default { }) }, - getGridList (id) { + getGridList(id) { this.$loading() this.$http.post(`/app/appgirdinfo/queryChildGirdInfoByGirdId?girdId=${id}`).then((res) => { this.$hideLoading() @@ -129,20 +129,20 @@ export default { }) }, - getGridInfo (id, flag) { + getGridInfo(id, flag) { this.$loading() this.$http.post(`/app/appgirdinfo/queryDetailById?id=${id}`).then((res) => { this.$hideLoading() if (res?.data) { this.form = res.data - if (res.data.points && flag) { + if (res.data.points.length > 0 && flag) { const arr = [{ id: res.data.id, girdName: res.data.girdName, points: res.data.points.map(p => [p.lng, p.lat]) }] - + this.renderGridMap(arr) } @@ -202,7 +202,7 @@ export default { data: path.id, map: map, styles: { - building: new TMap.LabelStyle({ + building: new TMap.LabelStyle({ color: '#3777FF', size: 20, alignment: 'center', @@ -273,6 +273,7 @@ ai-tree-picker { .detail { height: 100%; + .grid-select { width: 100%; padding: 34px 32px;