Przeglądaj źródła

修复房态页面数字异常问题

覃浩 2 lat temu
rodzic
commit
86167a939c
1 zmienionych plików z 17 dodań i 0 usunięć
  1. 17 0
      src/views/room/fangtailive.vue

+ 17 - 0
src/views/room/fangtailive.vue

@@ -1075,6 +1075,7 @@ export default {
           color: 'rgba(128, 128, 128, 1)'
         }
       },
+      isNumber: false,
       // 叫醒房间
       rouseRoomList: [],
       // 房间信息筛选暂时
@@ -2364,6 +2365,9 @@ export default {
     },
     // 处理房态数据代码
     houseStateNumbers() {
+      if(this.isNumber) {
+        return
+      }
       // 处理房态数据
       var tempGreen = 0
       var tempBlack = 0
@@ -2497,6 +2501,9 @@ export default {
             })
           })
           this.customerSourceList.forEach(item => {
+            if(this.isNumber) {
+              return
+            }
             if ('figure' in item) {
               let tempindex = this.customerSourceList.findIndex(index => index == item)
               this.customerSourceList.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
@@ -2514,6 +2521,9 @@ export default {
             })
           })
           this.cesRoomLayoutList.forEach(item => {
+            if(this.isNumber) {
+              return
+            }
             if ('figure' in item) {
               let tempindex = this.cesRoomLayoutList.findIndex(index => index == item)
               this.cesRoomLayoutList.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
@@ -2561,6 +2571,9 @@ export default {
             })
           })
           this.customerServiceScreening.forEach(item => {
+            if(this.isNumber) {
+              return
+            }
             if ('figure' in item) {
               let tempindex = this.customerServiceScreening.findIndex(index => index == item)
               this.customerServiceScreening.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
@@ -2608,6 +2621,9 @@ export default {
             })
           })
           this.roomInformationScreening.forEach(item => {
+            if(this.isNumber) {
+              return
+            }
             if ('figure' in item) {
               let tempindex = this.roomInformationScreening.findIndex(index => index == item)
               this.roomInformationScreening.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
@@ -2635,6 +2651,7 @@ export default {
           this.roomClear = res.result.status === 1
         }
       })
+      this.isNumber = true
     }
   }
 }