import { BasicColumn } from '/@/components/Table'; import { FormSchema } from '/@/components/Table'; import { TreeItem } from '/@/components/Tree/index'; //tree export const treeData: TreeItem[] = [ { title: '全部', key: '0-0', icon: 'home|svg', children: [ { title: '台账类文件', icon: 'home|svg', key: '0-0-1' }, { title: '法律法规', icon: 'home|svg', key: '0-0-2' }, { title: '其他', icon: 'home|svg', key: '0-0-3' }, ], }, ]; export const searchFormSchema: FormSchema[] = [ { label: '文件名称', field: 'fileName', component: 'Input', colProps: { span: 8 }, }, ]; export const columns: BasicColumn[] = [ { title: '文件名称', dataIndex: 'fileName', width: 260, }, { title: '文件类型', dataIndex: 'type', }, { title: '文件格式', dataIndex: 'fileSuffix', }, { title: '创建人', dataIndex: 'createUser', }, { title: '创建时间', dataIndex: 'updateUser', }, { title: '修改人', dataIndex: 'updateUser', }, { title: '修改时间', dataIndex: 'updateDt', }, ]; export const formSchema: FormSchema[] = [ { label: '', field: 'id', component: 'Input', show: false, }, // { // label: '点表类型', // field: 'devicetype', // component: 'ApiSelect', // componentProps: ({ formModel, formActionType }) => { // // debugger; // return { // // options: provincesOptions, // componentProps: {}, // api: (params) => defHttp.get({ url: `/sys/dict/getDictItems/${formModel.devicekind + 'kind'}` }, params), // resultField: 'result', // labelField: 'title', // valueField: 'value', // }; // }, // }, { label: '文件名称', field: 'fileName', component: 'Input', }, { label: '文件类型', field: 'type', component: 'JDictSelectTag', componentProps: { dictCode: 'valuetype', placeholder: '请选择文件类型', stringToNumber: true, }, }, { label: '文件格式', field: 'fileSuffix', component: 'JDictSelectTag', componentProps: { dictCode: 'valuetype', placeholder: '请选择文件来源', stringToNumber: true, }, }, { label: '文件路径', field: 'fileServerPath', component: 'Input', }, ];