From 982e64cdfbb459cb3af838928a7352a3336a39d1 Mon Sep 17 00:00:00 2001 From: fengachen <373943794@qq.com> Date: Mon, 24 Oct 2022 10:59:34 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E9=A5=BC?= =?UTF-8?q?=E5=9B=BE=E6=80=BB=E6=95=B0=E7=99=BE=E5=88=86=E6=AF=94=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/IncomeSortEcharts.vue | 7 ++++++- src/views/dashboard/NotReceivedEcharts.vue | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/IncomeSortEcharts.vue b/src/views/dashboard/IncomeSortEcharts.vue index ffb1874..3c06143 100644 --- a/src/views/dashboard/IncomeSortEcharts.vue +++ b/src/views/dashboard/IncomeSortEcharts.vue @@ -171,7 +171,12 @@ export default { dataSource.map((item, index) => { let dataIndex = 'key' + index tableData[0][dataIndex] = item.money - tableData[1][dataIndex] = item.value ? item.value +'%' :'' + // tableData[1][dataIndex] = item.value ? item.value +'%' :'' + if(index !== 5){ + tableData[1][dataIndex] = item.value ? item.value + '%' :'' + }else { + tableData[1][dataIndex] = '100%' + } }) this.dataSource = tableData } diff --git a/src/views/dashboard/NotReceivedEcharts.vue b/src/views/dashboard/NotReceivedEcharts.vue index 37f09e0..0e22c6e 100644 --- a/src/views/dashboard/NotReceivedEcharts.vue +++ b/src/views/dashboard/NotReceivedEcharts.vue @@ -167,7 +167,11 @@ export default { dataSource.map((item, index) => { let dataIndex = 'key' + index tableData[0][dataIndex] = item.money - tableData[1][dataIndex] = item.value ? item.value + '%' :'' + if(index !== 4){ + tableData[1][dataIndex] = item.value ? item.value + '%' :'' + }else { + tableData[1][dataIndex] = '100%' + } }) this.dataSource = tableData }