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

30 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-12-23 13:23:28 +08:00
import http from "@/api";
import {CheckData} from "@/api/check/interface";
2024-12-23 13:23:28 +08:00
export const getBigTestItem = (planId: string) => {
return http.get(`/adPlan/getBigTestItem?planId=${planId}`, {loading: false});
2024-12-28 16:50:32 +08:00
}
/**
*
* @param params scriptType为null时chnNum为-1
*/
export const getFormData = (params: { planId: string, deviceId: string, chnNum: number, scriptType?: string }) => {
return http.post("/result/formContent/", params, {loading: false});
}
/**
*
* @param params
*/
2024-12-28 16:50:32 +08:00
export const getTreeData = (params: { deviceId: string, chnNum: number, checkItemId: string }) => {
return http.post("/result/treeData/", params, {loading: false});
2024-12-28 16:50:32 +08:00
}
/**
*
* @param params
*/
2024-12-28 16:50:32 +08:00
export const getCheckData = (params: { deviceId: string, chnNum: number, checkItemId: string }) => {
return http.post("/result/data/", params, {loading: false});
2024-12-23 13:23:28 +08:00
}