Merge branch 'main' of git.zdool.com:xs/ggfwjsc
This commit is contained in:
commit
0ab81ab624
|
@ -367,7 +367,7 @@ const xkzCenter = reactive([
|
|||
},
|
||||
{
|
||||
name: "大阳家村",
|
||||
center: [119.16442376733693, 29.89890581872806],
|
||||
center: [119.165141274073,28.89860048623702],
|
||||
number: "50",
|
||||
},
|
||||
{
|
||||
|
@ -491,7 +491,13 @@ const addPolygonCounty = () => {
|
|||
let jdCenter = [];
|
||||
if (item.name == "溪口镇") {
|
||||
BMAP();
|
||||
console.log('cjhsbchjs vbchsj',choose.value.person);
|
||||
if(choose.value.person==0){
|
||||
getDatas("溪口镇", '');
|
||||
}else{
|
||||
getDatas("溪口镇", choose.value.person);
|
||||
}
|
||||
|
||||
if (!title_choose.value.includes("溪口镇")) {
|
||||
title_choose.value = title_choose.value + `>${item.name}`;
|
||||
}
|
||||
|
@ -732,10 +738,18 @@ const addCsUnChoose = () => {
|
|||
});
|
||||
map.addOverlay(cs_un_choose_arr.value[index]);
|
||||
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;
|
||||
sfdd.value = true;
|
||||
title_choose.value = title_choose.value.slice(0, -4);
|
||||
title_choose.value = title_choose.value + `>${cfCs.value}`;
|
||||
console.log("添加后", title_choose.value);
|
||||
|
||||
sfdd.value = true;
|
||||
|
||||
cs_dd_arr.value.forEach((item, index) => {
|
||||
map.removeOverlay(cs_dd_arr.value[index]);
|
||||
});
|
||||
|
@ -745,7 +759,6 @@ const addCsUnChoose = () => {
|
|||
cs_choose_arr.value.forEach((item, index) => {
|
||||
map.removeOverlay(cs_choose_arr.value[index]);
|
||||
});
|
||||
title_choose.value = title_choose.value.slice(0, -4);
|
||||
chooseCsList.value.length = 0;
|
||||
unChooseList.value.length = 0;
|
||||
cs_dd_arr.value = [];
|
||||
|
@ -763,7 +776,6 @@ const addCsUnChoose = () => {
|
|||
unChooseList.value.push(itemm);
|
||||
}
|
||||
});
|
||||
title_choose.value = title_choose.value + `>${item.name}`;
|
||||
cs_un_choose_arr.value.forEach((item, index) => {
|
||||
map.removeOverlay(cs_qk_arr.value[index]);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue