微调
This commit is contained in:
@@ -325,7 +325,6 @@ watch(testStatus, function (newValue, oldValue) {
|
|||||||
showTestLog()
|
showTestLog()
|
||||||
|
|
||||||
if (oldValue == 'error') {
|
if (oldValue == 'error') {
|
||||||
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:开始重新检测!`})
|
|
||||||
handleReCheck()
|
handleReCheck()
|
||||||
}
|
}
|
||||||
emit('update:testStatus', 'test_init')
|
emit('update:testStatus', 'test_init')
|
||||||
@@ -334,7 +333,7 @@ watch(testStatus, function (newValue, oldValue) {
|
|||||||
timeDifference.value = 0;
|
timeDifference.value = 0;
|
||||||
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:初始化开始!`})
|
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:初始化开始!`})
|
||||||
}
|
}
|
||||||
if (newValue == 'test_init_fail' || newValue == 'connect_timeout' || newValue == 'error' || newValue == 'pause_timeout' || newValue == 'recheck') {
|
if (newValue == 'recheck' || newValue == 'error' || newValue == 'test_init_fail' || newValue == 'connect_timeout' || newValue == 'pause_timeout' || oldValue == 'error_flow_end') {
|
||||||
stopTimeCount()
|
stopTimeCount()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -551,7 +550,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
|||||||
case 'Resume_Success':
|
case 'Resume_Success':
|
||||||
ElMessage.success('开始继续检测')
|
ElMessage.success('开始继续检测')
|
||||||
emit('update:testStatus', 'process')
|
emit('update:testStatus', 'process')
|
||||||
handleResumeTest()
|
//handleResumeTest()
|
||||||
break;
|
break;
|
||||||
// case 'Resume_Fail':
|
// case 'Resume_Fail':
|
||||||
// ElMessage.error('无法继续检测')
|
// ElMessage.error('无法继续检测')
|
||||||
@@ -1336,10 +1335,7 @@ const todoItem = (code: string) => {
|
|||||||
const handleResumeTest = () => {
|
const handleResumeTest = () => {
|
||||||
//activeIndex++
|
//activeIndex++
|
||||||
startData.value = new Date();
|
startData.value = new Date();
|
||||||
testLogList.push({
|
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:开始重新检测!`})
|
||||||
type: 'info',
|
|
||||||
log: `${new Date().toLocaleString()}:继续检测`,
|
|
||||||
})
|
|
||||||
//startTimer()
|
//startTimer()
|
||||||
resumeTimeCount()
|
resumeTimeCount()
|
||||||
console.log('开始继续检测')
|
console.log('开始继续检测')
|
||||||
@@ -1353,10 +1349,12 @@ const handleReCheck = () => {
|
|||||||
timeView.value = '00:00:00'
|
timeView.value = '00:00:00'
|
||||||
timeDifference.value = 0
|
timeDifference.value = 0
|
||||||
testLogList.length = 0
|
testLogList.length = 0
|
||||||
|
|
||||||
errorCheckItem.length = 0
|
errorCheckItem.length = 0
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
showTestLog()
|
showTestLog()
|
||||||
|
handleResumeTest()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取当前执行的大测试项序号
|
// 获取当前执行的大测试项序号
|
||||||
@@ -1382,10 +1380,12 @@ const getNextActiveIndex = (code: string = ''): number => {
|
|||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
const startTimeCount = () => {
|
const startTimeCount = () => {
|
||||||
timer = setInterval(() => {
|
if(!timer){
|
||||||
timeCount.value = timeCount.value + 1
|
timer = setInterval(() => {
|
||||||
timeView.value = secondToTime(timeCount.value)
|
timeCount.value = timeCount.value + 1
|
||||||
}, 1000)
|
timeView.value = secondToTime(timeCount.value)
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const stopTimeCount = () => {
|
const stopTimeCount = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user