This commit is contained in:
duanxiaohai 2024-06-06 10:11:42 +08:00
parent c89c0df89e
commit efc79484bd
2 changed files with 23 additions and 73 deletions

View File

@ -300,22 +300,6 @@ const getOption = () => {
};
};
// // 使
// onMounted(() => {
// // domecharts
// // var myChart = echarts.init(document.getElementById('main'));
// // Vue3
// var myChart = echarts.init(chart.value);
// // init(); // vue3.2this
// // 使
// myChart.setOption(option);
// // :
// // window.addEventListener("resize", () => {
// // myChart.resize();
// // });
// });
const setChart = () => {
var myChart = echarts.init(chart.value);
myChart.setOption(data.option);
@ -324,12 +308,16 @@ const setChart = () => {
const setChart1 = () => {
data.list1 = [];
data.list2 = [];
// var myChart = echarts.init(chart.value);
// //
// myChart.showLoading();
if (data.list.length !== 0) {
// console.log(data.list, "");
data.list.data.forEach((item) => {
data.list1.push(item.sc); //
data.list2.push(item.fwcs); //
});
// //
// myChart.hideLoading();
}
};
@ -338,6 +326,7 @@ onBeforeMount(() => {
setTimeout(() => {
data.list = props.list;
data.day = props.list.day;
console.log(data.list, "助老服务");
setChart1();
getOption();
setChart();

View File

@ -48,10 +48,7 @@
:year="data.leftTopYear"
></ePie2>
</div>
<div
class="flex1"
style="margin-top: 10px"
>
<div class="flex1" style="margin-top: 10px">
<div class="yd_title left_2">
<div class="animate-border">
<i></i>
@ -97,10 +94,7 @@
:year="data.leftCenterYear"
/>
</div>
<div
class="flex1"
style="margin-top: 10px"
>
<div class="flex1" style="margin-top: 10px">
<div class="yd_title left_3">
<div class="animate-border">
<i></i>
@ -192,19 +186,9 @@
<div>
<span>{{ data.yljgzlzx.yljg }}<span class="unit"></span></span>
</div>
<img
src="@/assets/YLimg/ylimg11.png"
alt=""
/>
<img
class="historyimg"
src="@/assets/YLimg/ylimg5.png"
alt=""
/>
<img
src="@/assets/YLimg/yljg.gif"
class="historyMoveImg"
/>
<img src="@/assets/YLimg/ylimg11.png" alt="" />
<img class="historyimg" src="@/assets/YLimg/ylimg5.png" alt="" />
<img src="@/assets/YLimg/yljg.gif" class="historyMoveImg" />
</div>
<!-- <div class="history1">
<div>
@ -217,19 +201,9 @@
<div>
<span>{{ data.yljgzlzx.zlzx }}<span class="unit"></span></span>
</div>
<img
src="@/assets/YLimg/ylimg12.png"
alt=""
/>
<img
class="historyimg"
src="@/assets/YLimg/ylimg10.png"
alt=""
/>
<img
src="@/assets/YLimg/yljg.gif"
class="historyMoveImg"
/>
<img src="@/assets/YLimg/ylimg12.png" alt="" />
<img class="historyimg" src="@/assets/YLimg/ylimg10.png" alt="" />
<img src="@/assets/YLimg/yljg.gif" class="historyMoveImg" />
</div>
</div>
</div>
@ -243,30 +217,14 @@
<div class="serviceBox">
<div class="serviceTop">
<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>
</div>
<div class="medicalService">
<img
class="serviceimg"
src="@/assets/YLimg/ylimg9.png"
alt=""
/>
<img
class="moveYl"
src="@/assets/YLimg/turn.gif"
alt=""
/>
<img class="serviceimg" src="@/assets/YLimg/ylimg9.png" alt="" />
<img class="moveYl" src="@/assets/YLimg/turn.gif" alt="" />
<div class="medicalServiceTop">
<img
class="ylimg"
src="@/assets/YLimg/ylimg1.png"
alt=""
/>
<img class="ylimg" src="@/assets/YLimg/ylimg1.png" alt="" />
<span>36,234</span>
</div>
</div>
@ -439,7 +397,10 @@ const data = reactive({
yljgzlzx: { yljg: "", zlzx: "" },
zccs1: [],
zccs2: [],
smfwcs: [],
smfwcs: {
data: [{ nf: "2024", yf: "5", rq: "22", fwcs: "16", sc: "22" }],
day: ["5.22"],
},
});
onBeforeMount(async () => {
getData();
@ -448,6 +409,7 @@ onBeforeMount(async () => {
const getData = async () => {
await http.get("/api/ggfwyth/yl").then((res) => {
if (res.code == 200) {
console.log(res.data, "养老");
//
//
res.data.endowmentInsurance.ffrc.forEach((element) => {
@ -503,7 +465,6 @@ const getData = async () => {
data.yljgzlzx.zlzx = res.data.yljgzlzx.zlzx;
//
data.smfwcs = res.data.zlfw.smfwcs;
console.log(data.smfwcs,6666);
//
res.data.zlfw.xzzccs.forEach((element) => {
data.zccs1.push(element.xzjd); //