微调
This commit is contained in:
@@ -335,19 +335,17 @@ const checkResultView: ComputedRef<CheckData.ScriptChnViewItem[]> = computed(()
|
|||||||
|
|
||||||
watch(testStatus, function (newValue, oldValue) {
|
watch(testStatus, function (newValue, oldValue) {
|
||||||
if (newValue == 'start') {
|
if (newValue == 'start') {
|
||||||
ElMessage.success('初始化开始!')
|
if(!checkStore.selectTestItems.preTest && !checkStore.selectTestItems.channelsTest){
|
||||||
|
ElMessage.success('初始化开始!')
|
||||||
|
emit('update:testStatus', 'test_init')
|
||||||
|
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:初始化开始!`})
|
||||||
|
}
|
||||||
startTimeCount()
|
startTimeCount()
|
||||||
|
|
||||||
showTestLog()
|
showTestLog()
|
||||||
|
|
||||||
// if (oldValue == 'recheck' || oldValue == 'error' || oldValue == 'test_init_fail' || oldValue == 'connect_timeout' || oldValue == 'pause_timeout' || oldValue == 'error_flow_end') {
|
|
||||||
// handleReCheck()
|
|
||||||
// }
|
|
||||||
emit('update:testStatus', 'test_init')
|
|
||||||
//startTimer() // todo 可移除
|
//startTimer() // todo 可移除
|
||||||
startData.value = new Date();
|
startData.value = new Date();
|
||||||
timeDifference.value = 0;
|
timeDifference.value = 0;
|
||||||
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:初始化开始!`})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newValue == 'recheck' || newValue == 'error' || newValue == 'test_init_fail' || newValue == 'connect_timeout' || newValue == 'pause_timeout' || oldValue == 'error_flow_end') {
|
if (newValue == 'recheck' || newValue == 'error' || newValue == 'test_init_fail' || newValue == 'connect_timeout' || newValue == 'pause_timeout' || oldValue == 'error_flow_end') {
|
||||||
|
|||||||
@@ -407,7 +407,8 @@ watch(ActiveStatue, function (newValue, oldValue) {
|
|||||||
}
|
}
|
||||||
if (newValue === 'success' && stepsActiveIndex.value < stepsTotalNum.value - 1) {
|
if (newValue === 'success' && stepsActiveIndex.value < stepsTotalNum.value - 1) {
|
||||||
nextStep() // 实现自动点击,进入下一个测试内容
|
nextStep() // 实现自动点击,进入下一个测试内容
|
||||||
handleSubmit()
|
//handleSubmit()
|
||||||
|
handleSubmitFast()
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user