Files
pqs-9100_client/frontend/src/api/check/test/index.ts

63 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-12-23 13:23:28 +08:00
import http from "@/api";
2025-01-03 11:27:36 +08:00
import {CheckData} from "@/api/check/interface";
2024-12-23 13:23:28 +08:00
2025-03-03 11:35:12 +08:00
export const getBigTestItem = (params: {
reCheckType:number,
planId: string,
devId: string,
}) => {
return http.post(`/adPlan/getBigTestItem`, params, {loading: false});
2024-12-28 16:50:32 +08:00
}
/**
*
* @param params scriptType为null时chnNum为-1
*/
2024-12-31 19:03:52 +08:00
export const getFormData = (params: {
planId: string,
2024-12-31 19:03:52 +08:00
deviceId: string,
chnNum: string,
scriptType: string | null
}) => {
return http.post("/result/formContent/", params, {loading: false});
}
/**
*
* @param params
*/
2024-12-31 19:03:52 +08:00
export const getTreeData = (params: {
2025-02-13 16:15:26 +08:00
scriptId?: string,
devId?: string,
devNum?: string,
scriptType?: string | null,
code?: number,
2024-12-31 19:03:52 +08:00
}) => {
2025-01-03 18:57:35 +08:00
return http.post<CheckData.TreeItem[]>("/result/treeData/", params, {loading: true});
2024-12-28 16:50:32 +08:00
}
/**
*
* @param params
*/
2024-12-31 19:03:52 +08:00
export const getTableData = (params: {
2025-01-06 19:20:36 +08:00
scriptType: string | null,
2024-12-31 19:03:52 +08:00
scriptId: string,
2025-01-06 19:20:36 +08:00
devId: string,
devNum: string,
code: number,
index: number,
2024-12-31 19:03:52 +08:00
}) => {
2025-01-06 14:50:36 +08:00
return http.post("/result/resultData/", params, {loading: false});
2025-01-09 16:27:05 +08:00
}
2025-01-13 13:57:24 +08:00
2025-01-21 14:52:44 +08:00
export const exportRawData = (params: {
scriptType: string | null,
scriptId: string,
devId: string,
devNum: string,
code: number,
index: number,
}) => {
return http.download("/result/exportRawData", params, {loading: false});
2025-01-13 13:57:24 +08:00
}