diff --git a/src/api/ems/types.ts b/src/api/ems/types.ts index 684d750..20a16a0 100644 --- a/src/api/ems/types.ts +++ b/src/api/ems/types.ts @@ -102,12 +102,35 @@ export interface RecordIotenvInstantReportQuery extends EmsQuery { monitorCodeList?: string; samplingInterval?: EmsId | string; vibrationParam?: string; + highThreshold?: EmsDecimalValue; + warningThreshold?: EmsDecimalValue; + minContinuousSamples?: EmsId | string; + rapidRiseThreshold?: EmsDecimalValue; + stddevThreshold?: EmsDecimalValue; primaryMetricField?: string; samplingGranularity?: 'SECOND' | 'MINUTE' | 'HOUR' | string; beginRecordTime?: EmsDateValue; endRecordTime?: EmsDateValue; } +/** + * 振动看板专用查询参数。 + * 与后端 VibrationBoardQueryBo 一一对齐,避免页面继续复用过宽的通用报表查询类型。 + */ +export interface VibrationBoardQuery extends EmsQuery { + monitorId?: EmsId | string; + monitorIds?: Array | string; + samplingInterval?: number | string; + vibrationParam?: string; + highThreshold?: EmsDecimalValue; + warningThreshold?: EmsDecimalValue; + minContinuousSamples?: EmsId | string; + rapidRiseThreshold?: EmsDecimalValue; + stddevThreshold?: EmsDecimalValue; + beginRecordTime?: EmsDateValue; + endRecordTime?: EmsDateValue; +} + /** * 实时数据查询页只关心“最新一条”口径,所以把树节点范围、关键字和时效阈值单独收口。 * 这样后续即使再加 OPC/管廊来源筛选,也不需要把页面参数继续塞回宽泛的 EmsQuery。