Kaynağa Gözat

区域增加筛选,只显示可选设备区域

Changpeng Duan 5 yıl önce
ebeveyn
işleme
3a962806ab
2 değiştirilmiş dosya ile 12 ekleme ve 11 silme
  1. 11 11
      online/src/page/mainpage.vue
  2. 1 0
      pc/src/views/heartLog.vue

+ 11 - 11
online/src/page/mainpage.vue

@@ -193,7 +193,7 @@
             clearInterval(this.timerAutoAddAppHeartRate);
             this.timerAutoAddAppHeartRate = setInterval(() => {
                 // 上课中,且已连接心率带
-                if (this.InClass == 1 && this.watchState) {
+                if (this.InClass == 1 && this.watchState && this.runMode != 'mock') {
                     // 上课就自动上报
                     this.AutoAddAppHeartRate();
                 } else {
@@ -201,16 +201,16 @@
                     console.log('下课中,不汇报');
                 }
 
-                // if (this.runMode == 'mock') {
-                //     this.InClass = 1;
-                //     this.duId = 775;
-                //     this.sn = '22735';
-                //     this.HrId = 87;
-                //     this.AutoAddAppHeartRate();
-                // } else {
-                //     // 不上课就不报
-                //     console.log('下课中,不汇报test');
-                // }
+                if (this.runMode == 'mock') {
+                    this.InClass = 1;
+                    this.duId = 775;
+                    this.sn = '22735';
+                    this.HrId = 87;
+                    this.AutoAddAppHeartRate();
+                } else {
+                    // 不上课就不报
+                    console.log('下课中,不汇报test');
+                }
             }, this.isAddHeartTime);
         },
         beforeDestroy() {

+ 1 - 0
pc/src/views/heartLog.vue

@@ -412,6 +412,7 @@
                     key: localStorage.ServiceKey,
                     shopId: localStorage.ServiceId,
                     svId: this.$route.query.svId,
+                    eqType:1//设备类型 1 电视盒子 2 演示对应中间件 3 演示客户端
                 };
                 let postdata = qs.stringify(param);
                 QueryVenueEquip(postdata).then(res => {