From 5b83ffc8faac5de1160daafd23d724fd6369e57c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E6=9D=B0?= <>
Date: Fri, 2 Feb 2024 15:14:00 +0800
Subject: [PATCH] address
---
.../src/components/mapComponent/index.vue | 29 ++++++++++++++-----
.../views/enterpriserecyclestation/form.vue | 15 +++++-----
2 files changed, 29 insertions(+), 15 deletions(-)
diff --git a/jnpf-java-boot/jnpf-web/src/components/mapComponent/index.vue b/jnpf-java-boot/jnpf-web/src/components/mapComponent/index.vue
index 4fcb21d..8cbb217 100644
--- a/jnpf-java-boot/jnpf-web/src/components/mapComponent/index.vue
+++ b/jnpf-java-boot/jnpf-web/src/components/mapComponent/index.vue
@@ -1,8 +1,8 @@
@@ -23,12 +23,25 @@
visibleMap: {
type: Boolean,
default: false,
- }
+ },
+ address: {
+ type: String,
+ default: '',
+ },
+ longitude: {
+ type: String,
+ default: '',
+ },
+ latitude: {
+ type: String,
+ default: '',
+ },
+
},
data() {
return {
visible: this.visibleMap,
- map_src: 'https://mapapi.qq.com/web/mapComponents/locationPicker/v/index.html?search=1&type=1&key=U24BZ-7UECT-ZSNXI-L3GJD-GZD3E-3YFF6&referer=myapp',
+ map_src: 'https://mapapi.qq.com/web/mapComponents/locationPicker/v/index.html?policy=1&search=1&type=1&key=U24BZ-7UECT-ZSNXI-L3GJD-GZD3E-3YFF6&referer=myapp',
form: {
//省市区ID
id_area: [
@@ -41,10 +54,10 @@
lat: '',
},
map_data: {
- url: 'https://mapapi.qq.com/web/mapComponents/locationPicker/v/index.html?search=1&type=1&key=U24BZ-7UECT-ZSNXI-L3GJD-GZD3E-3YFF6&referer=myapp',
- address: '',
- lng: '',
- lat: '',
+ url: 'https://mapapi.qq.com/web/mapComponents/locationPicker/v/index.html?policy=1&search=1&type=1&key=U24BZ-7UECT-ZSNXI-L3GJD-GZD3E-3YFF6&referer=myapp',
+ address: this.address,
+ lng: this.longitude,
+ lat: this.latitude,
},
}
},
diff --git a/jnpf-java-boot/jnpf-web/src/views/enterpriserecyclestation/form.vue b/jnpf-java-boot/jnpf-web/src/views/enterpriserecyclestation/form.vue
index 5c73ed7..37ade10 100644
--- a/jnpf-java-boot/jnpf-web/src/views/enterpriserecyclestation/form.vue
+++ b/jnpf-java-boot/jnpf-web/src/views/enterpriserecyclestation/form.vue
@@ -48,10 +48,10 @@
-
-
+
+
- 选择站点
+ 选择地址
@@ -114,12 +114,12 @@
-
+
@@ -234,7 +234,7 @@
-
+
@@ -460,6 +460,7 @@ export default {
this.dataForm.longitude = valObj.lng
this.dataForm.latitude = valObj.lat
console.log('位置信息',valObj)
+ debugger
this.visibleMap = false
},
prev() {
@@ -838,7 +839,7 @@ export default {
align-items: flex-start;
margin-left: 0!important;
.input {
- width: 200px!important;
+ width: 300px!important;
margin-right: 10px;
}
}