From ee8df164d1ae695d12a3ed9755c4a83990109642 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sun, 13 Oct 2024 22:08:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E7=A0=94=E5=8F=91=E6=8A=95=E5=85=A5=E8=B5=84=E9=87=91=E6=B8=B2?= =?UTF-8?q?=E6=9F=93bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/index.vue | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 50c8dcd..496bef5 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -380,20 +380,6 @@ const fundPieOption = ref({ color: 'rgba(0,0,0,0.6)', fontSize: '12px' }, - // formatter: function (name) { - // let data = fundPieOption.value.series[0].data - // let total = 0 - // let tarValue - // for (let i = 0; i < data.length; i++) { - // total += data[i].value - // if (data[i].name == name) { - // tarValue = data[i].value - // } - // } - // let v = tarValue - // let p = ((tarValue / total) * 100).toFixed(2) - // return `${name} ${v} ${p}%` - // }, }, graphic: { //图形中间图片 elements: [{ @@ -501,7 +487,6 @@ const moneyPieOption = ref({ }, }, itemStyle: { - normal: { borderWidth: 8,//设置边框粗细 borderColor: '#fff', @@ -613,15 +598,15 @@ const getDoneList = () => { }) } const changeResearchFundDataByYear = (year) => { + console.info("🚀 ~method:changeResearchFundDataByYear -----") if (year) { + console.info("🚀 243442-----") getResearchChart(year) - } } const getFundChart = () => { getSpecialFundChart().then(res => { if (res.code === 1000) { - moneyData.value = res.data if (res.data?.length == 0) return; if (fundPieOption.value.series && fundPieOption.value.series?.length > 0) { fundPieOption.value.series[0].data[0].value = res.data[0].value @@ -685,7 +670,6 @@ window.addEventListener('resize', () => { }) const clickGotoListPage = (item) => { - console.info("🚀 ~method:clickGotoListPage -----", item.type) if (item.type === 'pending') { router.push({ name: 'Initiation',