| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- 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',
- },
- ];
|