正式检测-预检测提示及日志功能

This commit is contained in:
caozehui
2025-01-02 18:00:58 +08:00
parent 4031724fa9
commit 410cd53e51
8 changed files with 268 additions and 122 deletions

View File

@@ -43,13 +43,11 @@ export namespace CheckData {
}
// 用来描述检测脚本类型
export interface ScriptItem {
id: string,
code?: string,
export interface ScriptItem{
scriptName: string,
children?: ScriptItem[]
scriptType?: string,
children?: ScriptItem1[]
}
// 用来描述 通道检测结果
export enum ChnCheckResultEnum {
UNKNOWN = -1,
@@ -62,7 +60,7 @@ export namespace CheckData {
//用来描述 某个脚本测试项对所有通道的检测结果
export interface ScriptChnItem {
scriptId: string
scriptType: string
scriptName?: string //可以不要该属性,有点多余
// 设备
@@ -93,7 +91,7 @@ export namespace CheckData {
* 用于描述 脚本检测结果展示的按钮类型
*/
export interface ScriptChnViewItem {
scriptId: string,
scriptType: string,
scriptName?: string //脚本项名称,可以不要该属性,有点多余
// 设备

View File

@@ -9,7 +9,7 @@ export const getBigTestItem = (planId: string) => {
* @param params 当为scriptType为null时表示查询所有脚本类型否则只查询指定脚本类型。当为chnNum为-1时表示查询所有通道否则只查询指定通道。
*/
export const getFormData = (params: {
scriptId: string,
planId: string,
deviceId: string,
chnNum: string,
scriptType: string | null