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