From 40660a1c55412cb86157504dddfdaef05b0dadbd Mon Sep 17 00:00:00 2001
From: jazz <jazzxhunter@163.com>
Date: 星期一, 25 十二月 2023 18:12:26 +0800
Subject: [PATCH] update_202312251812_卸麻通知和称谓显示v2

---
 src/pages/room/detail.vue |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/pages/room/detail.vue b/src/pages/room/detail.vue
index bfc6358..d3645b1 100644
--- a/src/pages/room/detail.vue
+++ b/src/pages/room/detail.vue
@@ -389,6 +389,10 @@
               o.appellationName = o.userName[0] + `${o.gender ? ['濂冲+', '鍏堢敓', '濂冲+'][o.gender] : '濂冲+'}`
             })
           }
+          // 宸插崰鐢ㄧ敤鎴锋暟鎹鐞�
+          if (res.data.occupyInfo && res.data.occupyInfo.userName) {
+            res.data.occupyInfo.appellationName = res.data.occupyInfo.userName[0] + `${res.data.occupyInfo.gender ? ['濂冲+', '鍏堢敓', '濂冲+'][res.data.occupyInfo.gender] : '濂冲+'}`
+          }
           // 宸叉湁鍗犵敤鐨勶紝鏇存敼宸蹭娇鐢ㄩ粯璁ゅ浜虹殑鐘舵��
           res.data.occupyInfo && (isUseDefaultChg = 1)
           res.data.occupyInfo && (isUseDefault = 1)
@@ -405,7 +409,7 @@
         var offNarcosisTimer = null
         offNarcosisTimer = setTimeout(() => {
           console.log('================================>', this.occupyInfoView)
-          if (this.occupyInfoView && this.occupyInfoView.hempStatus === 1 && this.occupyInfoView.visitOrderId) {
+          if (this.occupyInfoView && this.occupyInfoView.hempStatus === 2 && this.occupyInfoView.visitOrderId) {
             var flag
             offNarcosisIds && offNarcosisIds.length && (flag = offNarcosisIds.find((o) => { return o === this.occupyInfoView.visitOrderId }))
             if (!flag) {

--
Gitblit v1.8.0