From 1ab365efae49d1988ea07bf1e79b61c2d9faf85f Mon Sep 17 00:00:00 2001 From: qsh <> Date: Mon, 21 Oct 2024 16:14:06 +0800 Subject: [PATCH] sc --- src/views/Home/Comp/SignListCard.vue | 73 ++++++++++++++++------------ 1 file changed, 43 insertions(+), 30 deletions(-) diff --git a/src/views/Home/Comp/SignListCard.vue b/src/views/Home/Comp/SignListCard.vue index 253ce3b..e0da13c 100644 --- a/src/views/Home/Comp/SignListCard.vue +++ b/src/views/Home/Comp/SignListCard.vue @@ -38,31 +38,42 @@ - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - + + + @@ -129,14 +140,16 @@ function getSummaries({ columns, data }) { if (column.property.includes('Growth')) { sums[index] = '' } else { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr) - if (!Number.isNaN(value)) { - return prev + curr - } else { - return prev - } - }, 0) + sums[index] = values + .reduce((prev, curr) => { + const value = Number(curr) + if (!Number.isNaN(value)) { + return prev + curr + } else { + return prev + } + }, 0) + .toFixed(2) } } else { sums[index] = ''