fix: 修复bug

This commit is contained in:
fyy
2025-08-22 19:43:32 +08:00
parent 29adc052c7
commit 553a915027
5 changed files with 30 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
import { getDictOptions } from '#/utils/dict';
import { renderDict } from '#/utils/render';
import { costItemSettingList } from '#/api/property/costManagement/costItemSetting';
import { userList } from '#/api/system/user';
import { personList } from '#/api/property/resident/person';
/**
* 查询表单 schema
@@ -23,12 +23,12 @@ export const querySchema: FormSchemaGetter = () => [
component: 'ApiSelect',
componentProps: {
api: async () => {
const rows = await userList({ pageSize: 1000000000, pageNum: 1 });
const rows = await personList({ pageSize: 1000000000, pageNum: 1 });
return rows;
},
resultField: 'rows',
labelField: 'userName',
valueField: 'userId',
valueField: 'id',
},
},
{
@@ -141,7 +141,11 @@ export const modalSchema: FormSchemaGetter = () => [
component: 'ApiSelect',
componentProps: {
api: async () => {
const rows = await costItemSettingList({ pageSize: 1000000000, pageNum: 1, costType: '2' });
const rows = await costItemSettingList({
pageSize: 1000000000,
pageNum: 1,
costType: '2',
});
return rows;
},
resultField: 'rows',
@@ -208,12 +212,12 @@ export const addModalSchema: FormSchemaGetter = () => [
rules: 'required',
componentProps: {
api: async () => {
const rows = await userList({ pageSize: 1000000000, pageNum: 1 });
const rows = await personList({ pageSize: 1000000000, pageNum: 1 });
return rows;
},
resultField: 'rows',
labelField: 'userName',
valueField: 'userId',
valueField: 'id',
},
},
{
@@ -242,7 +246,11 @@ export const addModalSchema: FormSchemaGetter = () => [
component: 'ApiSelect',
componentProps: {
api: async () => {
const rows = await costItemSettingList({ pageSize: 1000000000, pageNum: 1, costType: '2' });
const rows = await costItemSettingList({
pageSize: 1000000000,
pageNum: 1,
costType: '2',
});
return rows;
},
resultField: 'rows',

View File

@@ -48,11 +48,11 @@ const schema = [
componentProps: {
api: async () => {
const res = await personList({ pageSize: 1000000000, pageNum: 1 });
return res.rows.map((item: any) => ({
label: item.userName,
value: item.id,
}));
return res;
},
resultField: 'rows',
labelField: 'userName',
valueField: 'id',
},
},
{