1、bug修复
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

2、添加巡检明细接口
This commit is contained in:
2025-07-28 17:16:27 +08:00
parent ba538a2227
commit fe78f7ad25
9 changed files with 458 additions and 85 deletions

View File

@@ -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,
},

View File

@@ -177,11 +177,6 @@ function handleDownloadExcel() {
</Space>
</template>
<template #communityType="{ row }">
<Tag v-if="row.community_type == 1" color="#108ee9">园区</Tag>
<Tag v-else color="#2db7f5">小区</Tag>
</template>
</BasicTable>
<CommunityModal @reload="tableApi.query()" />
</Page>