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

This commit is contained in:
duanxiaohai 2024-07-25 13:31:04 +08:00
commit 0ab81ab624
1 changed files with 18 additions and 6 deletions

View File

@ -367,7 +367,7 @@ const xkzCenter = reactive([
}, },
{ {
name: "大阳家村", name: "大阳家村",
center: [119.16442376733693, 29.89890581872806], center: [119.165141274073,28.89860048623702],
number: "50", number: "50",
}, },
{ {
@ -491,7 +491,13 @@ const addPolygonCounty = () => {
let jdCenter = []; let jdCenter = [];
if (item.name == "溪口镇") { if (item.name == "溪口镇") {
BMAP(); BMAP();
console.log('cjhsbchjs vbchsj',choose.value.person);
if(choose.value.person==0){
getDatas("溪口镇", '');
}else{
getDatas("溪口镇", choose.value.person); getDatas("溪口镇", choose.value.person);
}
if (!title_choose.value.includes("溪口镇")) { if (!title_choose.value.includes("溪口镇")) {
title_choose.value = title_choose.value + `>${item.name}`; title_choose.value = title_choose.value + `>${item.name}`;
} }
@ -732,10 +738,18 @@ const addCsUnChoose = () => {
}); });
map.addOverlay(cs_un_choose_arr.value[index]); map.addOverlay(cs_un_choose_arr.value[index]);
cs_un_choose_arr.value[index].addEventListener("click", () => { cs_un_choose_arr.value[index].addEventListener("click", () => {
console.log(cfCs.value, cfCs.value.length);
title_choose.value = title_choose.value.slice(
0,
-(cfCs.value.length + 1)
);
console.log("删除后", title_choose.value);
cfCs.value = item.name; cfCs.value = item.name;
sfdd.value = true;
title_choose.value = title_choose.value.slice(0, -4);
title_choose.value = title_choose.value + `>${cfCs.value}`; title_choose.value = title_choose.value + `>${cfCs.value}`;
console.log("添加后", title_choose.value);
sfdd.value = true;
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]);
}); });
@ -745,7 +759,6 @@ const addCsUnChoose = () => {
cs_choose_arr.value.forEach((item, index) => { cs_choose_arr.value.forEach((item, index) => {
map.removeOverlay(cs_choose_arr.value[index]); map.removeOverlay(cs_choose_arr.value[index]);
}); });
title_choose.value = title_choose.value.slice(0, -4);
chooseCsList.value.length = 0; chooseCsList.value.length = 0;
unChooseList.value.length = 0; unChooseList.value.length = 0;
cs_dd_arr.value = []; cs_dd_arr.value = [];
@ -763,7 +776,6 @@ const addCsUnChoose = () => {
unChooseList.value.push(itemm); unChooseList.value.push(itemm);
} }
}); });
title_choose.value = title_choose.value + `>${item.name}`;
cs_un_choose_arr.value.forEach((item, index) => { cs_un_choose_arr.value.forEach((item, index) => {
map.removeOverlay(cs_qk_arr.value[index]); map.removeOverlay(cs_qk_arr.value[index]);
}); });