From 9d011c0c77849d81620f609337999f3d6acb94ce Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Tue, 10 May 2022 04:09:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=A3=20=E9=87=8D=E5=86=99=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6,=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E7=BC=96=E5=86=99=E6=96=87=E4=BB=B6=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kicc-ui/src/views/system/file/file.data.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kicc-ui/src/views/system/file/file.data.ts b/kicc-ui/src/views/system/file/file.data.ts index 87925e86..c27e6914 100644 --- a/kicc-ui/src/views/system/file/file.data.ts +++ b/kicc-ui/src/views/system/file/file.data.ts @@ -7,6 +7,7 @@ import { BasicColumn } from '/@/components/Table'; import { FormSchema } from '/@/components/Table'; +import { getFileSize } from '/@/utils/file/download'; /** 表格列配置 */ export const columns: BasicColumn[] = [ @@ -28,7 +29,8 @@ export const columns: BasicColumn[] = [ }, { title: '文件大小', - dataIndex: 'fileSize' + dataIndex: 'fileSize', + customRender: ({ record }) => getFileSize(record.fileSize) }, { title: '上传人',