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 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);

View File

@ -78,8 +78,8 @@
</div>
<div class="left_1_xia_item" style="margin-top: 40px">
<ePie4
:list="data.lmb.gxyrs"
:year="data.lmb.year"
:list="data.lxbx.lxbxrs"
:year="data.lxbx.year"
v-if="showEchart"
></ePie4>
<div class="historyimg">手工零星报销人数</div>
@ -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;
}
});