ruoyi-plus-vben5/apps/web-antd/src/views/system/oss/data.tsx

74 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-10-05 16:38:47 +08:00
import type { FormSchemaGetter, VxeGridProps } from '#/adapter';
2024-09-24 11:23:02 +08:00
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
fieldName: 'fileName',
label: '文件名',
},
{
component: 'Input',
fieldName: 'originalName',
label: '原名',
},
{
component: 'Input',
fieldName: 'fileSuffix',
label: '拓展名',
},
{
component: 'Input',
fieldName: 'service',
label: '服务商',
},
{
component: 'RangePicker',
fieldName: 'createTime',
label: '创建时间',
},
];
2024-10-05 16:38:47 +08:00
export const columns: VxeGridProps['columns'] = [
{ type: 'checkbox', width: 60 },
{
title: '文件名',
field: 'fileName',
showOverflow: true,
},
{
title: '文件原名',
field: 'originalName',
showOverflow: true,
},
{
title: '文件拓展名',
field: 'fileSuffix',
},
{
title: '文件预览',
field: 'url',
showOverflow: true,
slots: { default: 'url' },
},
{
title: '创建时间',
field: 'createTime',
2024-10-05 18:57:06 +08:00
sortable: true,
2024-10-05 16:38:47 +08:00
},
{
title: '上传人',
field: 'createByName',
},
{
title: '服务商',
field: 'service',
},
{
field: 'action',
fixed: 'right',
slots: { default: 'action' },
title: '操作',
width: 180,
},
];