2024-11-28 14:30:49 +08:00
|
|
|
|
import type { ReqPage, ResPage } from '@/api/interface'
|
2024-10-23 20:53:58 +08:00
|
|
|
|
|
|
|
|
|
|
// 检测源模块
|
|
|
|
|
|
export namespace TestSource {
|
|
|
|
|
|
|
2024-11-28 14:30:49 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 检测脚本表格分页查询参数
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface ReqTestSourceParams extends ReqPage{
|
|
|
|
|
|
id: string; // 装置序号id 必填
|
|
|
|
|
|
name: string;
|
|
|
|
|
|
pattern: string;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-10-31 08:51:30 +08:00
|
|
|
|
// 检测源接口
|
2024-11-28 14:30:49 +08:00
|
|
|
|
export interface ResTestSource {
|
|
|
|
|
|
id: string; //检测源ID
|
|
|
|
|
|
name: string; //检测源名称(检测源类型 + 设备类型 + 数字自动生成)
|
2024-10-31 08:51:30 +08:00
|
|
|
|
pattern: string;//检测源模式(字典表Code字段,数字、模拟、比对)
|
|
|
|
|
|
type: string; //检测源类型(字典表Code字段,标准源、高精度设备)
|
|
|
|
|
|
devType: string;//检测源设备类型(字典表Code字段)
|
2024-11-28 14:30:49 +08:00
|
|
|
|
parameter?: string;//源参数(JSON字符串)
|
|
|
|
|
|
state:number;//
|
|
|
|
|
|
createBy?: string;
|
|
|
|
|
|
createTime?: string;
|
|
|
|
|
|
updateBy?: string;
|
|
|
|
|
|
updateTime?: string;
|
2024-10-23 20:53:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-28 14:30:49 +08:00
|
|
|
|
/* 检测脚本查询分页返回的对象;
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface ResTestSourcePage extends ResPage<ResTestSource> {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2024-11-29 16:29:26 +08:00
|
|
|
|
export interface ParameterType{
|
|
|
|
|
|
id:string;
|
|
|
|
|
|
sourceParamType:string;
|
|
|
|
|
|
sourceParamDesc:string;
|
|
|
|
|
|
sourceParamValue:string;
|
|
|
|
|
|
sort:number;
|
|
|
|
|
|
pId:string;
|
|
|
|
|
|
children?:ParameterType[];
|
|
|
|
|
|
}
|
2024-10-23 20:53:58 +08:00
|
|
|
|
}
|