fix:建筑管理、楼层管理
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-07-30 15:27:32 +08:00
parent 48f0011e78
commit 8f6dc2ba11
6 changed files with 47 additions and 31 deletions

View File

@@ -90,12 +90,12 @@ async function handleConfirm() {
* 初始化城市
*/
async function setupCommunitySelect() {
const areaList = await communityTree(3);
const areaList = await communityTree(2);//楼层关联建筑
// 选中后显示在输入框的值 即父节点 / 子节点
// addFullName(areaList, 'areaName', ' / ');
const splitStr = '/';
handleNode(areaList, 'label', splitStr, function (node: any) {
if (node.level != 3) {
if (node.level != 2) {
node.disabled = true;
}
});
@@ -120,7 +120,7 @@ async function setupCommunitySelect() {
// 选中后显示在输入框的值
treeNodeLabelProp: 'fullName',
}),
fieldName: 'unitId',
fieldName: 'buildingId',
},
]);
}