This commit is contained in:
汪汇 2024-07-26 16:44:29 +08:00
parent 2824aae6e8
commit f715f6b749
1 changed files with 37 additions and 5 deletions

View File

@ -706,7 +706,9 @@ const addPolygonCountyCs = () => {
getDataBqs2(cfJd.value, cfCs.value, choose.value.person);
} else {
console.log(2, '溪口镇');
getDataBqs(cfJd.value, cfCs.value)
getDatas2('溪口镇', choose.value.person, cfCs.value);
}
addCsChoose();
addCsUnChoose();
@ -796,6 +798,7 @@ const addCsUnChoose = () => {
cs_un_choose_arr.value.forEach((item, index) => {
map.removeOverlay(cs_qk_arr.value[index]);
});
getDataBqs(cfJd.value, cfCs.value)
getDatas2(cfJd.value, choose.value.person, cfCs.value);
if (choose.value.person == "") {
cs_dd_arr.value.map((item, index) => {
@ -2390,10 +2393,11 @@ const getDataBqs = async (jd, cs, bq) => {
});
});
console.log(mapTownCount, 'mapTownCount');
changeRs2(bq);
if (jd) {
// changeRs2(bq);
choose.value.person = bq
// if (jd) {
getDataBqs2(cfJd.value, cfCs.value, choose.value.person,);
}
// }
}
});
};
@ -2441,8 +2445,36 @@ const getDataBqs2 = async (jd, cs, bq) => {
});
console.log(mapTownCount);
changeRs2(bq);
if (title_choose.value == "") {
} else {
if (sfdd.value) {
if (choose.value.person == "") {
cs_dd_arr.value.forEach((item, index) => {
map.removeOverlay(cs_dd_arr.value[index]);
});
cs_dd_arr.value = [...xuanzhongCs.value];
cs_dd_arr.value.map((item, index) => {
DGcreateCs(item, index);
});
} else {
cs_dd_arr.value.forEach((item, index) => {
map.removeOverlay(cs_dd_arr.value[index]);
});
cs_dd_arr.value = [...xuanzhongCs.value];
cs_dd_arr.value.map((item, index) => {
DGcreateCs2(item, index);
});
}
} else {
console.log("hhhhh", xkzCenter);
if (choose.value.person == "") {
addCs();
} else {
addCs2();
}
}
}
}
});
};
const reset_font = () => {