This commit is contained in:
duanxiaohai 2024-06-06 10:12:09 +08:00
commit e36e78eed1
1 changed files with 12 additions and 8 deletions

View File

@ -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"
@ -82,7 +82,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"
@ -128,7 +128,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"
@ -157,7 +157,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">
@ -167,6 +167,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"
@ -218,7 +219,7 @@
<div class="serviceTop"> <div class="serviceTop">
<div class="visit"> <div class="visit">
<img class="serviceimg" src="@/assets/YLimg/ylimg8.png" alt="" /> <img class="serviceimg" src="@/assets/YLimg/ylimg8.png" alt="" />
<ylSMFW :list="data.smfwcs"></ylSMFW> <ylSMFW v-if="showR" :list="data.smfwcs"></ylSMFW>
</div> </div>
<div class="medicalService"> <div class="medicalService">
<img class="serviceimg" src="@/assets/YLimg/ylimg9.png" alt="" /> <img class="serviceimg" src="@/assets/YLimg/ylimg9.png" alt="" />
@ -240,6 +241,7 @@
/> />
</div> </div>
<ylXZZC <ylXZZC
v-if="showR"
:list1="data.zccs1" :list1="data.zccs1"
:list2="data.zccs2" :list2="data.zccs2"
@village="chooseVillage" @village="chooseVillage"
@ -288,6 +290,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({
@ -402,12 +405,12 @@ const data = reactive({
day: ["5.22"], day: ["5.22"],
}, },
}); });
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) {
console.log(res.data, "养老"); console.log(res.data, "养老");
// //
@ -471,6 +474,7 @@ const getData = async () => {
data.zccs2.push(element.zccs); // data.zccs2.push(element.zccs); //
}); });
} }
showR.value = true;
}); });
}; };
</script> </script>