From 20ddb87696df1baf8b8917adcf1a7ff6d9c17672 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Sat, 12 Jul 2025 13:32:02 +0800 Subject: [PATCH] 优化房屋产权 --- src/components/car/floorUnitTree.vue | 151 ------------------------------------------------------------------------------------------------------------------------------------------------------- src/components/room/editPropertyRightRegistrationDetail.vue | 14 ++++++++------ src/components/room/floorUnitTree.vue | 7 +++++++ src/views/car/carStructureList.vue | 3 +++ src/views/room/listPropertyRightRegistrationDetailList.vue | 5 ++--- src/views/room/propertyRightRegistrationManageList.vue | 2 +- src/views/room/roomStructureList.vue | 3 +++ 7 files changed, 24 insertions(+), 161 deletions(-) delete mode 100644 src/components/car/floorUnitTree.vue diff --git a/src/components/car/floorUnitTree.vue b/src/components/car/floorUnitTree.vue deleted file mode 100644 index 97c750d..0000000 --- a/src/components/car/floorUnitTree.vue +++ /dev/null @@ -1,151 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/room/editPropertyRightRegistrationDetail.vue b/src/components/room/editPropertyRightRegistrationDetail.vue index ccbfa9e..68e2249 100644 --- a/src/components/room/editPropertyRightRegistrationDetail.vue +++ b/src/components/room/editPropertyRightRegistrationDetail.vue @@ -114,30 +114,32 @@ export default { this.visible = true }, loadPhotos() { + setTimeout(() => { if (this.editPropertyRightRegistrationDetailInfo.securities === '001' && this.editPropertyRightRegistrationDetailInfo.idCardUrl) { - const urls = this.editPropertyRightRegistrationDetailInfo.idCardUrl.trim() + const urls = this.editPropertyRightRegistrationDetailInfo.idCardUrl if (urls) { this.$refs.idCardUpload.setImages(urls.split(',')) } } if (this.editPropertyRightRegistrationDetailInfo.securities === '002' && this.editPropertyRightRegistrationDetailInfo.housePurchaseUrl) { - const urls = this.editPropertyRightRegistrationDetailInfo.housePurchaseUrl.trim() + const urls = this.editPropertyRightRegistrationDetailInfo.housePurchaseUrl if (urls) { this.$refs.housePurchaseUpload.setImages(urls.split(',')) } } if (this.editPropertyRightRegistrationDetailInfo.securities === '003' && this.editPropertyRightRegistrationDetailInfo.repairUrl) { - const urls = this.editPropertyRightRegistrationDetailInfo.repairUrl.trim() + const urls = this.editPropertyRightRegistrationDetailInfo.repairUrl if (urls) { this.$refs.repairUpload.setImages(urls.split(',')) } } if (this.editPropertyRightRegistrationDetailInfo.securities === '004' && this.editPropertyRightRegistrationDetailInfo.deedTaxUrl) { - const urls = this.editPropertyRightRegistrationDetailInfo.deedTaxUrl.trim() + const urls = this.editPropertyRightRegistrationDetailInfo.deedTaxUrl if (urls) { - this.$refs.deedTaxUpload.setImages(urls.split(',')) + this.$refs.deedTaxUpload.setImages(urls.split(',')) + } } - } + }, 1000) }, handleIdCardImageChange(photos) { this.editPropertyRightRegistrationDetailInfo.idCardPhotos = photos diff --git a/src/components/room/floorUnitTree.vue b/src/components/room/floorUnitTree.vue index f60d797..80079e2 100644 --- a/src/components/room/floorUnitTree.vue +++ b/src/components/room/floorUnitTree.vue @@ -48,6 +48,13 @@ export default { refreshTree(param) { this.handleRefreshTree(param) }, + selectFirstUnit(){ + if(this.treeData.length > 0){ + this.handleNodeClick(this.treeData[0].children[0]) + // 并且展开 + + } + }, handleRefreshTree(param) { if (param) { this.currentFloorId = param.floorId diff --git a/src/views/car/carStructureList.vue b/src/views/car/carStructureList.vue index 76cd44e..554a2aa 100644 --- a/src/views/car/carStructureList.vue +++ b/src/views/car/carStructureList.vue @@ -46,6 +46,9 @@ export default { }, created() { this.communityId = getCommunityId() + setTimeout(() => { + this.$refs.floorUnitTree.selectFirstUnit() + }, 1000) }, methods: { switchFloorUnit(data) { diff --git a/src/views/room/listPropertyRightRegistrationDetailList.vue b/src/views/room/listPropertyRightRegistrationDetailList.vue index 5ce2ea3..a15a6e1 100644 --- a/src/views/room/listPropertyRightRegistrationDetailList.vue +++ b/src/views/room/listPropertyRightRegistrationDetailList.vue @@ -1,8 +1,7 @@