This commit is contained in:
姚宇浩 2024-07-29 13:46:02 +08:00
parent eb24470f80
commit fd3655a095
1 changed files with 15 additions and 11 deletions

View File

@ -548,6 +548,7 @@ const addPolygonCounty = () => {
cfJd.value = item.name;
let jdCenter = [];
if (item.name == "溪口镇") {
console.log(444444444, choose.value.person);
BMAP();
getDatas("溪口镇", "");
getDataBq(cfJd.value, "");
@ -561,9 +562,8 @@ const addPolygonCounty = () => {
choose.value.person == "kjer"
) {
console.log(5555555555555555);
// getDataBq(cfJd.value, "");
getDataBqs2(cfJd.value, cfCs.value, choose.value.person, false);
} else {
} else if (choose.value.person != "") {
getDatas("溪口镇", choose.value.person);
}
@ -729,12 +729,10 @@ const addPolygonCountyCs = () => {
) {
getDataBqs2(cfJd.value, cfCs.value, choose.value.person, false);
} else {
console.log(2, "溪口镇");
// console.log(2, "");
getDataBqs(cfJd.value, cfCs.value);
// getDatas2("", choose.value.person, cfCs.value);
// getDatas2("", choose.value.person, cfCs.value);
}
//
getDatas2(cfJd.value, choose.value.person, cfCs.value);
addCsChoose();
addCsUnChoose();
@ -834,7 +832,7 @@ const addCsUnChoose = () => {
map.removeOverlay(cs_qk_arr.value[index]);
});
getDataBqs(cfJd.value, cfCs.value);
getDataBq(cfJd.value, cfCs.value);
getDataBq(cfJd.value, cfCs.value);
getDatas2(cfJd.value, choose.value.person, cfCs.value);
if (
choose.value.person == "cjr" ||
@ -1461,7 +1459,7 @@ const changeFwq = async (id, list, center, name, names) => {
await getServiceCircle(names, name);
choose.value.fwq = id;
map.clearOverlays(); //
choose.value.person=''
choose.value.person = "";
addggfwq(); //
setTimeout(() => {
goMapCenter(center, 16); //
@ -2245,6 +2243,9 @@ const getServiceCircle = async (communityName, townName) => {
//
const getData = async (i, e) => {
if (e == "9999") {
e = "";
}
await http
.get(`/api/ggfwyth/ysyzt/getXzjdrksl?age=${e || ""}`)
.then((res) => {
@ -2252,7 +2253,7 @@ const getData = async (i, e) => {
if (cfJd.value == "") {
personTotal.value = [
{
id: "0",
id: "9999",
ages: "总人口",
age: "",
value: "res.data.total",
@ -2301,6 +2302,9 @@ const getData = async (i, e) => {
}
};
const getDatas = async (e, i) => {
if (i == "9999") {
i = "";
}
await http
.get(`/api/ggfwyth/ysyzt/getCssrksl?town=${e}&age=${i || ""}`)
.then((res) => {
@ -2309,7 +2313,7 @@ const getDatas = async (e, i) => {
} else if (cfJd.value !== "") {
personTotal.value = [
{
id: "0",
id: "9999",
ages: "总人口",
age: "",
value: "res.data.total",
@ -2422,7 +2426,7 @@ const getDatas2 = async (e, i, cs) => {
if (res.code == 200) {
personTotal.value = [
{
id: "0",
id: "9999",
ages: "总人口",
age: "",
value: "res.data.total",