@@ -120,7 +120,7 @@
changadd,
changedit
} from '../../api/information'
- import newmap from "@/components/newmap/index";
+ import newmap from "@/components/newmap/indexall";
export default {
components: {
upimg,
@@ -238,9 +238,10 @@
updatecenter(e) {
console.error('-----------', e)
- this.ruleForm.detailedLocation = e.address
- this.lat = e.lat
- this.lng = e.lng
+ this.lat = e[0].lat
+ this.lng = e[0].lng
+ this.ruleForm.detailedLocation = JSON.stringify(e)
+
},
changimg(e, type) {
this.ruleForm[type] = e
diff --git a/admin-web-master/src/components/chakan/cd.vue b/admin-web-master/src/components/chakan/cd.vue
index e7d3ce4..7aac1e9 100644
--- a/admin-web-master/src/components/chakan/cd.vue
+++ b/admin-web-master/src/components/chakan/cd.vue
@@ -53,12 +53,12 @@
-
+
-
+
@@ -249,7 +249,7 @@
cereBusinessOperationqueryByPage,
cereContractInformation
} from '@/api/newly';
- import newmap from "@/components/newmap/index";
+ import newmap from "@/components/newmap/indexall";
import {
changedit
} from '@/api/information'
diff --git a/admin-web-master/src/components/newmap/indexall.vue b/admin-web-master/src/components/newmap/indexall.vue
new file mode 100644
index 0000000..762cacd
--- /dev/null
+++ b/admin-web-master/src/components/newmap/indexall.vue
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/admin-web-master/src/components/newmap/map.vue b/admin-web-master/src/components/newmap/map.vue
index f584265..1fc6272 100644
--- a/admin-web-master/src/components/newmap/map.vue
+++ b/admin-web-master/src/components/newmap/map.vue
@@ -70,9 +70,14 @@ export default {
item.lng = parseFloat(list[1]);
item.name = this.ontype == '1' ? item.shopName : this.ontype == '2' ? item.advertisingName : this.ontype == '3' ? item.venueName :'无';
const markerLatLng = new qq.maps.LatLng(item.lat, item.lng);
+ const customIconUrl1 = require('@/assets/images/icon4.png'); // 确保返回的是 URL 字符串
+ const customIconUrl2 = require('@/assets/images/icon6.png'); // 确保返回的是 URL 字符串
+ const customIconUrl3 = require('@/assets/images/icon5.png'); // 确保返回的是 URL 字符串
+ const icon = this.ontype == '1'?customIconUrl1:this.ontype == '2'?customIconUrl2:this.ontype =='3'?customIconUrl3:''
const marker = new qq.maps.Marker({
position: markerLatLng,
- map: this.map
+ map: this.map,
+ icon:icon
});
// 为标记添加点击事件监听器
@@ -87,10 +92,11 @@ export default {
showInfoWindow(marker, item) {
// 设置信息窗口的内容
const content = `
-
-
资源名称: ${item.name}
-
位置: ${item.detailedLocation}
-
+
+
资源名称:${item.name}
+
位置:${item.detailedLocation}
+
租赁情况:${item.publishStatus=='0'?'空置中':item.publishStatus=='1'?'待审核':item.publishStatus=='2'?'已发布':item.publishStatus=='3'?'不通过':item.publishStatus=='4'?'已租赁':'-'}
+
`;
//
//
diff --git a/admin-web-master/src/components/newmap/map2.vue b/admin-web-master/src/components/newmap/map2.vue
new file mode 100644
index 0000000..76d3464
--- /dev/null
+++ b/admin-web-master/src/components/newmap/map2.vue
@@ -0,0 +1,227 @@
+
+
+
+
+
+
+
\ No newline at end of file