This commit is contained in:
汪汇 2024-07-26 17:01:10 +08:00
parent f715f6b749
commit 227b2f1531
1 changed files with 19 additions and 0 deletions

View File

@ -2255,6 +2255,9 @@ const getDatas = async (e, i) => {
cs_number_name_arr.value.forEach((item, index) => { cs_number_name_arr.value.forEach((item, index) => {
map.removeOverlay(cs_number_name_arr.value[index]); map.removeOverlay(cs_number_name_arr.value[index]);
}); });
cs_dd_arr.value.forEach((item, index) => {
map.removeOverlay(cs_dd_arr.value[index]);
});
if (title_choose.value == "") { if (title_choose.value == "") {
} else { } else {
@ -2280,7 +2283,9 @@ const getDatas = async (e, i) => {
console.log("hhhhh", xkzCenter); console.log("hhhhh", xkzCenter);
if (choose.value.person == "") { if (choose.value.person == "") {
addCs(); addCs();
console.log(1, '222222222');
} else { } else {
console.log(2, '222222222');
addCs2(); addCs2();
} }
} }
@ -2445,6 +2450,16 @@ const getDataBqs2 = async (jd, cs, bq) => {
}); });
console.log(mapTownCount); console.log(mapTownCount);
changeRs2(bq); changeRs2(bq);
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]);
});
cs_dd_arr.value.forEach((item, index) => {
map.removeOverlay(cs_dd_arr.value[index]);
});
if (title_choose.value == "") { if (title_choose.value == "") {
} else { } else {
if (sfdd.value) { if (sfdd.value) {
@ -2468,8 +2483,12 @@ const getDataBqs2 = async (jd, cs, bq) => {
} else { } else {
console.log("hhhhh", xkzCenter); console.log("hhhhh", xkzCenter);
if (choose.value.person == "") { if (choose.value.person == "") {
console.log(2, '222222222');
addCs(); addCs();
} else { } else {
console.log(1, '222222222');
addCs2(); addCs2();
} }
} }