fix: notice schema
parent
e27e7d1991
commit
cf2aceb5c1
|
@ -8,13 +8,8 @@ import { DICT_TYPE, getDictOptions } from '#/utils/dict';
|
||||||
export const formSchema: VbenFormSchema[] = [
|
export const formSchema: VbenFormSchema[] = [
|
||||||
{
|
{
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
fieldName: 'name',
|
fieldName: 'title',
|
||||||
label: '岗位名称',
|
label: '公告标题',
|
||||||
},
|
|
||||||
{
|
|
||||||
component: 'Input',
|
|
||||||
fieldName: 'code',
|
|
||||||
label: '岗位编码',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
component: 'Select',
|
component: 'Select',
|
||||||
|
@ -24,17 +19,22 @@ export const formSchema: VbenFormSchema[] = [
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
},
|
},
|
||||||
fieldName: 'status',
|
fieldName: 'status',
|
||||||
label: '状态',
|
label: '公告状态',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const columns: VxeGridProps['columns'] = [
|
export const columns: VxeGridProps['columns'] = [
|
||||||
{ title: '序号', type: 'seq', width: 50 },
|
{ title: '序号', type: 'seq', width: 50 },
|
||||||
{ field: 'id', title: '岗位编号' },
|
{ field: 'id', title: '公告编号' },
|
||||||
{ field: 'name', title: '岗位名称' },
|
{ field: 'title', title: '公告标题' },
|
||||||
{ field: 'code', title: '岗位编码' },
|
{
|
||||||
{ field: 'sort', title: '岗位顺序' },
|
field: 'type',
|
||||||
{ field: 'remark', title: '岗位备注' },
|
title: '公告类型',
|
||||||
|
cellRender: {
|
||||||
|
name: 'CellDict',
|
||||||
|
props: { type: DICT_TYPE.SYSTEM_NOTICE_TYPE },
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'status',
|
field: 'status',
|
||||||
title: '状态',
|
title: '状态',
|
||||||
|
@ -62,20 +62,17 @@ export const modalSchema: VbenFormSchema[] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
fieldName: 'name',
|
fieldName: 'title',
|
||||||
label: '岗位标题',
|
label: '公告标题',
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
component: 'Input',
|
component: 'Select',
|
||||||
fieldName: 'code',
|
componentProps: {
|
||||||
label: '岗位编码',
|
options: getDictOptions(DICT_TYPE.SYSTEM_NOTICE_TYPE, 'number'),
|
||||||
rules: 'required',
|
},
|
||||||
},
|
fieldName: 'type',
|
||||||
{
|
label: '公告类型',
|
||||||
component: 'Input',
|
|
||||||
fieldName: 'sort',
|
|
||||||
label: '岗位顺序',
|
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -84,12 +81,12 @@ export const modalSchema: VbenFormSchema[] = [
|
||||||
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
|
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
|
||||||
},
|
},
|
||||||
fieldName: 'status',
|
fieldName: 'status',
|
||||||
label: '状态',
|
label: '公告状态',
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
component: 'Textarea',
|
component: 'Textarea',
|
||||||
fieldName: 'remark',
|
fieldName: 'content',
|
||||||
label: '备注',
|
label: '内容',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue