2024-12-20 18:19:18 +08:00
|
|
|
|
export namespace CheckData {
|
|
|
|
|
|
export interface DataCheck {
|
|
|
|
|
|
testScriptName: string,
|
|
|
|
|
|
errorSysName: string,
|
|
|
|
|
|
dataRule: string,
|
|
|
|
|
|
deviceName: string,
|
|
|
|
|
|
monitorIdx: string,
|
|
|
|
|
|
}
|
2024-12-18 18:53:55 +08:00
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 用于定义 查看(设备)通道检测结果 类型
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface CheckResult {
|
|
|
|
|
|
chnNum: string,
|
|
|
|
|
|
standardValue: number,
|
|
|
|
|
|
L1: number,
|
|
|
|
|
|
L1_errValue: number,
|
|
|
|
|
|
L2: number,
|
|
|
|
|
|
L2_errValue: number,
|
|
|
|
|
|
L3: number,
|
|
|
|
|
|
L3_errValue: number,
|
|
|
|
|
|
maxErrVaule: number,
|
|
|
|
|
|
result: string,
|
|
|
|
|
|
}
|
2024-12-18 15:56:59 +08:00
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 用于定义 具体通道的原始数据类型
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface RawDataItem {
|
|
|
|
|
|
updateTime: string,
|
|
|
|
|
|
L1: number,
|
|
|
|
|
|
L2: number,
|
|
|
|
|
|
L3: number
|
|
|
|
|
|
}
|
2024-12-18 15:56:59 +08:00
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
export interface Device {
|
|
|
|
|
|
deviceID: string; //装置序号ID
|
|
|
|
|
|
deviceName: string; //设备名称
|
|
|
|
|
|
chnNum: number; //设备通道数
|
|
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
// 用来描述检测脚本类型
|
|
|
|
|
|
export interface ScriptItem {
|
|
|
|
|
|
id: string,
|
|
|
|
|
|
scriptItemName: string,
|
|
|
|
|
|
children?: ScriptItem[]
|
|
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
// 用来描述 通道检测结果
|
|
|
|
|
|
export enum ChnCheckResultEnum {
|
|
|
|
|
|
UNKNOWN = -1,
|
|
|
|
|
|
FAIL = 0,
|
|
|
|
|
|
SUCCESS = 1,
|
|
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
//用来描述 某个脚本测试项对所有通道的检测结果
|
|
|
|
|
|
export interface ScriptChnItem {
|
|
|
|
|
|
scriptID: string
|
|
|
|
|
|
scriptItemName: string
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
// 设备
|
|
|
|
|
|
devices: Array<{
|
|
|
|
|
|
deviceID: string,
|
|
|
|
|
|
deviceName: string,
|
|
|
|
|
|
chnResult: ChnCheckResultEnum[] //通道检测结果
|
|
|
|
|
|
}>
|
|
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 用于描述 (设备)通道检测结果展示的按钮类型
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface ButtonResult {
|
|
|
|
|
|
resultType: 'info' | 'success' | 'danger',
|
|
|
|
|
|
resultValue: '-' | '√' | '×'
|
|
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 用于描述 脚本检测结果展示的按钮类型
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface ScriptChnViewItem {
|
|
|
|
|
|
scriptID: string,
|
|
|
|
|
|
scriptItemName: string //脚本项名称
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
// 设备
|
|
|
|
|
|
devices: Array<{
|
|
|
|
|
|
deviceID: string,
|
|
|
|
|
|
deviceName: string,
|
|
|
|
|
|
chnResult: ButtonResult[],
|
|
|
|
|
|
}>
|
|
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
|
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 定义检测日志类型
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface LogItem {
|
|
|
|
|
|
type: 'info' | 'error'
|
|
|
|
|
|
log: string
|
|
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-20 18:19:18 +08:00
|
|
|
|
|