From f74ed7e62df07a26a8ffcb396e8431ffbec6d7b7 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Fri, 18 Oct 2024 10:32:03 +0800 Subject: [PATCH 1/2] sc --- src/components/UploadFile/src/UploadFile.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index a8442d5..9d104e7 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -47,7 +47,7 @@ const props = defineProps({ // fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf']), // 文件类型, 例如['png', 'jpg', 'jpeg'] fileType: propTypes.array.def([]), accept: propTypes.string.def('*'), - fileSize: propTypes.number.def(5), // 大小限制(MB) + fileSize: propTypes.number.def(100), // 大小限制(MB) limit: propTypes.number.def(5), // 数量限制 autoUpload: propTypes.bool.def(true), // 自动上传 drag: propTypes.bool.def(false), // 拖拽上传 From 1ab365efae49d1988ea07bf1e79b61c2d9faf85f Mon Sep 17 00:00:00 2001 From: qsh <> Date: Mon, 21 Oct 2024 16:14:06 +0800 Subject: [PATCH 2/2] 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] = ''