7/10 缴费分析,人员分析 数据对接

This commit is contained in:
Zy
2026-07-10 17:44:28 +08:00
parent 3a808750ac
commit 298f93380c
46 changed files with 1065 additions and 673 deletions

View File

@@ -2,7 +2,7 @@ import { getVillageByIdAPI } from '@/api/system/community';
import { communitylist_rows_type } from '@/api/system/community/type';
import { getBuildinglistAPI, getHouselistAPI, getVillageTree } from '@/api/system/house';
import type { BuildingUnit, BuildingVo } from '@/api/system/house/type';
import { convertBuildingToTree } from '@/utils/house';
import { buildHousePathCache, convertBuildingToTree } from '@/utils/house';
import { defineStore } from 'pinia';
// 数字排序
function sortNumberStr(a: string, b: string) {
@@ -235,6 +235,8 @@ export const useHouseStore = defineStore(
treedata.value = [];
const res = await getVillageTree(villageid);
treedata.value = convertBuildingToTree(res.data.buildings || []);
buildHousePathCache(treedata.value);
return treedata.value;
} catch (err) {
console.error('获取楼栋树失败:', err);