diff --git a/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue b/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue
index 0d37b9cf..44285d81 100644
--- a/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue
+++ b/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue
@@ -14,13 +14,12 @@
-
-
- {{ info.clockRange }}米
-
+
+
{{ dict.getLabel('tfx_activityStatus',info.status) }}
+ {{ info.clockRange }}米
{{ info.intoBegintime }}至{{ info.intoEndtime}}
{{ info.intoIntegral }}分
{{ info.exitBegintime }}至{{ info.exitEndtime}}
@@ -160,6 +159,7 @@ export default {
id: '',
isEdit: false,
info: {},
+ mapDetail: null,
map: null,
placeSearch: null,
placeDetail: {
@@ -181,6 +181,9 @@ export default {
if(this.params && this.params.id) {
this.id = this.params.id
this.getDetail()
+ setTimeout(() => {
+ this.getMap(this.info.lng,this.info.lat,this.info.address)
+ },500)
}
},
watch: {
@@ -264,6 +267,19 @@ export default {
})
},
+ getMap(lng,lat,address) {
+ this.mapDetail = new AMap.Map(document.getElementById("mapDetail"), {
+ resizeEnable: true,
+ zooms: [6, 20],
+ zoom: 11,
+ })
+ var marker = new AMap.Marker({
+ position: new AMap.LngLat(lng,lat),
+ title: address
+ })
+ this.mapDetail.add(marker);
+ },
+
update() {
this.isEdit = true
this.getDetail()
@@ -278,6 +294,8 @@ export default {
this.form.intoTime = [res.data.intoBegintime,res.data.intoEndtime]
this.form.exitTime = [res.data.exitBegintime,res.data.exitEndtime]
this.info = res.data
+ this.placeDetail.lng = res.data.lng
+ this.placeDetail.lat = res.data.lat
}
})
},