This commit is contained in:
汪汇 2024-07-26 16:35:26 +08:00
parent 1a4515dd41
commit 2824aae6e8
1 changed files with 3 additions and 6 deletions

View File

@ -534,7 +534,7 @@ const addPolygonCounty = () => {
getDataBq(cfJd.value, ""); getDataBq(cfJd.value, "");
} else 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") { } else 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") {
getDataBq(cfJd.value, ""); getDataBq(cfJd.value, "");
getDataBqs2(cfJd.value, '', choose.value.person,); getDataBqs2(cfJd.value, cfCs.value, choose.value.person,);
console.log(3); console.log(3);
} else { } else {
console.log(4); console.log(4);
@ -702,12 +702,11 @@ const addPolygonCountyCs = () => {
}); });
} }
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") { 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, '');
getDataBq(cfJd.value, cfCs.value) getDataBq(cfJd.value, cfCs.value)
getDataBqs2(cfJd.value, cfCs.value, choose.value.person);
} else { } else {
console.log(2, '溪口镇'); console.log(2, '溪口镇');
getDatas2('溪口镇', choose.value.person, cfCs.value); getDatas2('溪口镇', choose.value.person, cfCs.value);
getDataBq(cfJd.value, cfCs.value)
} }
addCsChoose(); addCsChoose();
addCsUnChoose(); addCsUnChoose();
@ -798,7 +797,6 @@ const addCsUnChoose = () => {
map.removeOverlay(cs_qk_arr.value[index]); map.removeOverlay(cs_qk_arr.value[index]);
}); });
getDatas2(cfJd.value, choose.value.person, cfCs.value); getDatas2(cfJd.value, choose.value.person, cfCs.value);
getDataBq(cfJd.value, cfCs.value)
if (choose.value.person == "") { if (choose.value.person == "") {
cs_dd_arr.value.map((item, index) => { cs_dd_arr.value.map((item, index) => {
DGcreateCs(item, index); DGcreateCs(item, index);
@ -2394,9 +2392,8 @@ const getDataBqs = async (jd, cs, bq) => {
console.log(mapTownCount, 'mapTownCount'); console.log(mapTownCount, 'mapTownCount');
changeRs2(bq); changeRs2(bq);
if (jd) { if (jd) {
addCs2(); getDataBqs2(cfJd.value, cfCs.value, choose.value.person,);
} }
} }
}); });
}; };