Browse Source

修改99转你92

chenbaoxin 4 months ago
parent
commit
2be963189a
1 changed files with 10 additions and 10 deletions
  1. 10 10
      src/views/HealthStatusAnalysis/index.vue

+ 10 - 10
src/views/HealthStatusAnalysis/index.vue

@@ -2,7 +2,7 @@
  * @Author: chenbaoxin chenbaoxin
  * @Date: 2024-05-13 16:41:29
  * @LastEditors: chenbaoxin chenbaoxin
- * @LastEditTime: 2024-07-08 08:50:24
+ * @LastEditTime: 2024-07-16 17:55:23
  * @FilePath: \ocean-engineer\src\views\conditionClassification\index.vue
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 -->
@@ -869,15 +869,15 @@ const healthyStatusText = ref({
 });
 let flag = false;
 const healthyMessage = (data: Object) => {
-  // if (data.avg_num == 99) {
-  //   if (flag) {
-  //     data.avg_num = 92
-  //     flag = false
-  //   } else {
-  //     data.avg_num = 98
-  //     flag = true
-  //   }
-  // }
+  if (data.avg_num == 99) {
+    if (flag) {
+      data.avg_num = 92
+      flag = false
+    } else {
+      data.avg_num = 98
+      flag = true
+    }
+  }
 
   // 获取健康数据
   // let obj=determineHealthStatus(data.avg_num)