访客模块待完成

This commit is contained in:
Zy
2026-04-11 17:55:11 +08:00
parent 67a292b252
commit d957d1a039
35 changed files with 4564 additions and 95 deletions

View File

@@ -54,7 +54,6 @@ export function convertBuildingToTree(buildings: any[]): Tree[] {
});
buildingTree.children = unitTrees;
console.log(buildingTree);
return buildingTree;
});
}
@@ -121,17 +120,6 @@ export function getHousePathById(treeData: Tree[], houseId: number, response: Va
return path;
}
/**
* 验证身份证号码18位支持尾号x/X
* @param idCard 身份证号
* @return {boolean} true 符合 false 不符合
*/
export function validateIdCard(idCard: string): boolean {
// 18位身份证正则
const reg = /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dXx]$/;
return reg.test(idCard.trim());
}
export const houseUselist = ['普通住宅', '商业用地', '商住两用', '其他'];
// 对字符串 图片地址,处理