From 09dc74e264b6262cbe41c9c8476e24705871d4a6 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期日, 08 十一月 2026 23:31:17 +0800
Subject: [PATCH] yxh

---
 src/layout/components/CurrentRoomTag.vue |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/src/layout/components/CurrentRoomTag.vue b/src/layout/components/CurrentRoomTag.vue
index 6b7fcb3..1c9639b 100644
--- a/src/layout/components/CurrentRoomTag.vue
+++ b/src/layout/components/CurrentRoomTag.vue
@@ -30,19 +30,30 @@
 })
 
 const tagText = computed(() => {
-  if (!hasView.value) return '鏈�夋嫨宸ヤ綅'
-  if (canOperate.value) return `璇婂锛�${roomStore.getViewText}`
+  // 銆愭湰闇�姹傘�戦《鏍忕粺涓�鏄剧ず銆屽綋鍓嶅伐浣嶏細+ 瀹為檯宸ヤ綅銆嶏紝鏇夸唬鍘熸潵鐨勩�岃瘖瀹わ細鈥︺��/銆屽洿瑙傦細鈥︺�嶅墠缂�
+  if (!hasView.value) return '褰撳墠宸ヤ綅锛氭湭閫夋嫨'
+  // 銆愭湰闇�姹偮蜂竴浜哄宸ヤ綅銆戝崰澶氫釜宸ヤ綅鏃惰ˉ涓�涓暟閲忔彁绀猴紝渚夸簬鐭ラ亾"鎴戣繕鍦ㄥ埆鐨勫矖浣�"
+  const seatCount = roomStore.getMySeatCount
+  const countSuffix = seatCount > 1 ? `锛堟垜鐨勫伐浣� ${seatCount} 涓級` : ''
+  if (canOperate.value) return `褰撳墠宸ヤ綅锛�${roomStore.getViewText}${countSuffix}`
   const owner = roomStore.viewOwnerName
-  return `鍥磋锛�${roomStore.getViewText}${owner ? `锛堜富浜� ${owner}锛塦 : '锛堝彧璇伙級'}`
+  return `褰撳墠宸ヤ綅锛�${roomStore.getViewText}锛堝洿瑙�${owner ? `锛屼富浜� ${owner}` : '锛屽彧璇�'}锛塦
 })
 
 const tooltip = computed(() => {
   if (!hasView.value) return '灏氭湭閫夋嫨宸ヤ綅锛岀偣鍑婚�夋嫨瑕佹煡鐪�/鍏ュ骇鐨勫伐浣�'
-  if (canOperate.value) return `褰撳墠宸ヤ綅锛�${roomStore.getViewText}锛堢偣鍑诲垏鎹㈠伐浣嶏級`
+  const seats = roomStore.getMySeats || []
+  const seatListText =
+    seats.length > 0
+      ? '鎴戠殑宸ヤ綅锛�' + seats.map((s) => `${s.roomName || '璇婂' + (s.roomId ?? '')} 路 ${s.bedNo ?? ''}`).join('銆�')
+      : ''
+  if (canOperate.value) {
+    return `褰撳墠宸ヤ綅锛�${roomStore.getViewText}锛堢偣鍑诲垏鎹㈠伐浣嶏級` + (seatListText ? `锛�${seatListText}` : '')
+  }
   const mine = roomStore.getSeatText
   return `鍥磋妯″紡锛堝彧璇伙級锛氭鍦ㄦ煡鐪嬨��${roomStore.getViewText}銆峘
     + (roomStore.viewOwnerName ? `锛屼富浜� ${roomStore.viewOwnerName}` : '')
-    + (mine ? `锛涙垜鍏ュ骇鐨勫伐浣嶏細${mine}` : '锛涙垜杩樻病鏈夊叆搴�')
+    + (seatListText ? `锛�${seatListText}` : (mine ? `锛涙垜鍏ュ骇鐨勫伐浣嶏細${mine}` : '锛涙垜杩樻病鏈夊叆搴�'))
     + '銆傜偣鍑诲彲鍒囨崲宸ヤ綅'
 })
 

--
Gitblit v1.9.3