From 7e00aa30a9f53bd172b48626e7ba9eeaa83adce4 Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Thu, 3 Nov 2022 15:01:20 +0800
Subject: [PATCH] =?UTF-8?q?=20=20=E5=9C=B0=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/activitiesAdd.vue | 26 ++++++++++++++++---
1 file changed, 22 insertions(+), 4 deletions(-)
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
}
})
},