This commit is contained in:
duanxiaohai 2024-07-25 16:52:26 +08:00
parent 516e8d7f6b
commit 0d914ad913
1 changed files with 30 additions and 0 deletions

View File

@ -1449,6 +1449,13 @@ const personTotal = ref([
ages: "12岁", ages: "12岁",
age: "1000", age: "1000",
}, },
{
id: 14,
name: "死亡总人口",
value: "5650",
ages: "死亡总人口",
age: "1000",
},
]); ]);
// //
@ -2076,9 +2083,18 @@ const getData = async (i, e) => {
age: "", age: "",
value: "res.data.total", value: "res.data.total",
}, },
{
id: "6666",
name: "死亡总人口",
value: "5650",
ages: "死亡总人口",
age: "1000",
},
]; ];
personTotal.value[0].rksl = res.data.total; personTotal.value[0].rksl = res.data.total;
personTotal.value[0].ages = "总人口"; personTotal.value[0].ages = "总人口";
personTotal.value[1].rksl = res.data.swrs;
personTotal.value[1].ages = "死亡";
res.data.age.forEach((item, index) => { res.data.age.forEach((item, index) => {
personTotal.value.push({ personTotal.value.push({
id: index + 1, id: index + 1,
@ -2095,6 +2111,7 @@ const getData = async (i, e) => {
// } // }
// }); // });
// }); // });
console.log(111, res.data.townWwrs);
mapTownCount.map((item) => { mapTownCount.map((item) => {
item.number = 0; item.number = 0;
res.data.town.map((items) => { res.data.town.map((items) => {
@ -2387,6 +2404,19 @@ onMounted(() => {
background-size: 100% 100%; background-size: 100% 100%;
margin-bottom: 12px; margin-bottom: 12px;
} }
.content_item:nth-child(2) {
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
padding: 24px;
width: 100%;
height: 57px;
background-image: url(@/assets/images/map/unchoose.png);
background-repeat: no-repeat;
background-size: 100% 100%;
margin-bottom: 12px;
}
.content_item_name { .content_item_name {
position: relative; position: relative;