This commit is contained in:
caozehui
2025-01-03 11:27:36 +08:00
parent 8a5bcca901
commit 938b9054d3
7 changed files with 356 additions and 250 deletions

View File

@@ -4,7 +4,7 @@ export namespace CheckData {
errorSysName: string,
dataRule: string,
deviceName: string,
monitorIdx: string,
chnNum: string,
}
/**
@@ -46,7 +46,7 @@ export namespace CheckData {
export interface ScriptItem{
scriptName: string,
scriptType?: string,
children?: ScriptItem1[]
children?: ScriptItem[]
}
// 用来描述 通道检测结果
export enum ChnCheckResultEnum {

View File

@@ -1,4 +1,5 @@
import http from "@/api";
import {CheckData} from "@/api/check/interface";
export const getBigTestItem = (planId: string) => {
return http.get(`/adPlan/getBigTestItem?planId=${planId}`, {loading: false});
@@ -28,7 +29,7 @@ export const getTreeData = (params: {
scriptType: string | null,
code: string
}) => {
return http.post("/result/treeData/", params, {loading: false});
return http.post<CheckData.ScriptItem[]>("/result/treeData/", params, {loading: true});
}
/**