| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- import { BasicColumn, FormSchema } from '/@/components/Table';
- export const columns: BasicColumn[] = [
- {
- title: '文件描述',
- width: 150,
- dataIndex: 'des',
- },
- {
- title: '文件名',
- width: 150,
- dataIndex: 'fileName',
- },
- {
- title: '文件类型',
- dataIndex: 'fileType',
- width: 140,
- },
- {
- title: '文件',
- width: 150,
- dataIndex: 'path',
- },
- // {
- // title: '操作',
- // width: 150,
- // dataIndex: 'operation',
- // },
- ];
- export const searchFormSchema: FormSchema[] = [
- {
- label: '文件名',
- field: 'fileName',
- component: 'Input',
- colProps: { span: 6 },
- },
- {
- label: '文件描述',
- field: 'des',
- component: 'Input',
- colProps: { span: 6 },
- },
- ];
- export const formSchema: FormSchema[] = [
- {
- field: 'id',
- label: 'id',
- component: 'Input',
- show: false,
- },
- // {
- // field: 'fileName',
- // label: '文件名',
- // component: 'Input',
- // },
- {
- field: 'des',
- label: '文件描述',
- component: 'Input',
- },
- {
- field: 'fileType',
- label: '文件类型',
- component: 'RadioGroup',
- defaultValue: 1,
- componentProps: {
- options: [
- {
- label: '图片',
- value: 'image',
- },
- {
- label: '模型',
- value: 'modal',
- },
- ],
- },
- },
- {
- field: 'path',
- label: '上传文件',
- component: 'JUpload',
- componentProps: {
- maxCount: 1,
- fileMax: 50,
- bizPath: 'webfile',
- change: (value) => {},
- },
- },
- ];
|