综合管理

This commit is contained in:
FLL
2025-06-27 15:16:06 +08:00
parent ca24234e57
commit 01ddd1174a
20 changed files with 139 additions and 318 deletions

View File

@@ -1,12 +1,11 @@
import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
fieldName: 'communityCode',
label: '社区编码',
label: '小区/园区',
},
{
component: 'Input',
@@ -15,32 +14,34 @@ export const querySchema: FormSchemaGetter = () => [
},
{
component: 'Input',
fieldName: 'floorCode',
label: '楼层编码',
fieldName: 'floorName',
label: '楼层名称',
},
{
component: 'Input',
fieldName: 'floorName',
label: '楼层数名称',
fieldName: 'floorCode',
label: '楼层编码',
},
{
component: 'Input',
fieldName: 'orgCode',
label: '组织编码',
},
{
component: 'Input',
fieldName: 'dataState',
label: '数据状态',
},
];
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
// export const columns: () => VxeGridProps['columns'] = () => [
export const columns: VxeGridProps['columns'] = [
{ type: 'checkbox', width: 60 },
{
title: '社区编码',
title: '序号',
field: 'id',
slots: {
default: ({ rowIndex }) => {
return (rowIndex + 1).toString();
},
},
},
{
title: '小区/园区',
field: 'communityCode',
},
{
@@ -48,12 +49,12 @@ export const columns: VxeGridProps['columns'] = [
field: 'buildingCode',
},
{
title: '楼层编码',
field: 'floorCode',
title: '楼层名称',
field: 'floorName',
},
{
title: '楼层数名称',
field: 'floorName',
title: '楼层编码',
field: 'floorCode',
},
{
title: '组织编码',
@@ -79,7 +80,7 @@ export const modalSchema: FormSchemaGetter = () => [
},
},
{
label: '社区编码',
label: '小区/园区',
fieldName: 'communityCode',
component: 'Input',
rules: 'required',
@@ -91,17 +92,23 @@ export const modalSchema: FormSchemaGetter = () => [
rules: 'required',
},
{
label: '楼层编码',
fieldName: 'floorCode',
label: '单元名称',
fieldName: 'buildingCode',
component: 'Input',
rules: 'required',
},
{
label: '楼层名称',
label: '楼层名称',
fieldName: 'floorName',
component: 'Input',
rules: 'required',
},
{
label: '楼层编码',
fieldName: 'floorCode',
component: 'Input',
rules: 'required',
},
{
label: '组织编码',
fieldName: 'orgCode',