This commit is contained in:
姚宇浩 2024-07-15 10:51:42 +08:00
parent c67d9cd7c1
commit 71cbc0bd2c
2 changed files with 10 additions and 7 deletions

View File

@ -19,9 +19,9 @@ const props = defineProps({
}); });
const chart = ref(); // DOM const chart = ref(); // DOM
const data = reactive({ const data = reactive({
list: [6280, 5924, 1824], list: [],
year: [2022, 2023, 2024], year: [],
bg: [0, 0, 0], bg: [],
option: {}, option: {},
}); });
@ -164,8 +164,9 @@ const setChart = () => {
onBeforeMount(() => { onBeforeMount(() => {
setTimeout(() => { setTimeout(() => {
// data.list = props.list; data.list = props.list;
// data.year = props.year; data.year = props.year;
data.bg=data.year.map(item=>0)
getOption(); getOption();
setChart(); setChart();
}, 600); }, 600);

View File

@ -78,8 +78,8 @@
</div> </div>
<div class="left_1_xia_item" style="margin-top: 40px"> <div class="left_1_xia_item" style="margin-top: 40px">
<ePie4 <ePie4
:list="data.lmb.gxyrs" :list="data.lxbx.lxbxrs"
:year="data.lmb.year" :year="data.lxbx.year"
v-if="showEchart" v-if="showEchart"
></ePie4> ></ePie4>
<div class="historyimg">手工零星报销人数</div> <div class="historyimg">手工零星报销人数</div>
@ -296,6 +296,7 @@ const data = reactive({
fyglrs: {}, // fyglrs: {}, //
jktj: {}, //65 jktj: {}, //65
jkhd: [], // jkhd: [], //
lxbx:{},//
}); });
const tabYd = ref([ const tabYd = ref([
{ {
@ -374,6 +375,7 @@ const getData = async () => {
data.fyglrs = res.data.fyglrs; data.fyglrs = res.data.fyglrs;
data.jktj = res.data.jktj; data.jktj = res.data.jktj;
data.jkhd = res.data.jkhd; data.jkhd = res.data.jkhd;
data.lxbx = res.data.lxbx;
showEchart.value = true; showEchart.value = true;
} }
}); });