2、添加巡检明细接口
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
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';
|
||||
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';
|
||||
import {renderDict} from "#/utils/render";
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -24,7 +25,7 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{type: 'checkbox', width: 60},
|
||||
{
|
||||
title: '社区名称',
|
||||
field: 'communityName',
|
||||
@@ -32,7 +33,11 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '社区类型',
|
||||
field: 'communityType',
|
||||
slots: { default: 'communityType' },
|
||||
slots: {
|
||||
default: ({row}) => {
|
||||
return renderDict(row.communityType, DictEnum.wy_sqlx)
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '城市',
|
||||
@@ -73,7 +78,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
slots: { default: 'action' },
|
||||
slots: {default: 'action'},
|
||||
title: '操作',
|
||||
width: 180,
|
||||
},
|
||||
|
Reference in New Issue
Block a user