新增数据,开始安全巡检模块

This commit is contained in:
Zy
2026-04-17 19:39:21 +08:00
parent 4184f1c55d
commit 9a95e2b7e3
74 changed files with 1942 additions and 403 deletions

View File

@@ -61,6 +61,7 @@ export const useHouseStore = defineStore(
const getviliageinfo = async (id) => {
const res = await getVillageByIdAPI(id);
currentVilageInfo.value = res.data;
return res.data;
};
// 更新小区信息
@@ -215,10 +216,6 @@ export const useHouseStore = defineStore(
// 房屋 树状结构类型
const getCurrentVilageTreeHouse = async () => {
if (!currentVilageInfo.value?.villageId) {
treedata.value = [];
return treedata.value;
}
try {
treedata.value = [];
const res = await getVillageTree(currentVilageInfo.value.villageId);