feat: 首页数据对接

This commit is contained in:
fyy
2025-09-06 00:49:44 +08:00
parent 9bd24de458
commit 6f987f29ef
11 changed files with 388 additions and 349 deletions

View File

@@ -5,11 +5,6 @@ import { getDictOptions } from '#/utils/dict';
import { DictEnum } from '@vben/constants';
import { renderDict } from '#/utils/render';
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
fieldName: 'communityName',
label: '社区',
},
{
component: 'Select',
componentProps: {
@@ -44,11 +39,11 @@ export const columns: VxeGridProps['columns'] = [
{
title: '是否重要',
field: 'isMatter',
slots:{
default:({row})=>{
return renderDict(row.isMatter,'wy_fjzydj')
}
}
slots: {
default: ({ row }) => {
return renderDict(row.isMatter, 'wy_fjzydj');
},
},
},
{
@@ -96,25 +91,25 @@ export const modalSchema: FormSchemaGetter = () => [
getPopupContainer,
options: getDictOptions(DictEnum.wy_room_type),
},
rules:'selectRequired'
rules: 'selectRequired',
},
{
label: '建筑面积',
fieldName: 'area',
component: 'InputNumber',
componentProps:{
min:0,
componentProps: {
min: 0,
},
rules:'required'
rules: 'required',
},
{
label: '使用面积',
fieldName: 'insideInArea',
component: 'InputNumber',
componentProps:{
min:0,
componentProps: {
min: 0,
},
rules:'required'
rules: 'required',
},
{
label: '是否重要',
@@ -123,7 +118,7 @@ export const modalSchema: FormSchemaGetter = () => [
componentProps: {
options: getDictOptions('wy_fjzydj'),
},
rules:'selectRequired'
rules: 'selectRequired',
},
{
label: '状态',
@@ -133,7 +128,7 @@ export const modalSchema: FormSchemaGetter = () => [
getPopupContainer,
options: getDictOptions(DictEnum.wy_fjzt),
},
rules:'selectRequired'
rules: 'selectRequired',
},
{
label: '房间图片',