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

45 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-12-23 13:23:28 +08:00
import http from "@/api";
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
*/
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: {
scriptId: string,
deviceId: string,
2025-01-02 20:27:36 +08:00
devNum: string,
2024-12-31 19:03:52 +08:00
scriptType: string | null,
2025-01-02 20:27:36 +08:00
code: string
2024-12-31 19:03:52 +08:00
}) => {
return http.post("/result/treeData/", params, {loading: false});
2024-12-28 16:50:32 +08:00
}
/**
*
* @param params
*/
2024-12-31 19:03:52 +08:00
export const getTableData = (params: {
scriptId: string,
deviceId: string,
chnNum: string,
scriptType: string | null
}) => {
2024-12-31 14:27:36 +08:00
return http.post("/result/tableData/", params, {loading: false});
2024-12-23 13:23:28 +08:00
}