林旭祥 10 ヶ月 前
コミット
2b34e7d8ba
2 ファイル変更4 行追加6 行削除
  1. 3 5
      src/components/OptionWindow/index.vue
  2. 1 1
      src/views/train/test.vue

+ 3 - 5
src/components/OptionWindow/index.vue

@@ -1,7 +1,6 @@
 <template>
   <div>
-    <transition :enter-active-class="proxy?.animate.mask.enter"
-      :leave-active-class="proxy?.animate.mask.leave">
+    <transition :enter-active-class="proxy?.animate.mask.enter" :leave-active-class="proxy?.animate.mask.leave">
       <div class="mask" v-if="optionWindow.show"></div>
     </transition>
     <transition :enter-active-class="proxy?.animate.dialog.enter" :leave-active-class="proxy?.animate.dialog.leave">
@@ -41,7 +40,7 @@
               </div>
             </div>
 
-            <div>
+            <div v-if="['skiprope'].includes(optionForm.project)">
               <div>接收心率</div>
               <div>
                 <el-switch v-model="optionForm.hasHB" :active-value="true" :inactive-value="false" />
@@ -55,7 +54,7 @@
                 </el-select>
               </div>
             </div>
-            <div>
+            <div v-if="['heartbeat'].includes(optionForm.project)">
               <div>设置运动量目标</div>
               <div>
                 平均心率:
@@ -136,7 +135,6 @@ const timeList =
 const data = reactive<any>({
   optionForm: {
     gesture: true,
-    hasHB: false,
   },
   optionWindow: {
     show: false,

+ 1 - 1
src/views/train/test.vue

@@ -16,7 +16,7 @@
       <div>违规项</div>
       <div v-for="(item, index) in backReason" :key="index">{{ item }}</div>
     </div>
-    <div>当前状态:({{ examState == 3 ? "初始化完成" : examState == 40 ? "创建测试" : examState == 41 ? "开始人脸识别"
+    <div>当前状态:({{ examState == 3 ? "初始化完成" : examState == 40 ? "创建测试" : examState == 41 ? "正在人脸识别"
       :
       examState ==
         43 ? "停止人脸识别" : examState == 42 ? "正在测试" : "请初始化" }})</div>