暂停时间过长页面效果
This commit is contained in:
@@ -48,8 +48,9 @@
|
||||
|
||||
<el-button
|
||||
type="warning"
|
||||
v-if="testStatus=='paused' && percentage < 100"
|
||||
v-if="(testStatus=='paused' || testStatus === 'pause_timeout') && percentage < 100"
|
||||
:icon="VideoPlay"
|
||||
:disabled="testStatus === 'pause_timeout'"
|
||||
@click="emit('sendResume')"
|
||||
>继续检测
|
||||
</el-button>
|
||||
@@ -347,6 +348,17 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
emit('update:testStatus', 'test_recheck')
|
||||
} else {
|
||||
switch (newValue.requestId) {
|
||||
case 'formal_real': // 正式测试
|
||||
switch (newValue.operateCode) {
|
||||
case "stop_timeout":
|
||||
ElMessageBox.alert(`暂停时间已过10分钟,本次检测已失效,请重新发起检测!`, '暂停时间过长', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
emit('update:testStatus', 'pause_timeout')
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'error_flow_end':
|
||||
ElMessageBox.alert(`设备连接异常,请检查设备连接情况!`, '初始化失败', {
|
||||
confirmButtonText: '确定',
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
暂停中
|
||||
</el-button>
|
||||
<el-button :type="ActiveStatue==='success'?'primary':'danger'" :icon="Right"
|
||||
v-if="ActiveStatue === 'success'||ActiveStatue==='error'||ActiveStatue==='test_init_fail'||ActiveStatue==='connect_timeout'"
|
||||
v-if="ActiveStatue === 'success'||ActiveStatue==='error'||ActiveStatue==='test_init_fail'||ActiveStatue==='connect_timeout'||ActiveStatue==='pause_timeout'"
|
||||
@click="nextStep">
|
||||
{{ nextStepText }}
|
||||
</el-button>
|
||||
@@ -372,6 +372,11 @@ watch(ActiveStatue, function (newValue, oldValue) {
|
||||
stepsActiveIndex.value++;
|
||||
nextStepText.value = '连接超时'
|
||||
}
|
||||
if (newValue === 'pause_timeout' && stepsActiveIndex.value === stepsTotalNum.value - 2) {
|
||||
stepsActiveIndex.value++;
|
||||
stepsActiveIndex.value++;
|
||||
nextStepText.value = '结束测试'
|
||||
}
|
||||
})
|
||||
|
||||
const sendPause = () => {
|
||||
|
||||
Reference in New Issue
Block a user