7/10 缴费分析,人员分析 数据对接
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user