暂停正式检测

This commit is contained in:
caozehui
2025-01-14 16:21:50 +08:00
parent fcd8c1a0dd
commit ee564dccb6
2 changed files with 19 additions and 11 deletions

View File

@@ -42,6 +42,12 @@
</el-icon>
初始化中
</el-button>
<!-- <el-button type="warning" v-if="ActiveStatue === 'paused'" disabled>-->
<!-- <el-icon class="loading-box" style="color: #fff;margin-right: 8px;">-->
<!-- <component :is="Refresh"/>-->
<!-- </el-icon>-->
<!-- 暂停中-->
<!-- </el-button>-->
<el-button :type="ActiveStatue==='success'?'primary':'danger'" :icon="Right"
v-if="ActiveStatue === 'success'||ActiveStatue==='error'||ActiveStatue==='test_init_fail'||ActiveStatue==='connect_timeout'"
@click="nextStep">
@@ -78,6 +84,7 @@ import {Device} from '@/api/device/interface/device';
import socketClient from '@/utils/webSocketClient';
import {useCheckStore} from "@/stores/modules/check";
import {startPreTest, pauseTest, resumeTest} from '@/api/socket/socket'
import {showFullScreenLoading} from "@/components/Loading/fullScreen";
//import SvgIcon from '@/components/SvgIcon.vue';
@@ -370,11 +377,8 @@ watch(ActiveStatue, function (newValue, oldValue) {
const sendPause = () => {
console.log('发起暂停请求')
pauseTest().then(res => {
Object.assign(webMsgSend.value, {
requestId: 'Pause_Success'
})
})
pauseTest()
showFullScreenLoading()
}
const sendResume = () => {
console.log('发起继续检测请求')