This commit is contained in:
caozehui
2025-01-07 17:34:15 +08:00
parent fe04ad1573
commit 7a0626413d
3 changed files with 42 additions and 31 deletions

View File

@@ -294,7 +294,7 @@ watch(testStatus, function (newValue, oldValue) {
percentage.value = 0
}
emit('update:testStatus', 'preTest_process')
startTimer() // todo 可移除
//startTimer() // todo 可移除
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:预检测开始!`})
}
})
@@ -345,7 +345,7 @@ watch(webMsgSend, function (newValue, oldValue) {
// }
// emit('update:testStatus', 'preTest_fail')
// break;
case 'YJC_xyjy':
case 'yjc_xyjy':
switch (newValue.operateCode) {
case 'INIT_GATHER$03':
if (newValue.code == 25001) {
@@ -353,7 +353,7 @@ watch(webMsgSend, function (newValue, oldValue) {
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:预检测成功!`})
activeIndex = getNextActiveIndex() + 2
startTimer()
//startTimer()
emit('update:testStatus', 'process')
}
@@ -386,7 +386,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('FREQ')
startTimer()
//startTimer()
}
break;
case 'V_Start':
@@ -399,7 +399,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('V')
startTimer()
//startTimer()
}
break;
case 'HV_Start':
@@ -412,7 +412,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('HV')
startTimer()
//startTimer()
}
break;
case 'HI_Start':
@@ -425,7 +425,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('HI')
startTimer()
//startTimer()
}
break;
case 'HP_Start':
@@ -438,7 +438,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('HP')
startTimer()
//startTimer()
}
break;
case 'HSV_Start':
@@ -451,7 +451,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('HSV')
startTimer()
//startTimer()
}
break;
case 'HSI_Start':
@@ -464,7 +464,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('HSI')
startTimer()
//startTimer()
}
break;
case 'VOLTAGE_Start':
@@ -477,7 +477,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('VOLTAGE')
startTimer()
//startTimer()
}
break;
case 'I_Start':
@@ -490,7 +490,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('I')
startTimer()
//startTimer()
}
break;
case 'IMBV_Start':
@@ -503,7 +503,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('IMBV')
startTimer()
//startTimer()
}
break;
case 'IMBA_Start':
@@ -516,7 +516,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('IMBA')
startTimer()
//startTimer()
}
break;
case 'F_Start':
@@ -529,7 +529,7 @@ watch(webMsgSend, function (newValue, oldValue) {
updateLog(false)
if (testStatus.value != 'paused') {
activeIndex = getNextActiveIndex('F')
startTimer()
//startTimer()
}
break;
case 'Quit':
@@ -905,7 +905,7 @@ const startTimer = () => {
}, 4000);
setTimeout(() => {
emit('update:webMsgSend', {
requestId: 'YJC_xyjy',
requestId: 'yjc_xyjy',
operateCode: "INIT_GATHER$03",
code: "25001"
})
@@ -1066,7 +1066,7 @@ const handleResumeTest = () => {
type: 'info',
log: `${new Date().toLocaleString()}:继续检测`,
})
startTimer()
//startTimer()
console.log('开始继续检测')
};