正式检测-左侧检测大项动态获取
This commit is contained in:
@@ -1,13 +1,30 @@
|
||||
import http from "@/api";
|
||||
import {CheckData} from "@/api/check/interface";
|
||||
|
||||
export const getFormData = (params: { deviceId: string, chnNum: number}) => {
|
||||
return http.post<any>("/check/detail/", params, {loading: false});
|
||||
export const getBigTestItem = (planId: string) => {
|
||||
return http.get(`/adPlan/getBigTestItem?planId=${planId}`, {loading: false});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取弹出框表单数据
|
||||
* @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
|
||||
*/
|
||||
export const getTreeData = (params: { deviceId: string, chnNum: number, checkItemId: string }) => {
|
||||
return http.post<any>("/check/treeData/", params, {loading: false});
|
||||
return http.post("/result/treeData/", params, {loading: false});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取检查数据
|
||||
* @param params
|
||||
*/
|
||||
export const getCheckData = (params: { deviceId: string, chnNum: number, checkItemId: string }) => {
|
||||
return http.post<any>("/check/data/", params, {loading: false});
|
||||
return http.post("/result/data/", params, {loading: false});
|
||||
}
|
||||
Reference in New Issue
Block a user