From 8f3874f4b960cd3a3af1dfe1ebaf8bc3e42a655a Mon Sep 17 00:00:00 2001 From: duanxiaohai <1812246227@qq.com> Date: Wed, 15 May 2024 17:30:56 +0800 Subject: [PATCH] gx --- src/view/echarts_yl/pie3d.vue | 968 ++++++++++++++++++---------------- src/view/yl.vue | 21 +- 2 files changed, 525 insertions(+), 464 deletions(-) diff --git a/src/view/echarts_yl/pie3d.vue b/src/view/echarts_yl/pie3d.vue index 6c11250..70396c4 100644 --- a/src/view/echarts_yl/pie3d.vue +++ b/src/view/echarts_yl/pie3d.vue @@ -1,492 +1,546 @@ diff --git a/src/view/yl.vue b/src/view/yl.vue index acb8af4..4840623 100644 --- a/src/view/yl.vue +++ b/src/view/yl.vue @@ -136,10 +136,10 @@
-
588811
-
18%
+
{{ data.oldAgeTotal }}
+
{{ data.oldAgePercent }}%
- +
@@ -156,7 +156,7 @@
- {{data.yljgzlzx.yljg}} + {{ data.yljgzlzx.yljg }}
@@ -170,7 +170,7 @@
-->
- {{data.yljgzlzx.zlzx}} + {{ data.yljgzlzx.zlzx }}
@@ -203,8 +203,7 @@ alt="" />
- +
@@ -248,6 +247,9 @@ const data = reactive({ leftbottom3: [], leftbottom4: [], leftbottomYear: [], + oldAgePercent: "", + oldAgeTotal: "", + rkgk: [], centerBottom1: [], centerBottom2: [], centerBottomYear: [], @@ -300,6 +302,11 @@ const getData = async () => { }); // 年份 data.leftbottomYear = res.data.tkdbOldAge.year; + // 老年人各年龄及占比 + data.oldAgePercent = res.data.lnrgnljzb.oldAgePercent; + data.oldAgeTotal = res.data.lnrgnljzb.oldAgeTotal; + data.rkgk = res.data.lnrgnljzb.rkgk; + // 计划生育 res.data.familyPlanning.familyPlanningData.forEach((element) => { data.centerBottom1.push(element.jhsyrs); // 人次