@@ -100,6 +100,6 @@ export default {
\ No newline at end of file
diff --git a/src/components/room/addShops.vue b/src/components/room/addShops.vue
index 7b17e16..bc16afa 100644
--- a/src/components/room/addShops.vue
+++ b/src/components/room/addShops.vue
@@ -2,14 +2,14 @@
-
+
-
diff --git a/src/components/room/bindOwnerShops.vue b/src/components/room/bindOwnerShops.vue
index 8d92591..33ad015 100644
--- a/src/components/room/bindOwnerShops.vue
+++ b/src/components/room/bindOwnerShops.vue
@@ -98,8 +98,8 @@ export default {
computed: {
formTitle() {
return this.formData.shopsState === '2007'
- ? this.$t('shops.sell') + this.$t('shops.shopInfo')
- : this.$t('shops.rent') + this.$t('shops.shopInfo')
+ ? this.$t('shops.sellShop')
+ : this.$t('shops.rentShop')
}
},
methods: {
diff --git a/src/components/room/editRoom.vue b/src/components/room/editRoom.vue
index 7df2530..4bc9385 100644
--- a/src/components/room/editRoom.vue
+++ b/src/components/room/editRoom.vue
@@ -18,7 +18,7 @@
-
diff --git a/src/components/room/floorUnitTree.vue b/src/components/room/floorUnitTree.vue
index 80079e2..e372d66 100644
--- a/src/components/room/floorUnitTree.vue
+++ b/src/components/room/floorUnitTree.vue
@@ -81,7 +81,7 @@ export default {
floorId: item.floorId,
floorNum: item.floorNum,
icon: 'el-icon-office-building',
- text: `${item.floorNum}${this.$t('room.floorUnitTree.building')}(${item.floorName})`,
+ text: `${item.floorNum}(${item.floorName})`,
children: []
}
treeData.push(floorMap[item.floorId])
@@ -91,7 +91,7 @@ export default {
floorMap[item.floorId].children.push({
id: `u_${item.unitId}`,
unitId: item.unitId,
- text: `${item.unitNum}${this.$t('room.floorUnitTree.unit')}`,
+ text: `${item.unitNum}`,
icon: 'el-icon-house'
})
}
diff --git a/src/components/room/searchRoom.vue b/src/components/room/searchRoom.vue
index 01c78ff..46b7dca 100644
--- a/src/components/room/searchRoom.vue
+++ b/src/components/room/searchRoom.vue
@@ -115,9 +115,9 @@ export default {
}
let response
- if (this.roomFlag === '1') {
+ if (this.roomFlag == '1') {
response = await queryRoomsWithSell(params)
- } else if (this.roomFlag === '2') {
+ } else if (this.roomFlag == '2') {
response = await queryRoomsWithOutSell(params)
} else {
response = await queryRooms(params)
@@ -127,7 +127,7 @@ export default {
this.pagination.total = response.total || 0
} catch (error) {
console.error('Failed to load room info:', error)
- this.$message.error(this.$t('searchRoom.loadFailed'))
+ this.$message.error(error)
}
},
chooseRoom(room) {
@@ -166,14 +166,6 @@ export default {
this.rooms = rooms
}
},
- mounted() {
- this.$on('listener-floor-info', this.listenerFloorInfo)
- this.$on('show-owner-rooms', this.showOwnerRooms)
- },
- beforeDestroy() {
- this.$off('listener-floor-info', this.listenerFloorInfo)
- this.$off('show-owner-rooms', this.showOwnerRooms)
- }
}
diff --git a/src/views/owner/listOwner.vue b/src/views/owner/listOwner.vue
index 57283a7..d878f01 100644
--- a/src/views/owner/listOwner.vue
+++ b/src/views/owner/listOwner.vue
@@ -412,7 +412,7 @@ export default {
openOwnerDetail(owner) {
console.log('Owner detail:', owner)
// 实际项目中跳转到详情页面
- this.$router.push(`/views/owner/ownerDetail?ownerId=${owner.ownerId}`)
+ this.$router.push(`/views/owner/ownerDetail?ownerId=${owner.ownerId}&needBack=Y`)
},
diff --git a/src/views/owner/ownerBindRoom.vue b/src/views/owner/ownerBindRoom.vue
index 8748e7c..9346bd2 100644
--- a/src/views/owner/ownerBindRoom.vue
+++ b/src/views/owner/ownerBindRoom.vue
@@ -55,7 +55,7 @@
-
+