diff --git a/src/view/echarts_hygiene/pie4.vue b/src/view/echarts_hygiene/pie4.vue index c0b2f93..4c1b97f 100644 --- a/src/view/echarts_hygiene/pie4.vue +++ b/src/view/echarts_hygiene/pie4.vue @@ -19,9 +19,9 @@ const props = defineProps({ }); const chart = ref(); // 创建DOM引用 const data = reactive({ - list: [6280, 5924, 1824], - year: [2022, 2023, 2024], - bg: [0, 0, 0], + list: [], + year: [], + bg: [], option: {}, }); @@ -164,8 +164,9 @@ const setChart = () => { onBeforeMount(() => { setTimeout(() => { - // data.list = props.list; - // data.year = props.year; + data.list = props.list; + data.year = props.year; + data.bg=data.year.map(item=>0) getOption(); setChart(); }, 600); diff --git a/src/view/hygiene.vue b/src/view/hygiene.vue index c34ebac..b26a53e 100644 --- a/src/view/hygiene.vue +++ b/src/view/hygiene.vue @@ -78,8 +78,8 @@
手工零星报销人数
@@ -296,6 +296,7 @@ const data = reactive({ fyglrs: {}, //系统管理 jktj: {}, //65岁健康体检 jkhd: [], //健康活动 + lxbx:{},//手工零星报销 }); const tabYd = ref([ { @@ -374,6 +375,7 @@ const getData = async () => { data.fyglrs = res.data.fyglrs; data.jktj = res.data.jktj; data.jkhd = res.data.jkhd; + data.lxbx = res.data.lxbx; showEchart.value = true; } });