From 872545b9a21ec9af8060bc9b83091ed316e1876e Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 07 Mar 2023 09:58:23 +0800
Subject: [PATCH] 火灾管理添加地图定位
---
src/views/fire/fireSupplement.vue | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/views/fire/fireSupplement.vue b/src/views/fire/fireSupplement.vue
index d429223..02c9089 100644
--- a/src/views/fire/fireSupplement.vue
+++ b/src/views/fire/fireSupplement.vue
@@ -11,7 +11,7 @@
<avue-form ref="form" v-model="form" :option="option"></avue-form>
</el-col>
<el-col :span="12">
- <OpenLayersMap></OpenLayersMap>
+ <OpenLayersMap ref="olMap" :mapLocation="mapLocation"></OpenLayersMap>
</el-col>
</el-row>
</el-card>
@@ -611,6 +611,9 @@
policeResourcesData: [],
policeResourcesForm: {},
isDetail: false,
+ mapLocation:{
+ isDetail:false
+ },
}
},
created() {
@@ -751,6 +754,11 @@
this.economicOption.menu = false
this.damageAreaOption.menu = false
this.policeResourcesOption.menu = false
+
+ this.mapLocation = {
+ isDetail:true,
+ location:[this.form.lon,this.form.lat]
+ }
},
goToList() {
this.isDetail = false
--
Gitblit v1.9.3