This commit is contained in:
姚宇浩 2024-09-30 11:59:44 +08:00
parent 91c889f8a6
commit 04f2e39525
5 changed files with 32 additions and 19 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -50,9 +50,8 @@ data.list.forEach((item) => {
legendData.push(item.name);
});
data.list.push({
name: "总数",
name: "",
value: sum,
tooltip: { formatter: () => "" },
itemStyle: { normal: { color: "rgba(0, 0, 0, 0)" } },
});
const colorList = [
@ -149,9 +148,9 @@ const getOption = () => {
var arr = [
"{a|" + params + "}",
"{b|" +num + "人}",
"{c|" + value + "% }",
"{c|" + value + "%}",
];
if (params == "总数") {
if (params == "") {
return ''
}else{
return arr.join(" ");

View File

@ -59,9 +59,8 @@ data.list.forEach((item) => {
legendData.push(item.name);
});
data.list.push({
name: "总数",
name: "",
value: sum,
tooltip: { formatter: () => "" },
itemStyle: { normal: { color: "rgba(0, 0, 0, 0)" } },
});
const colorList = [
@ -113,7 +112,8 @@ const getOption = () => {
value = data.list[i].value;
}
}
if (params == "总数") {
if (params == "") {
return ''
} else {
return `${params}${value}%`;
}

View File

@ -142,7 +142,7 @@ const login = () => {
// console.log( 555,res, auth__code);
if (res.auth_code) {
http
.post(`/api/ggfwyth/ding/one_click_login?authCode=${res.auth_code}`)
.post(`/api/ggfwyth/ding/one_click_login/${res.auth_code}`)
.then((response) => {
if (response.code == 200) {
console.log("response", response);

View File

@ -1076,10 +1076,14 @@ const pagination = reactive({
//
const initMap = () => {
map = new BMapGL.Map("map", { minZoom: 8, maxZoom: 20 });
let type = tools.data.get("type");
if(type==1){
}else{
map.setMapType(BMAP_SATELLITE_MAP);
}
map.enableScrollWheelZoom(true);
goMapCenter([119.178783, 29.034583], 11);
//
loadTown();
//
@ -2534,13 +2538,13 @@ const getDataBqs3 = async (jd, cs, bq) => {
});
});
cs_dd_arr.value = [...xuanzhongCs.value];
// cs_dd_arr.value = [...xuanzhongCs.value];
if (choose.value.person == "") {
cs_dd_arr.value.map((item, index) => {
DGcreateCs(item, index);
});
} else {
console.log(cs_dd_arr.value);
console.log(666666,cs_dd_arr.value);
cs_dd_arr.value.map((item, index) => {
DGcreateCs2(item, index);
});
@ -3624,6 +3628,7 @@ const addPolygonCounty = () => {
// townName.value = item.name;
if (item.name == cfJd.value) {
} else {
console.log('街道1');
loadingss.value = true;
clear();
xkzDk.length = 0;
@ -3638,16 +3643,20 @@ const addPolygonCounty = () => {
}
});
goMapCenter(jdCenter, 13);
console.log('街道2');
await getDataBq(cfJd.value, "");
if (choose.value.person == "") {
console.log('街道3');
await getDatas(cfJd.value, "");
loadingss.value = false;
}
if (tsbq_pp.value.includes(choose.value.person)) {
console.log('街道4');
await getDatas(cfJd.value, "", false);
//使awaitloadingloading
getDataBqs4(cfJd.value, cfCs.value, choose.value.person);
} else if (choose.value.person != "") {
console.log('街道5');
if (choose.value.person == "9999") {
await getDatas(cfJd.value, "");
loadingss.value = false;
@ -3658,7 +3667,12 @@ const addPolygonCounty = () => {
}
if (title_jd.value == item.name) {
} else {
console.log('街道6');
setTimeout(() => {
console.log('街道7');
title_jd.value = item.name;
},1000)
}
}
});
@ -3864,15 +3878,15 @@ const addPolygonCountyCs = () => {
});
map.addOverlay(cs_qk_arr.value[index]);
cs_qk_arr.value[index].addEventListener("click", async () => {
// if(item.name == '' || item.name == '' || item.name == '' || item.name=='' || item.name=='' || item.name==''){
// isclick.value=item.name;
// }else{
// isclick.value=item.name;
// }
console.log('村社1');
if (drawing.value) {
return;
}
if(!title_jd.value){
console.log('村社2');
return
}
console.log('村社3');
loadingss.value = true;
cs_dd_arr.value = [];
xuanzhongCs.value = [];