feat: 修复保洁、绿植、园区、系统用户相关bug

This commit is contained in:
fyy
2025-07-14 11:53:18 +08:00
parent 9279f2246a
commit c8b6d2faba
11 changed files with 254 additions and 243 deletions

View File

@@ -3,7 +3,7 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
import { getPopupContainer } from '@vben/utils';
import { getDictOptions } from '#/utils/dict';
import { DictEnum } from '@vben/constants';
import { renderDict } from '#/utils/render';
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
@@ -57,10 +57,16 @@ export const columns: VxeGridProps['columns'] = [
{
title: '是否可售',
field: 'isForSale',
slots: {
default: ({ row }) => {
return renderDict(row.isForSale, DictEnum.wy_sf);
},
},
},
{
title: '状态',
field: 'statusName',
},
{
field: 'action',
@@ -125,7 +131,11 @@ export const modalSchema: FormSchemaGetter = () => [
{
label: '是否可售',
fieldName: 'isForSale',
component: 'Input',
component: 'Select',
componentProps: {
getPopupContainer,
options: getDictOptions(DictEnum.wy_sf),
},
},
{
label: '状态',