4 changed files with 276 additions and 174 deletions
@ -1,82 +1,107 @@
@@ -1,82 +1,107 @@
|
||||
/** |
||||
* @program: kicc-ui |
||||
* @description: 字典数据模块动态渲染配置 |
||||
* @author: entfrm开发团队-王翔 |
||||
* @create: 2022/5/8 |
||||
*/ |
||||
|
||||
import { BasicColumn } from '/@/components/Table'; |
||||
import { FormSchema } from '/@/components/Table'; |
||||
|
||||
/** 表格列配置 */ |
||||
export const columns: BasicColumn[] = [ |
||||
{ |
||||
title: '字典ID', |
||||
dataIndex: 'id', |
||||
width: 100, |
||||
}, |
||||
{ |
||||
title: '字典类型', |
||||
dataIndex: 'dictType', |
||||
width: 100, |
||||
title: '字典数据类型', |
||||
dataIndex: 'dictType' |
||||
}, |
||||
{ |
||||
title: '字典标签', |
||||
dataIndex: 'label', |
||||
width: 130, |
||||
title: '字典数据标签', |
||||
dataIndex: 'label' |
||||
}, |
||||
{ |
||||
title: '字典键值', |
||||
dataIndex: 'value', |
||||
width: 90, |
||||
title: '字典数据键值', |
||||
dataIndex: 'value' |
||||
}, |
||||
{ |
||||
title: '字典排序', |
||||
dataIndex: 'sort', |
||||
width: 90, |
||||
title: '字典数据排序', |
||||
dataIndex: 'sort' |
||||
} |
||||
|
||||
]; |
||||
|
||||
|
||||
/** 搜索表单配置 */ |
||||
export const searchFormSchema: FormSchema[] = [ |
||||
{ |
||||
field: 'dataType', |
||||
label: '字典参数类型', |
||||
label: '字典类型', |
||||
component: 'Input', |
||||
componentProps: { |
||||
placeholder: '请输入字典参数类型', |
||||
placeholder: '请输入字典类型' |
||||
}, |
||||
colProps: {span: 16}, |
||||
colProps: { span: 12 } |
||||
}, |
||||
{ |
||||
field: 'dataType', |
||||
label: '字典数据标签', |
||||
component: 'Input', |
||||
componentProps: { |
||||
placeholder: '请输入字典数据标签' |
||||
}, |
||||
colProps: { span: 12 } |
||||
} |
||||
]; |
||||
|
||||
/** 表单配置 */ |
||||
export const formSchema: FormSchema[] = [ |
||||
{ |
||||
field: 'id', |
||||
label: 'ID', |
||||
component: 'Input', |
||||
show: false, |
||||
show: false |
||||
}, |
||||
{ |
||||
field: 'dictType', |
||||
label: '字典类型', |
||||
component: 'Input', |
||||
required: true, |
||||
componentProps: {disabled: true} |
||||
componentProps: { disabled: true }, |
||||
colProps:{ span: 12 } |
||||
}, |
||||
{ |
||||
field: 'label', |
||||
label: '字典标签', |
||||
component: 'Input', |
||||
required: true |
||||
required: true, |
||||
colProps:{ span: 12 } |
||||
}, |
||||
{ |
||||
field: 'value', |
||||
label: '字典键值', |
||||
component: 'Input', |
||||
required: true |
||||
required: true, |
||||
colProps:{ span: 12 } |
||||
}, |
||||
{ |
||||
field: 'sort', |
||||
label: '排序', |
||||
component: 'InputNumber', |
||||
componentProps: { |
||||
style: { width:'100%' }, |
||||
min: 0 |
||||
}, |
||||
required: true, |
||||
colProps: { |
||||
span: 12 |
||||
} |
||||
}, |
||||
{ |
||||
field: 'remark', |
||||
label: '备注', |
||||
component: 'InputTextArea', |
||||
componentProps: { |
||||
rows: 6 |
||||
}, |
||||
colProps: { |
||||
span: 24 |
||||
} |
||||
} |
||||
]; |
Loading…
Reference in new issue