zhangjq
2026-02-26 3f3c2b7b309fb6d2a74abd6d394a169b1c56c0d6
优化小区ID获取逻辑,确保使用最新的社区ID
1个文件已修改
8 ■■■■ 已修改文件
public/pages/property/assetImport/assetImport.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/pages/property/assetImport/assetImport.js
@@ -61,8 +61,14 @@
                //     return;
                // }
                // 重新获取当前社区的ID,确保使用的是最新的社区ID
                let currentCommunityId = vc.getCurrentCommunity().communityId;
                let currentCommunity = vc.getCurrentCommunity();
                if (!currentCommunity || !currentCommunity.communityId) {
                    vc.toast('无法获取当前社区信息,请重新选择社区');
                    return;
                }
                let currentCommunityId = currentCommunity.communityId;
                console.log('当前社区ID:', currentCommunityId);
                console.log('当前社区信息:', currentCommunity);
                
                var param = new FormData();
                param.append("uploadFile", vc.component.assetImportInfo.excelTemplate);