This commit is contained in:
sjl
2025-02-26 11:40:31 +08:00
parent cbe41d80ce
commit 934162875c
2 changed files with 7 additions and 10 deletions

View File

@@ -51,7 +51,7 @@
暂停中
</el-button>
<el-button :type="ActiveStatue==='success'?'primary':'danger'" :icon="Right"
v-if="nextStepText!== '下一步' && (ActiveStatue === 'success'||ActiveStatue==='error'||ActiveStatue==='test_init_fail'||ActiveStatue==='connect_timeout'||ActiveStatue==='pause_timeout')"
v-if="nextStepText !== '下一步' && (ActiveStatue === 'success'||ActiveStatue==='error'||ActiveStatue==='test_init_fail'||ActiveStatue==='connect_timeout'||ActiveStatue==='pause_timeout')"
@click="nextStep">
{{ nextStepText }}
</el-button>
@@ -178,10 +178,10 @@ const handleSubmit = () => {
let deviceIds = checkStore.devices.map((item) => item.deviceId)
let planId = checkStore.plan.id
if (!dataSocket.socketServe.connected) {
ElMessage.error('webSocket连接中断')
return
}
// if (!dataSocket.socketServe.connected) {
// ElMessage.error('webSocket连接中断')
// return
// }
switch (stepsActive.value) {
case 1:
startPreTest({
@@ -294,6 +294,7 @@ watch(ActiveStatue, function (newValue, oldValue) {
nextStep() // 实现自动点击,进入下一个测试内容
handleSubmit()
}
})
const sendPause = () => {