综合模块完成
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
15683799673
2025-06-28 22:49:40 +08:00
parent acd63bc96e
commit 54cea19b78
22 changed files with 523 additions and 571 deletions

View File

@@ -1,5 +1,8 @@
import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';
import { getPopupContainer } from '@vben/utils';
import { getDictOptions } from '#/utils/dict';
import { DictEnum } from '@vben/constants';
export const querySchema: FormSchemaGetter = () => [
{
@@ -11,15 +14,17 @@ export const querySchema: FormSchemaGetter = () => [
component: 'Input',
fieldName: 'orientation',
label: '朝向',
},
{
component: 'Input',
fieldName: 'isForSale',
label: '是否可售',
componentProps: {
getPopupContainer,
options: getDictOptions(DictEnum.wy_direction_towards),
},
},
{
component: 'Select',
componentProps: {},
componentProps: {
getPopupContainer,
options: getDictOptions(DictEnum.wy_fjzt),
},
fieldName: 'status',
label: '状态',
},
@@ -29,20 +34,16 @@ export const querySchema: FormSchemaGetter = () => [
// export const columns: () => VxeGridProps['columns'] = () => [
export const columns: VxeGridProps['columns'] = [
{ type: 'checkbox', width: 60 },
{
title: '所属楼层ID',
field: 'floorId',
},
{
title: '房间号',
field: 'roomNumber',
},
{
title: '房间类型',
field: 'roomType',
field: 'roomTypeName',
},
{
title: '面积(平方米)',
title: '面积',
field: 'area',
},
{
@@ -51,7 +52,7 @@ export const columns: VxeGridProps['columns'] = [
},
{
title: '朝向',
field: 'orientation',
field: 'orientationName',
},
{
title: '是否可售',
@@ -59,7 +60,7 @@ export const columns: VxeGridProps['columns'] = [
},
{
title: '状态',
field: 'status',
field: 'statusName',
},
{
field: 'action',
@@ -81,13 +82,14 @@ export const modalSchema: FormSchemaGetter = () => [
},
},
{
label: '所属楼层ID',
component: 'TreeSelect',
fieldName: 'floorId',
component: 'Input',
rules: 'required',
defaultValue: undefined,
label: '社区建筑',
rules: 'selectRequired',
},
{
label: '房间号(如101,202)',
label: '房间号',
fieldName: 'roomNumber',
component: 'Input',
rules: 'required',
@@ -96,10 +98,13 @@ export const modalSchema: FormSchemaGetter = () => [
label: '房间类型',
fieldName: 'roomType',
component: 'Select',
componentProps: {},
componentProps: {
getPopupContainer,
options: getDictOptions(DictEnum.wy_room_type),
},
},
{
label: '面积(平方米)',
label: '面积',
fieldName: 'area',
component: 'Input',
},
@@ -111,7 +116,11 @@ export const modalSchema: FormSchemaGetter = () => [
{
label: '朝向',
fieldName: 'orientation',
component: 'Input',
component: 'Select',
componentProps: {
getPopupContainer,
options: getDictOptions(DictEnum.wy_direction_towards),
},
},
{
label: '是否可售',
@@ -122,6 +131,9 @@ export const modalSchema: FormSchemaGetter = () => [
label: '状态',
fieldName: 'status',
component: 'Select',
componentProps: {},
componentProps: {
getPopupContainer,
options: getDictOptions(DictEnum.wy_fjzt),
},
},
];