This commit is contained in:
duanxiaohai 2024-07-25 13:31:00 +08:00
parent 281264d230
commit b55b9c6d13
1 changed files with 18 additions and 18 deletions

View File

@ -502,13 +502,13 @@ const addPolygonCounty = () => {
jdCenter = item.center; jdCenter = item.center;
} }
}); });
console.log(jrcs.value); // console.log(jrcs.value);
if (choose.value.person == "") { if (choose.value.person == "") {
addCs(); addCs();
} else { } else {
addCs2(); addCs2();
} }
console.log("dbfjdsbfjds", choose.value.person); // console.log("dbfjdsbfjds", choose.value.person);
goMapCenter(jdCenter, 13); goMapCenter(jdCenter, 13);
} else { } else {
map.removeEventListener("click", markera); map.removeEventListener("click", markera);
@ -643,7 +643,7 @@ const addPolygonCountyCs = () => {
map.addOverlay(cs_qk_arr.value[index]); map.addOverlay(cs_qk_arr.value[index]);
cs_qk_arr.value[index].addEventListener("click", () => { cs_qk_arr.value[index].addEventListener("click", () => {
cfCs.value = item.name; cfCs.value = item.name;
console.log("cfCs.value", cfCs.value); // console.log("cfCs.value", cfCs.value);
sfdd.value = true; sfdd.value = true;
xkzCenter.forEach((a, b) => { xkzCenter.forEach((a, b) => {
if (a.name == item.name) { if (a.name == item.name) {
@ -680,8 +680,8 @@ const addPolygonCountyCs = () => {
}); });
} }
getDatas2(cfJd.value, choose.value.person, cfCs.value); getDatas2(cfJd.value, choose.value.person, cfCs.value);
console.log("chooseCsList.value", chooseCsList.value); // console.log("chooseCsList.value", chooseCsList.value);
console.log("unChooseList.value", unChooseList.value); // console.log("unChooseList.value", unChooseList.value);
addCsChoose(); addCsChoose();
addCsUnChoose(); addCsUnChoose();
}); });
@ -691,7 +691,7 @@ const addPolygonCountyCs = () => {
// //
const addCsChoose = () => { const addCsChoose = () => {
chooseCsList.value.map((item, index) => { chooseCsList.value.map((item, index) => {
console.log("item11", item.name); // console.log("item11", item.name);
sqname.value = item.name; sqname.value = item.name;
let fillColor = "blue"; let fillColor = "blue";
// //
@ -768,7 +768,7 @@ const addCsUnChoose = () => {
map.removeOverlay(cs_qk_arr.value[index]); map.removeOverlay(cs_qk_arr.value[index]);
}); });
if (choose.value.person == "") { if (choose.value.person == "") {
console.log(1111111111, cs_dd_arr.value); // console.log(1111111111, cs_dd_arr.value);
cs_dd_arr.value.map((item, index) => { cs_dd_arr.value.map((item, index) => {
DGcreateCs(item, index); DGcreateCs(item, index);
}); });
@ -899,7 +899,7 @@ const addCs = () => {
//(,) //(,)
const addCs2 = () => { const addCs2 = () => {
xkzCenter.map((item, index) => { xkzCenter.map((item, index) => {
console.log("addCs2", item); // console.log("addCs2", item);
createCs2(item, index); createCs2(item, index);
}); });
}; };
@ -1020,7 +1020,7 @@ const createCs = (polygon, indexx) => {
}; };
// //
const DGcreateCs = (polygon, indexx) => { const DGcreateCs = (polygon, indexx) => {
console.log("ppppppppp", polygon); // console.log("ppppppppp", polygon);
function createLabelDOM() { function createLabelDOM() {
var content = document.createElement("div"); var content = document.createElement("div");
content.style.display = "flex"; content.style.display = "flex";
@ -1070,7 +1070,7 @@ const DGcreateCs = (polygon, indexx) => {
type: "customOverlay", type: "customOverlay",
}, },
}); });
console.log(cs_dd_arr.value); // console.log(cs_dd_arr.value);
map.addOverlay(cs_dd_arr.value[indexx]); map.addOverlay(cs_dd_arr.value[indexx]);
}; };
const DGcreateCs2 = (polygon, indexx) => { const DGcreateCs2 = (polygon, indexx) => {
@ -1252,7 +1252,7 @@ const choose = ref({
}); });
const changeRs = (id) => { const changeRs = (id) => {
if (choose.value.person == id) { if (choose.value.person == id) {
console.log("重复"); // console.log("");
// chooseArr.value = chooseArr.value.filter((item) => item !== "person"); // chooseArr.value = chooseArr.value.filter((item) => item !== "person");
choose.value.person = ""; choose.value.person = "";
jdm_number_arr.value.forEach((item, index) => { jdm_number_arr.value.forEach((item, index) => {
@ -1283,7 +1283,7 @@ const changeRs = (id) => {
// chooseArr.value.push("jd_noNumber"); // chooseArr.value.push("jd_noNumber");
// } // }
// chooseArr.value.push("person"); // chooseArr.value.push("person");
console.log("new"); // console.log("new");
choose.value.person = id; choose.value.person = id;
choose.value.bq = 9999; choose.value.bq = 9999;
@ -2066,7 +2066,7 @@ const buten = async (item) => {
getDatas("溪口镇", item.age); getDatas("溪口镇", item.age);
}; };
const getData = async (i, e) => { const getData = async (i, e) => {
console.log("iiii", i); // console.log("iiii", i);
await http await http
.get(`/api/ggfwyth/ysyzt/getXzjdrksl?age=${e || ""}`) .get(`/api/ggfwyth/ysyzt/getXzjdrksl?age=${e || ""}`)
.then((res) => { .then((res) => {
@ -2139,7 +2139,7 @@ const getDatas = async (e, i) => {
}); });
}); });
console.log(xkzCenter); // console.log(xkzCenter);
cs_name_arr.value.forEach((item, index) => { cs_name_arr.value.forEach((item, index) => {
map.removeOverlay(cs_name_arr.value[index]); map.removeOverlay(cs_name_arr.value[index]);
}); });
@ -2147,17 +2147,17 @@ const getDatas = async (e, i) => {
map.removeOverlay(cs_number_name_arr.value[index]); map.removeOverlay(cs_number_name_arr.value[index]);
}); });
console.log(cs_dd_arr.value, "cs_dd_arr.value"); // console.log(cs_dd_arr.value, "cs_dd_arr.value");
if (title_choose.value == "") { if (title_choose.value == "") {
} else { } else {
if (sfdd.value) { if (sfdd.value) {
console.log("yyyy"); // console.log("yyyy");
if (choose.value.person == "") { if (choose.value.person == "") {
cs_dd_arr.value.forEach((item, index) => { cs_dd_arr.value.forEach((item, index) => {
map.removeOverlay(cs_dd_arr.value[index]); map.removeOverlay(cs_dd_arr.value[index]);
}); });
cs_dd_arr.value = [...xuanzhongCs.value]; cs_dd_arr.value = [...xuanzhongCs.value];
console.log("rrrrrrrrr", cs_dd_arr.value); // console.log("rrrrrrrrr", cs_dd_arr.value);
cs_dd_arr.value.map((item, index) => { cs_dd_arr.value.map((item, index) => {
DGcreateCs(item, index); DGcreateCs(item, index);
}); });
@ -2166,7 +2166,7 @@ const getDatas = async (e, i) => {
map.removeOverlay(cs_dd_arr.value[index]); map.removeOverlay(cs_dd_arr.value[index]);
}); });
cs_dd_arr.value = [...xuanzhongCs.value]; cs_dd_arr.value = [...xuanzhongCs.value];
console.log("rrrrriiii", cs_dd_arr.value); // console.log("rrrrriiii", cs_dd_arr.value);
cs_dd_arr.value.map((item, index) => { cs_dd_arr.value.map((item, index) => {
DGcreateCs2(item, index); DGcreateCs2(item, index);
}); });