|
@@ -20,12 +20,10 @@ export default {
|
|
|
auditPopupStatus: "normal",
|
|
|
popup: null,
|
|
|
currentCid: null,
|
|
|
- currentHtml: null
|
|
|
+ currentHtml: null,
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- // let a = new Vue()
|
|
|
- // console.log(a,"print Vue");
|
|
|
// 监听全局事件总线中的卷帘对比事件(JLControl)
|
|
|
this.$bus.$on("JLControl", () => {
|
|
|
this.JLControl();
|
|
@@ -60,6 +58,11 @@ export default {
|
|
|
methods: {
|
|
|
// 地图弹窗修改
|
|
|
createDynamicDiv(str) {
|
|
|
+ // 相关属性数据
|
|
|
+ // 表格里的数据
|
|
|
+ let popuppef = this.$refs.auditPopup;
|
|
|
+ let tableArr = popuppef.tableArr;
|
|
|
+ console.log(tableArr, "shuju");
|
|
|
// 根据ref获取组件的dom元素
|
|
|
this.currentHtml = this.$refs.auditPopup.$el.innerHTML;
|
|
|
console.log($(`#${str}_id`), "8888");
|
|
@@ -123,7 +126,9 @@ export default {
|
|
|
// 每次点击按钮后重绘弹窗
|
|
|
if (this.currentHtml && this.currentCid) {
|
|
|
setTimeout(() => {
|
|
|
- this.popup.setContent(this.createDynamicDiv(this.currentCid)).openOn(map2DViewer.map);
|
|
|
+ this.popup
|
|
|
+ .setContent(this.createDynamicDiv(this.currentCid))
|
|
|
+ .openOn(map2DViewer.map);
|
|
|
}, 300);
|
|
|
}
|
|
|
},
|
|
@@ -139,12 +144,13 @@ export default {
|
|
|
"+proj=tmerc +lat_0=0 +lon_0=121.2751921 +k=1 +x_0=-3457147.81 +y_0=0 +ellps=krass +units=m +no_defs",
|
|
|
{
|
|
|
resolutions: [
|
|
|
- 529.1666666666666, 264.5833333333333, 132.29166666666666, 52.916666666666664, 26.458333333333332,
|
|
|
- 13.229166666666666, 5.291666666666666, 2.645833333333333, 1.3229166666666665, 0.5291666666666666,
|
|
|
- 0.2645833333333333, 0.13229166666666664
|
|
|
+ 529.1666666666666, 264.5833333333333, 132.29166666666666,
|
|
|
+ 52.916666666666664, 26.458333333333332, 13.229166666666666,
|
|
|
+ 5.291666666666666, 2.645833333333333, 1.3229166666666665,
|
|
|
+ 0.5291666666666666, 0.2645833333333333, 0.13229166666666664,
|
|
|
],
|
|
|
origin: [-66000, 75000],
|
|
|
- bounds: L.bounds([-65000, -76000], [75000, 72000])
|
|
|
+ bounds: L.bounds([-65000, -76000], [75000, 72000]),
|
|
|
}
|
|
|
);
|
|
|
map2DViewer.map = L.map("map2DViewer", {
|
|
@@ -268,11 +274,13 @@ export default {
|
|
|
}).addTo(map2DViewer.map);
|
|
|
map2DViewer.polygons[`${cid}_layer`].push(polygon);
|
|
|
polygon.infos = infos;
|
|
|
- polygon.on("click", e => {
|
|
|
+ polygon.on("click", (e) => {
|
|
|
// console.log(e, "polygon");
|
|
|
this.auditPopupShow = true;
|
|
|
|
|
|
- this.popup = L.popup({ maxWidth: 700, maxHeight: 600 }).setLatLng(e.latlng).setContent(this.createDynamicDiv("cid"));
|
|
|
+ this.popup = L.popup({ maxWidth: 700, maxHeight: 600 })
|
|
|
+ .setLatLng(e.latlng)
|
|
|
+ .setContent(this.createDynamicDiv("cid"));
|
|
|
// .openOn(map2DViewer.map);
|
|
|
this.auditPopupShow = false;
|
|
|
this.popup.openOn(map2DViewer.map);
|