Merge branch 'main' of git.zdool.com:xs/ggfwjsc

This commit is contained in:
duanxiaohai 2024-07-31 14:36:49 +08:00
commit 4f414f6e32
2 changed files with 7008 additions and 113761 deletions

File diff suppressed because it is too large Load Diff

View File

@ -896,6 +896,7 @@ const BMAP = () => {
map.addEventListener("click", markera);
};
const markera = (e) => {
console.log(e.latlng.lng, e.latlng.lat);
//
if (currentMarker !== null) {
map.removeOverlay(currentMarker);
@ -1596,7 +1597,6 @@ const loadTown = () => {
});
}
} else {
console.log("长度超过60");
mapTownDataDK.push({
name: v.properties.name,
point: v.geometry.coordinates[0],
@ -1857,7 +1857,7 @@ const loadCs = (name) => {
}
xkzCenter.push({
name: v.properties.name,
center: [119.2002156322304, 28.83866363229786],
center: v.properties.center,
});
} else {
xkzDk.push({
@ -1866,7 +1866,7 @@ const loadCs = (name) => {
});
xkzCenter.push({
name: v.properties.name,
center: [119.2002156322304, 28.83866363229786],
center: v.properties.center,
});
}
}
@ -1893,60 +1893,62 @@ const addPolygonCountyCs = () => {
});
map.addOverlay(cs_qk_arr.value[index]);
cs_qk_arr.value[index].addEventListener("click", () => {
cfCs.value = item.name;
title_cs.value = item.name;
sfdd.value = true;
xkzCenter.forEach((a, b) => {
if (a.name == item.name) {
cs_dd_arr.value.push(a);
xuanzhongCs.value.push(a);
}
});
chooseCsList.value.length = 0;
unChooseList.value.length = 0;
xkzDk.forEach((itemm, indexx) => {
if (itemm.name == item.name) {
chooseCsList.value.push(itemm);
} else {
unChooseList.value.push(itemm);
}
});
cs_qk_arr.value.forEach((item, index) => {
map.removeOverlay(cs_qk_arr.value[index]);
});
cs_name_arr.value.forEach((item, index) => {
map.removeOverlay(cs_name_arr.value[index]);
});
cs_number_name_arr.value.forEach((item, index) => {
map.removeOverlay(cs_number_name_arr.value[index]);
});
getDataBq(cfJd.value, cfCs.value);
if (
choose.value.person == "cjr" ||
choose.value.person == "dibian" ||
choose.value.person == "db" ||
choose.value.person == "gxy" ||
choose.value.person == "tnb" ||
choose.value.person == "tyjr" ||
choose.value.person == "kjer"
) {
getDataBqs2(cfJd.value, cfCs.value, choose.value.person, false);
} else {
// getDataBqs(cfJd.value, cfCs.value);
}
//
getDatas2(cfJd.value, choose.value.person, cfCs.value);
addCsChoose();
addCsUnChoose();
if (choose.value.person == "") {
cs_dd_arr.value.map((item, index) => {
DGcreateCs(item, index);
});
} else {
cs_dd_arr.value.map((item, index) => {
DGcreateCs2(item, index);
});
}
alert(item.name);
// cfCs.value = item.name;
// title_cs.value = item.name;
// sfdd.value = true;
// xkzCenter.forEach((a, b) => {
// if (a.name == item.name) {
// cs_dd_arr.value.push(a);
// xuanzhongCs.value.push(a);
// }
// });
// chooseCsList.value.length = 0;
// unChooseList.value.length = 0;
// xkzDk.forEach((itemm, indexx) => {
// if (itemm.name == item.name) {
// chooseCsList.value.push(itemm);
// } else {
// unChooseList.value.push(itemm);
// }
// });
// cs_qk_arr.value.forEach((item, index) => {
// map.removeOverlay(cs_qk_arr.value[index]);
// });
// cs_name_arr.value.forEach((item, index) => {
// map.removeOverlay(cs_name_arr.value[index]);
// });
// cs_number_name_arr.value.forEach((item, index) => {
// map.removeOverlay(cs_number_name_arr.value[index]);
// });
// getDataBq(cfJd.value, cfCs.value);
// if (
// choose.value.person == "cjr" ||
// choose.value.person == "dibian" ||
// choose.value.person == "db" ||
// choose.value.person == "gxy" ||
// choose.value.person == "tnb" ||
// choose.value.person == "tyjr" ||
// choose.value.person == "kjer"
// ) {
// getDataBqs2(cfJd.value, cfCs.value, choose.value.person, false);
// } else {
// // getDataBqs(cfJd.value, cfCs.value);
// }
// //
// getDatas2(cfJd.value, choose.value.person, cfCs.value);
// addCsChoose();
// addCsUnChoose();
// if (choose.value.person == "") {
// cs_dd_arr.value.map((item, index) => {
// DGcreateCs(item, index);
// });
// } else {
// cs_dd_arr.value.map((item, index) => {
// DGcreateCs2(item, index);
// });
// }
});
}
});
@ -2059,7 +2061,7 @@ const addCsUnChoose = () => {
cs_dd_arr.value.map((item, index) => {
DGcreateCs2(item, index);
});
}, 400);
}, 600);
}
addCsChoose();
addCsUnChoose();