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;