diff --git a/src/view/sy_mapcopy.vue b/src/view/sy_mapcopy.vue index 2627da5..abc14d1 100644 --- a/src/view/sy_mapcopy.vue +++ b/src/view/sy_mapcopy.vue @@ -1243,7 +1243,7 @@ const getDatas = async (e, i) => { } }); } - + } }); }; @@ -1302,6 +1302,29 @@ const getDatas2 = async (e, i, cs) => { } }); }); + // 年龄百分比 + const agename = [ + "09Percent", + "1019Percent", + "2029Percent", + "3039Percent", + "4049Percent", + "5059Percent", + "6069Percent", + "7079Percent", + "8089Percent", + "9099Percent", + "100nlPercent", + ]; + if (res.data.ageGroupsPercent) { + console.log(PopulationRatio.value[0].progress); + agename.forEach((key, index) => { + if (PopulationRatio.value[index]) { + PopulationRatio.value[index].progress = + res.data.ageGroupsPercent[key]; + } + }); + } } }); }; @@ -2667,9 +2690,9 @@ onMounted(() => { color: #6bfeff; text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5); } - .content_item_value { - // display: flex; - } + // .content_item_value { + // // display: flex; + // } .choose { background-image: url(@/assets/images/map/choose.png) !important;