diff --git a/src/view/map_copy.vue b/src/view/map_copy.vue index 17f4202..d46df18 100644 --- a/src/view/map_copy.vue +++ b/src/view/map_copy.vue @@ -120,6 +120,7 @@ import { watch, nextTick, } from "vue"; +import tools from "@/utils/tools"; import initializeMap from "@/utils/mapInitializer.js"; import http from "@/utils/request.js"; import mapTown from "@/assets/json/ly.json"; @@ -322,7 +323,7 @@ const chooseCsList = ref([]); //单选未中社区区块 const unChooseList = ref([]); const sqname = ref(); -const townName = ref(); +// const townName = ref(); //地图街道设置(存放数量) const mapTownCount = reactive([ { @@ -1138,6 +1139,7 @@ const getDatas2 = async (e, i, cs) => { }; //特殊标签 //获取特殊标签 +//特殊标签列表数据请求 const getDataBq = async (jd, cs) => { await http .get(`/api/ggfwyth/ysyzt/getTsbq?csq=${cs || ""}&xzjd=${jd || ""}`) @@ -1161,27 +1163,6 @@ const getDataBq = async (jd, cs) => { }); }; const getDataBqs = async (jd, cs, bq) => { - let data = {}; - let vv = 0; - if (cs == "" && jd == "") { - data = { - tsbq: bq, - }; - vv = 1; - } else if (cs == "") { - data = { - xzjd: jd, - tsbq: bq, - }; - vv = 2; - } else { - data = { - xzjd: jd, - tsbq: bq, - csq: cs, - }; - vv = 3; - } await getDataBqJD(bq); getDataBqs2(cfJd.value, cfCs.value, bq); // await http.get(`/api/ggfwyth/ysyzt/getTsbqByXzjdOrCsq`, data).then((res) => { @@ -1197,6 +1178,7 @@ const getDataBqs = async (jd, cs, bq) => { // } // }); }; +//特殊标签获取街道内部人数 const getDataBqs2 = async (jd, cs, bq, f = true) => { //f用来判断执不执行changeRs2 let data = {}; @@ -1264,7 +1246,7 @@ const getDataBqs2 = async (jd, cs, bq, f = true) => { }); } } else { - console.log("hhhhh", xkzCenter); + // console.log("hhhhh", xkzCenter); if (choose.value.person == "") { addCs(); } else { @@ -1343,10 +1325,10 @@ const to_jd = (item_name) => { map.removeOverlay(currentMarker); } - townName.value = item_name; + // townName.value = item_name; // if (item_name == cfJd.value) { // } else { - console.log(111, choose.value.person); + // console.log(111, choose.value.person); cfJd.value = item_name; let jdCenter = []; if (item_name == "溪口镇") { @@ -1433,7 +1415,7 @@ const addPolygonCounty = () => { map.addOverlay(polygon); polygon.addEventListener("click", () => { - townName.value = item.name; + // townName.value = item.name; if (item.name == cfJd.value) { } else { cfJd.value = item.name; @@ -2146,6 +2128,7 @@ const reset_font = () => { } }; onMounted(() => { + tools.data.set("token","6b0e380b4a8f46baae4923f83faf670d"); reset_font(); initMap(); getData(); @@ -2234,7 +2217,7 @@ onMounted(() => { left: 0; width: 40%; height: 100%; - background:RGBA(53, 85, 114, 0.5); + background:RGBA(53, 85, 114, 0.8); z-index:-1; } .content_item:first-child {