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

View File

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

View File

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

View File

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