diff --git a/src/components/community/RoomDecorationAcceptance.vue b/src/components/community/RoomDecorationAcceptance.vue index 4291fdea6..c054f6e26 100644 --- a/src/components/community/RoomDecorationAcceptance.vue +++ b/src/components/community/RoomDecorationAcceptance.vue @@ -5,7 +5,7 @@ width="40%" @close="resetForm" > - + - + - + - + - + - + @@ -42,6 +42,14 @@ export default { state: '', examineRemark: '', communityId: '' + }, + rules: { + state: [ + { required: true, message: this.$t('common.pleaseSelect'), trigger: 'change' } + ], + examineRemark: [ + { required: true, message: this.$t('common.pleaseInput'), trigger: 'blur' } + ] } } }, @@ -67,18 +75,24 @@ export default { examineRemark: '', communityId: '' } + this.$refs.form && this.$refs.form.resetFields() }, async saveRoomToExamine() { - try { - await updateRoomToExamine(this.form) - this.$message.success(this.$t('common.operationSuccess')) - this.visible = false - this.$emit('success') - } catch (error) { - console.error('保存审核信息失败:', error) - this.$message.error(error.message || this.$t('common.operationFailed')) - } + this.$refs.form.validate(async (valid) => { + if (!valid) { + return false + } + try { + await updateRoomToExamine(this.form) + this.$message.success(this.$t('common.operationSuccess')) + this.visible = false + this.$emit('success') + } catch (error) { + console.error('保存审核信息失败:', error) + this.$message.error(error.message || this.$t('common.operationFailed')) + } + }) } } } diff --git a/src/components/owner/ownerDetailRoom.vue b/src/components/owner/ownerDetailRoom.vue index b73ed3906..98883ce78 100644 --- a/src/components/owner/ownerDetailRoom.vue +++ b/src/components/owner/ownerDetailRoom.vue @@ -76,7 +76,7 @@ - + diff --git a/src/components/owner/ownerExitRoom.vue b/src/components/owner/ownerExitRoom.vue index aeb17112c..01b2948ef 100644 --- a/src/components/owner/ownerExitRoom.vue +++ b/src/components/owner/ownerExitRoom.vue @@ -42,7 +42,7 @@ export default { const res = await exitRoom(params) if (res.code === 0) { - this.$emit('exit-success') + this.$emit('success') this.close() this.$message.success('退房成功') } else { diff --git a/src/components/owner/showOwnerRoom.vue b/src/components/owner/showOwnerRoom.vue index e76f00479..2fa63f6a6 100644 --- a/src/components/owner/showOwnerRoom.vue +++ b/src/components/owner/showOwnerRoom.vue @@ -104,7 +104,7 @@ - + diff --git a/src/components/room/deletePropertyRightRegistration.vue b/src/components/room/deletePropertyRightRegistration.vue index 439070ca3..14ecb885c 100644 --- a/src/components/room/deletePropertyRightRegistration.vue +++ b/src/components/room/deletePropertyRightRegistration.vue @@ -42,7 +42,7 @@ export default { }, async handleConfirm() { try { - const res = await deletePropertyRightRegistration(this.deleteData) + const res = await deletePropertyRightRegistration(this.deleteData.prrId) if (res.code === 0) { this.$message.success(this.$t('common.operationSuccess')) this.visible = false diff --git a/src/components/room/editPropertyRightRegistrationDetail.vue b/src/components/room/editPropertyRightRegistrationDetail.vue index 835806b41..969c70f53 100644 --- a/src/components/room/editPropertyRightRegistrationDetail.vue +++ b/src/components/room/editPropertyRightRegistrationDetail.vue @@ -7,21 +7,22 @@ :placeholder="$t('propertyRightDetail.edit.materialTypePlaceholder')" disabled /> -