From db0b2a9b6d4e1d604932fe0a109dd39bbe5e61d9 Mon Sep 17 00:00:00 2001 From: zch Date: Wed, 8 Apr 2026 14:23:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(ems/types):=20=E6=96=B0=E5=A2=9E=E6=8C=AF?= =?UTF-8?q?=E5=8A=A8=E7=9C=8B=E6=9D=BF=E4=B8=93=E7=94=A8=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ems/types.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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。