This commit is contained in:
caozehui
2025-02-25 13:47:33 +08:00
parent 4acec8a2d6
commit 5666e01ae0

View File

@@ -73,7 +73,7 @@ import test from './test.vue'
import {Device} from '@/api/device/interface/device';
import socketClient from '@/utils/webSocketClient';
import {useCheckStore} from "@/stores/modules/check";
import {pauseTest, startPreTest} from '@/api/socket/socket'
import {pauseTest, resumeTest, startPreTest} from '@/api/socket/socket'
const checkStore = useCheckStore();
const nextStepText = ref('下一步');
@@ -310,16 +310,16 @@ const sendPause = () => {
const sendResume = () => {
console.log('发起继续检测请求')
// resumeTest({
// userPageId: "cdf",
// devIds: checkStore.devices.map((item) => item.deviceId),
// planId: checkStore.plan.id,
// operateType: '2' // '1'为预检测、2为正式检测
// }).then(res => {
// Object.assign(webMsgSend.value, {
// requestId: 'Resume_Success'
// })
// })
resumeTest({
userPageId: "cdf",
devIds: checkStore.devices.map((item) => item.deviceId),
planId: checkStore.plan.id,
operateType: '2' // '1'为预检测、2为正式检测
}).then(res => {
Object.assign(webMsgSend.value, {
requestId: 'Resume_Success'
})
})
Object.assign(webMsgSend.value, {
requestId: 'Resume_Success'
})