feat: 首页数据对接
This commit is contained in:
@@ -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: '房间图片',
|
||||
|
Reference in New Issue
Block a user