This commit is contained in:
caozehui
2025-01-03 18:57:35 +08:00
parent 938b9054d3
commit d10a7a4884
4 changed files with 179 additions and 248 deletions

View File

@@ -44,9 +44,18 @@ export namespace CheckData {
// 用来描述检测脚本类型
export interface ScriptItem{
id: string,
code: string,
scriptName: string,
scriptType?: string,
children?: ScriptItem[]
}
// 用来描述 检测数据-左侧树结构
export interface TreeItem{
scriptTypeName: string|null,
sourceDesc: string|null,
index:number|null,
fly:number|null,
children?: TreeItem[]
}
// 用来描述 通道检测结果
export enum ChnCheckResultEnum {

View File

@@ -29,7 +29,7 @@ export const getTreeData = (params: {
scriptType: string | null,
code: string
}) => {
return http.post<CheckData.ScriptItem[]>("/result/treeData/", params, {loading: true});
return http.post<CheckData.TreeItem[]>("/result/treeData/", params, {loading: true});
}
/**