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: '上传人',