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), // 拖拽上传 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] = ''