diff --git a/src/views/sys/exception/ChartsContainer/left_charts_container.vue b/src/views/sys/exception/ChartsContainer/left_charts_container.vue index 9a04ca8e..a7542f39 100644 --- a/src/views/sys/exception/ChartsContainer/left_charts_container.vue +++ b/src/views/sys/exception/ChartsContainer/left_charts_container.vue @@ -184,9 +184,9 @@ const yearSelect = ref({ }) const monthSelect = ref({ - issued:parseInt(new Date().getMonth()), - verify:parseInt(new Date().getMonth()), - rectification:parseInt(new Date().getMonth()), + issued:0, + verify:0, + rectification:0, }) @@ -220,7 +220,7 @@ function handlerCheckedFilter(type,item,state=false) { switch(type){ case "issued": - handlerGetIssuedStatitical(monthSelect.value[type] > 0 ? currentFilterName.value[type] : null) + handlerGetIssuedStatitical(monthSelect.value[type]>0?currentFilterName.value[type]:null) break; case "verify": handlerGetVerifyStatitical(monthSelect.value[type]>0?currentFilterName.value[type]:null) @@ -289,19 +289,19 @@ const chartOneData = ref( { mark:"jianshecount", name: "建设用地", - value: 0, + value: 70, unit: "宗" }, { mark:"nongyongdicount", name: "农用地", - value: 0, + value: 20, unit: "宗" }, { mark:"tuiduitucount", name: "推堆土", - value: 0, + value: 30, unit: "宗" } ] @@ -345,9 +345,8 @@ const chartThreeData = ref( [ } ]) -async function handlerGetIssuedStatitical(month=""){ +async function handlerGetIssuedStatitical(month=null){ let data = await getIssuedStatitical({month:month}); - for(let key in data){ issued.value?.forEach((item,index)=>{ if(item.mark == key){ @@ -364,7 +363,7 @@ async function handlerGetIssuedStatitical(month=""){ handlerLoadChartsOne(chartOneData.value); } -async function handlerGetVerifyStatitical(month=""){ +async function handlerGetVerifyStatitical(month=null){ let data = await getVerifyStatitical({month:month}); for(let key in data){ verify.value?.forEach((item,index)=>{ @@ -383,7 +382,7 @@ async function handlerGetVerifyStatitical(month=""){ } -async function handlerGetRectificationStatitical(month=""){ +async function handlerGetRectificationStatitical(month=null){ let data = await getRectificationStatitical({month:month}); for(let key in data){ rectification.value?.forEach((item,index)=>{ @@ -973,14 +972,13 @@ function createData() { onMounted(()=>{ - - setTimeout(function(){ - let default_date = yearSelect.value['issued']+"-"+monthSelect.value['issued'] - handlerGetIssuedStatitical(default_date); - handlerGetVerifyStatitical(default_date); - handlerGetRectificationStatitical(default_date); - + handlerGetIssuedStatitical(); + handlerGetVerifyStatitical(); + handlerGetRectificationStatitical(); + // handlerLoadChartsOne(); + // handlerLoadChartsTow(); + // handlerLoadChartsThree(); },500) })