This commit is contained in:
@@ -3,10 +3,15 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'id',
|
||||
label: '编号',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'itemName',
|
||||
label: '项目名称',
|
||||
label: '巡检项目',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -15,13 +20,17 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: '主键id',
|
||||
title: '编号',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '项目名称',
|
||||
title: '巡检项目',
|
||||
field: 'itemName',
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
field: 'createTime',
|
||||
},
|
||||
{
|
||||
title: '备注',
|
||||
field: 'remark',
|
||||
@@ -46,7 +55,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '项目名称',
|
||||
label: '巡检项目',
|
||||
fieldName: 'itemName',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
@@ -54,6 +63,6 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '备注',
|
||||
fieldName: 'remark',
|
||||
component: 'Input',
|
||||
component: 'Textarea',
|
||||
},
|
||||
];
|
||||
|
Reference in New Issue
Block a user