2025-06-18 11:03:42 +08:00
|
|
|
|
import type { FormSchemaGetter } from '#/adapter/form';
|
|
|
|
|
import type { VxeGridProps } from '#/adapter/vxe-table';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const querySchema: FormSchemaGetter = () => [
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'communityCode',
|
|
|
|
|
label: '社区编码',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'buildingCode',
|
|
|
|
|
label: '建筑名称',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'floorCode',
|
|
|
|
|
label: '楼层编码',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'floorName',
|
|
|
|
|
label: '楼层数名称',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'orgCode',
|
|
|
|
|
label: '组织编码',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'dataState',
|
|
|
|
|
label: '数据状态:1有效,0无效',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
|
|
|
|
// export const columns: () => VxeGridProps['columns'] = () => [
|
|
|
|
|
export const columns: VxeGridProps['columns'] = [
|
|
|
|
|
{ type: 'checkbox', width: 60 },
|
|
|
|
|
{
|
|
|
|
|
title: '社区编码',
|
|
|
|
|
field: 'communityCode',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '建筑名称',
|
|
|
|
|
field: 'buildingCode',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '楼层编码',
|
|
|
|
|
field: 'floorCode',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '楼层数名称',
|
|
|
|
|
field: 'floorName',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '组织编码',
|
|
|
|
|
field: 'orgCode',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'action',
|
|
|
|
|
fixed: 'right',
|
|
|
|
|
slots: { default: 'action' },
|
|
|
|
|
title: '操作',
|
|
|
|
|
width: 180,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const modalSchema: FormSchemaGetter = () => [
|
|
|
|
|
{
|
2025-06-19 09:50:46 +08:00
|
|
|
|
label: 'ID',
|
2025-06-18 11:03:42 +08:00
|
|
|
|
fieldName: 'id',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
dependencies: {
|
|
|
|
|
show: () => false,
|
|
|
|
|
triggerFields: [''],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '社区编码',
|
|
|
|
|
fieldName: 'communityCode',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '建筑名称',
|
|
|
|
|
fieldName: 'buildingCode',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '楼层编码',
|
|
|
|
|
fieldName: 'floorCode',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '楼层数名称',
|
|
|
|
|
fieldName: 'floorName',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '组织编码',
|
|
|
|
|
fieldName: 'orgCode',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
];
|