浏览代码

四性检测修改

duy 2 月之前
父节点
当前提交
3d052452bd
共有 1 个文件被更改,包括 16 次插入10 次删除
  1. 16 10
      src/views/archives/test/testing.vue

+ 16 - 10
src/views/archives/test/testing.vue

@@ -317,10 +317,16 @@ const detection = async () => {
             statusPercent.value = `${Math.floor(percent)}%`
             activeIndex.value = 2
         } else if (elapsed <= 600000) { // 8-10分钟
-            statusPercent.value = '100%'
+            statusPercent.value = '检测完成'
+            // setTimeout(() => {
+            //     statusPercent.value = '检测完成'
+            // }, 1000)
             activeIndex.value = 3
+            activeIndex.value = 4 // 四性检测完成
+              statusPercent.value = '检测完成'
         } else { // 超过10分钟
 
+
             activeIndex.value = 4 // 四性检测完成
            statusPercent.value = '检测完成'
            clearInterval(progressTimer)
@@ -417,15 +423,15 @@ watch(() => [
                 pushTable()
             })
         }
-        if (index.value === 1) {
-            statusPercent.value = '25%'
-        } else if (index.value === 2) {
-            statusPercent.value = '50%'
-        } else if (index.value === 3) {
-            statusPercent.value = '75%'
-        } else if (index.value === 4) {
-            statusPercent.value = '100%'
-        }
+        // if (index.value === 1) {
+        //     statusPercent.value = '25%'
+        // } else if (index.value === 2) {
+        //     statusPercent.value = '50%'
+        // } else if (index.value === 3) {
+        //     statusPercent.value = '75%'
+        // } else if (index.value === 4) {
+        //     statusPercent.value = '100%'
+        // }
 
     },
 )