frontend/src/views/machine/errorSystem/components/errorSystemDetailTable.vue
This commit is contained in:
@@ -42,8 +42,9 @@ export namespace CheckData {
|
||||
// 用来描述检测脚本类型
|
||||
export interface ScriptItem {
|
||||
id: string,
|
||||
code: string,
|
||||
scriptItemName: string,
|
||||
children?: ScriptItem[]
|
||||
//children?: ScriptItem[]
|
||||
}
|
||||
|
||||
// 用来描述 通道检测结果
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import http from "@/api";
|
||||
|
||||
export const getCheckItemDetail = (params: { checkItemId: string, deviceId: string, chnNum: number }) => {
|
||||
export const getCheckItemDetail = (params: { deviceId: string, chnNum: number, checkItemId?: string }) => {
|
||||
return http.post<any>("/check/test/detail/", params, {loading: false});
|
||||
}
|
||||
@@ -1,7 +1,34 @@
|
||||
import type { Device } from '@/api/device/interface/device'
|
||||
import http from '@/api'
|
||||
|
||||
|
||||
export const startTest = (params) => {
|
||||
return http.post(`/prepare/startTest`, 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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user