2024-11-19 16:30:03 +08:00
|
|
|
|
import type { ReqPage, ResPage } from '@/api/interface'
|
2024-10-23 20:53:58 +08:00
|
|
|
|
|
|
|
|
|
|
// 检测脚本模块
|
|
|
|
|
|
export namespace TestScript {
|
|
|
|
|
|
|
2024-11-19 16:30:03 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
2024-11-29 13:45:48 +08:00
|
|
|
|
* 检测脚本表格分页查询参数
|
2024-11-19 16:30:03 +08:00
|
|
|
|
*/
|
|
|
|
|
|
export interface ReqTestScriptParams extends ReqPage{
|
|
|
|
|
|
id: string; // 装置序号id 必填
|
|
|
|
|
|
name: string;
|
|
|
|
|
|
type: string;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-10-31 08:51:30 +08:00
|
|
|
|
// 检测脚本接口
|
2024-11-19 16:30:03 +08:00
|
|
|
|
export interface ResTestScript {
|
2024-10-31 08:51:30 +08:00
|
|
|
|
id?: string; //检测脚本ID
|
|
|
|
|
|
name: string; //检测脚本名称
|
|
|
|
|
|
type: string; //检测脚本类型(字典表Code字段,脚本还是模板)
|
|
|
|
|
|
pattern: string;//检测脚本模式(字典表Code字段,数字、模拟、比对)
|
2024-11-19 16:30:03 +08:00
|
|
|
|
valueType?: string;//脚本值类型(字典表Code字段,相对值脚本、绝对值脚本、无)
|
2024-10-31 08:51:30 +08:00
|
|
|
|
standardName: string;//参照标准名称
|
|
|
|
|
|
standardTime: string;//标准推行时间
|
2024-11-18 16:02:19 +08:00
|
|
|
|
state:number;//
|
2024-11-19 16:30:03 +08:00
|
|
|
|
createBy?: string;
|
|
|
|
|
|
createTime?: string;
|
|
|
|
|
|
updateBy?: string;
|
|
|
|
|
|
updateTime?: string;
|
2024-10-23 20:53:58 +08:00
|
|
|
|
}
|
2024-10-31 08:51:30 +08:00
|
|
|
|
|
2024-11-19 16:30:03 +08:00
|
|
|
|
/**
|
2024-11-29 13:45:48 +08:00
|
|
|
|
* 检测脚本查询分页返回的对象;
|
2024-11-19 16:30:03 +08:00
|
|
|
|
*/
|
2024-11-29 13:45:48 +08:00
|
|
|
|
export interface ResTestScriptPage extends ResPage<ResTestScript> {
|
2024-10-31 08:51:30 +08:00
|
|
|
|
|
2024-11-19 16:30:03 +08:00
|
|
|
|
}
|
2024-10-23 20:53:58 +08:00
|
|
|
|
}
|