From 18c174490b5778a652c10a3b57509ff61e743dd4 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期五, 06 十一月 2026 15:32:30 +0800
Subject: [PATCH] 完善设备监测、安全管理及采购业务页面
---
src/api/mes/dv/collect/index.ts | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/api/mes/dv/collect/index.ts b/src/api/mes/dv/collect/index.ts
index 44df7ff..64265f0 100644
--- a/src/api/mes/dv/collect/index.ts
+++ b/src/api/mes/dv/collect/index.ts
@@ -26,6 +26,7 @@
workOrderId?: number; // 鐢熶骇宸ュ崟缂栧彿
workOrderCode?: string; // 鐢熶骇宸ュ崟缂栫爜
activeAlarmCount?: number; // 鏈秷闄ゆ姤璀︽暟閲�
+ dataJson?: string; // 缃戝叧涓婃姤鐨勫師濮嬬灛鏃舵暟鎹�
}
/** 鏁伴噰瀹炴椂鏁版嵁 */
@@ -86,6 +87,16 @@
dataJson?: string;
}
+ export interface OfflineInterval {
+ startTime: string;
+ endTime: string;
+ durationSeconds: number;
+ }
+ export interface OfflineResult {
+ firstSampleTime?: string;
+ intervals: OfflineInterval[];
+ }
+
/** 鏁伴噰宸ヨ壓鍙傛暟蹇収 */
export interface CollectTech {
id?: number;
@@ -96,6 +107,11 @@
}
}
+/** 鎸夋暟閲囩绾挎椂闂存煡璇㈠仠鏈哄尯闂达紝鏁版嵁鏉ヨ嚜鏁伴噰鍘嗗彶銆� */
+export function getCollectOfflineIntervals(params: { deviceCode: string; startTime: string; endTime: string }) {
+ return requestClient.get<MesCollectApi.OfflineResult>('/mes/collect/offline/intervals', { params });
+}
+
/** 鏌ヨ鏁伴噰璁惧鐘舵�佸垪琛� */
export function getCollectDeviceList() {
return requestClient.get<MesCollectApi.CollectDevice[]>(
--
Gitblit v1.9.3