| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- import { BasicColumn } from '/@/components/Table';
- import { FormSchema } from '/@/components/Table';
- export const columns: BasicColumn[] = [
- {
- title: '类型名称',
- dataIndex: 'itemText',
- width: 350,
- align: 'left',
- },
- {
- title: '值',
- dataIndex: 'itemValue',
- },
- {
- title: 'sortOrder',
- dataIndex: 'code',
- },
- {
- title: '描述',
- dataIndex: 'description',
- },
- ];
- export const searchFormSchema: FormSchema[] = [
- {
- label: '类型名称',
- field: 'itemText',
- component: 'Input',
- colProps: { span: 6 },
- },
- ];
- export const formSchema: FormSchema[] = [
- {
- label: '',
- field: 'id',
- component: 'Input',
- show: false,
- },
- {
- label: '父级类型',
- field: 'dictId',
- component: 'TreeSelect',
- componentProps: {
- replaceFields: {
- value: 'key',
- },
- dropdownStyle: {
- maxHeight: '50vh',
- },
- getPopupContainer: () => document.body,
- },
- show: ({ values }) => {
- return values.dictId !== '0';
- },
- dynamicDisabled: ({ values }) => {
- return !!values.id;
- },
- },
- {
- label: '类型名称',
- field: 'itemText',
- required: true,
- component: 'Input',
- },
- {
- label: '值',
- field: 'itemValue',
- required: true,
- component: 'Input',
- },
- {
- label: '排序',
- field: 'sortOrder',
- component: 'InputNumber',
- },
- {
- label: '描述',
- field: 'description',
- component: 'InputTextArea',
- },
- ];
|