|
@@ -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%'
|
|
|
+ // }
|
|
|
|
|
|
},
|
|
|
)
|