This commit is contained in:
caozehui
2024-12-24 11:29:31 +08:00
parent c241d8b819
commit 30c1f90513
6 changed files with 436 additions and 262 deletions

View File

@@ -1,12 +1,34 @@
import type { Device } from '@/api/device/interface/device'
import http from '@/api'
export const startProTest = (params) => {
return http.post(`/prepare/startPreTest`, params,{ loading: false })
export const startPreTest = (params) => {
return http.post(`/prepare/startPreTest`, params, {loading: false})
}
export const closePreTest = (params) => {
return http.post(`/prepare/closePreTest`, params,{ loading: false })
}
}
/**
* 开始正式检测
* @param params
*/
export const startTest = (params: { deviceIds: string[] }) => {
return http.post(`/test/startTest`, params, {loading: false})
}
/**
* 暂停正式检测
* @param params
*/
export const pauseTest = (params: { deviceIds: string[] }) => {
return http.post(`/test/pauseTest`, params, {loading: false})
}
/**
* 继续正式检测
* @param params
*/
export const resumeTest = (params: { deviceIds: string[] }) => {
return http.post(`/test/resumeTest`, params, {loading: false})
}