diff --git a/src/view/sy_map.vue b/src/view/sy_map.vue index ce05515..35a96a3 100644 --- a/src/view/sy_map.vue +++ b/src/view/sy_map.vue @@ -11,13 +11,8 @@
-
+
{{ item.ages }}
{{ item.rksl }}
@@ -29,13 +24,8 @@
-
+
{{ item.name }}
{{ item.value }}
@@ -49,19 +39,11 @@
-
+
{{ item.name }}
-
+
{{ itemm.name }}
@@ -74,13 +56,8 @@
-
+
{{ item.name }}
@@ -142,7 +119,6 @@ const cs_name_arr = ref([]); const cs_number_name_arr = ref([]); const cs_choose_arr = ref([]); const cs_un_choose_arr = ref([]); -// const cfjiedao = ref(""); const jrcs = ref(false); const title_choose = ref(""); @@ -459,13 +435,13 @@ const addPolygonCounty = () => { // console.log(11111, item.name); // if(item.name !== "溪口镇"){ - // jrcs.value=false; - // console.log( jrcs.value,'000'); + //   jrcs.value=false; + //   console.log( jrcs.value,'000'); // } // if (jrcs.value && item.name != "溪口镇") { - // console.log(1); + //   console.log(1); // } else { - // console.log(2); + //   console.log(2); // jrcs.value=true; if (item.name == cfjiedao.value) { @@ -1881,7 +1857,6 @@ const getData = async (i, e) => { personTotal.value[0].rksl = res.data.total; personTotal.value[0].ages = "总人口"; res.data.age.forEach((item, index) => { - // console.log(index); personTotal.value.push({ id: index + 1, rksl: item.rksl, @@ -1898,11 +1873,27 @@ const getData = async (i, e) => { }); } }); - console.log(mapTownCount, 10001); if (i) { changeRs(i); } }; +const getDatas = async (e, i) => { + await http.get(`/api/ggfwyth/ysyzt/getCssrksl?town=${e}&age=${i || null}`).then((res) => { + if (res.code == 200) { + res.data.committee.map((item) => { + xkzCenter.map((items) => { + if (item.committee == items.name) { + items.number = item.rksl + } + }) + }) + console.log(xkzCenter); + + } + + }); + +}; const reset_font = () => { let width = document.documentElement.clientWidth || document.body.clientWidth; let height = @@ -1923,6 +1914,7 @@ onMounted(() => { reset_font(); initMap(); getData(); + getDatas('溪口镇', null) });