bug
This commit is contained in:
@@ -23,12 +23,15 @@
|
||||
<span class="label">网格层级</span>
|
||||
<span class="value">{{$dict.getLabel('girdLevel', form.girdLevel)}}</span>
|
||||
</div>
|
||||
<div class="info-flex">
|
||||
<span class="label">网格管理员</span>
|
||||
<span class="value">林珊珊 13782951281
|
||||
<img :src="$cdn + 'common/phone.png'" alt="" @click="call(item)" class="phone-icon">
|
||||
</span>
|
||||
<div v-if="form.girdMemberList && form.girdMemberList.length">
|
||||
<div class="info-flex" v-for="(item, index) in form.girdMemberList" :key="index">
|
||||
<span class="label">网格管理员</span>
|
||||
<span class="value">{{item.name}} {{item.phone}}
|
||||
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon" v-if="item.phone">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</u-popup>
|
||||
|
||||
@@ -56,22 +59,25 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
mounted() {
|
||||
created() {
|
||||
this.$dict.load('girdType', 'girdLevel')
|
||||
this.areaId = this.user.areaId
|
||||
this.getTreeList()
|
||||
this.map.setZoom(15)
|
||||
},
|
||||
|
||||
methods: {
|
||||
callPhone(phone) {
|
||||
uni.makePhoneCall({ phoneNumber: phone })
|
||||
},
|
||||
handerSelect(e) {
|
||||
console.log(e)
|
||||
this.form = e
|
||||
this.initMap(e.points)
|
||||
},
|
||||
initMap(points) {
|
||||
//初始化地图
|
||||
this.$nextTick(() =>{
|
||||
if(points && points.length) {
|
||||
//初始化地图
|
||||
this.$nextTick(() =>{
|
||||
let {lib: TMap, map} = this
|
||||
var center = new TMap.LatLng(points[0].lat, points[0].lng)
|
||||
map.setCenter(center)
|
||||
@@ -114,7 +120,9 @@ export default {
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
}else {
|
||||
return this.$u.toast('该网格未绘制')
|
||||
}
|
||||
},
|
||||
getTreeList() {
|
||||
this.$http.post(`/app/appgirdinfo/listAll`).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user