This commit is contained in:
姚宇浩 2024-06-06 10:10:59 +08:00
parent 11a48c1ad3
commit c1894e88d2
1 changed files with 13 additions and 9 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="module"> <div class="module" >
<div class="displayFlex left_bg"> <div class="displayFlex left_bg">
<div class="flex1"> <div class="flex1">
<div class="yd_title left_1"> <div class="yd_title left_1">
@ -36,7 +36,7 @@
</span> </span>
</div> </div>
<ePie <ePie
v-if="leftchoose.first == '1'" v-if="leftchoose.first == '1' && showR"
:list1="data.leftTop1" :list1="data.leftTop1"
:list2="data.leftTop2" :list2="data.leftTop2"
:year="data.leftTopYear" :year="data.leftTopYear"
@ -85,7 +85,7 @@
</span> </span>
</div> </div>
<eP2 <eP2
v-if="leftchoose.second == '1'" v-if="leftchoose.second == '1' && showR"
:list1="data.leftCenter1" :list1="data.leftCenter1"
:list2="data.leftCenter2" :list2="data.leftCenter2"
:year="data.leftCenterYear" :year="data.leftCenterYear"
@ -134,7 +134,7 @@
</span> </span>
</div> </div>
<eP3 <eP3
v-if="leftchoose.third == '1'" v-if="leftchoose.third == '1' && showR"
:list1="data.leftbottom1" :list1="data.leftbottom1"
:list2="data.leftbottom2" :list2="data.leftbottom2"
:year="data.leftbottomYear" :year="data.leftbottomYear"
@ -163,7 +163,7 @@
<div class="mtpText1">{{ data.oldAgeTotal }}</div> <div class="mtpText1">{{ data.oldAgeTotal }}</div>
<div class="mtpText2">{{ data.oldAgePercent }}%</div> <div class="mtpText2">{{ data.oldAgePercent }}%</div>
</div> </div>
<ePie3d :list="data.rkgk"></ePie3d> <ePie3d v-if="showR" :list="data.rkgk"></ePie3d>
</div> </div>
<div class="flex1"> <div class="flex1">
<div class="yd_title familyPlanning"> <div class="yd_title familyPlanning">
@ -173,6 +173,7 @@
</div> </div>
</div> </div>
<ylJHSY <ylJHSY
v-if="showR"
:list1="data.centerBottom1" :list1="data.centerBottom1"
:list2="data.centerBottom2" :list2="data.centerBottom2"
:year="data.centerBottomYear" :year="data.centerBottomYear"
@ -248,7 +249,7 @@
src="@/assets/YLimg/ylimg8.png" src="@/assets/YLimg/ylimg8.png"
alt="" alt=""
/> />
<ylSMFW :list="data.smfwcs"></ylSMFW> <ylSMFW v-if="showR" :list="data.smfwcs"></ylSMFW>
</div> </div>
<div class="medicalService"> <div class="medicalService">
<img <img
@ -282,6 +283,7 @@
/> />
</div> </div>
<ylXZZC <ylXZZC
v-if="showR"
:list1="data.zccs1" :list1="data.zccs1"
:list2="data.zccs2" :list2="data.zccs2"
@village="chooseVillage" @village="chooseVillage"
@ -330,6 +332,7 @@ const leftchoose = ref({
second: "1", second: "1",
third: "1", third: "1",
}); });
const showR=ref(false)
// //
const dialogShow = ref(false); const dialogShow = ref(false);
const tableType = reactive({ const tableType = reactive({
@ -441,12 +444,12 @@ const data = reactive({
zccs2: [], zccs2: [],
smfwcs: [], smfwcs: [],
}); });
onBeforeMount(async () => { onBeforeMount( () => {
getData(); getData();
}); });
const getData = async () => { const getData = () => {
await http.get("/api/ggfwyth/yl").then((res) => { http.get("/api/ggfwyth/yl").then((res) => {
if (res.code == 200) { if (res.code == 200) {
// //
// //
@ -509,6 +512,7 @@ const getData = async () => {
data.zccs2.push(element.zccs); // data.zccs2.push(element.zccs); //
}); });
} }
showR.value=true;
}); });
}; };
</script> </script>