From f8fd43f1307b0ae3a55f5a5a1390fd13b506fa88 Mon Sep 17 00:00:00 2001
From: he wei <858544502@qq.com>
Date: 星期六, 15 三月 2025 11:15:23 +0800
Subject: [PATCH] U 发布提交

---
 src/api/lockManager.js |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 54 insertions(+), 6 deletions(-)

diff --git a/src/api/lockManager.js b/src/api/lockManager.js
index 09339fb..d70d033 100644
--- a/src/api/lockManager.js
+++ b/src/api/lockManager.js
@@ -16,23 +16,25 @@
  * 缂栬緫
  * lockId lockName areaId lockType
  */
-export function updateLock(params) {
+export function updateLock(data) {
   return request({
     url: "lockInf/updateLock",
-    method: "GET",
-    params,
+    method: "POST",
+    data,
   });
 }
 
 /**
  * 娣诲姞閿� 鍖呭惈鎵归噺
- * areaId lockName  lockType    num
+ *     num
+ * {areaId lockName  lockType..}
  */
-export function addLock(params) {
+export function addLock(params, data) {
   return request({
     url: "lockInf/addLock",
-    method: "GET",
+    method: "POST",
     params,
+    data,
   });
 }
 
@@ -91,4 +93,50 @@
     method: "GET",
     params: { id },
   });
+}
+
+/**
+ * 鏌ヨ鍏ㄩ儴锛堝睆鏌滐級绫诲瀷  涓嬫媺鐢�
+ * id
+ */
+export function getScreenType() {
+  return request({
+    url: "lockInf/getScreenType",
+    method: "POST",
+  });
+}
+
+/**
+ * 鏌ヨ鍏ㄩ儴锛堝睆鏌滐級鍝佺墝  涓嬫媺鐢�
+ * id
+ */
+export function getScreenProduct() {
+  return request({
+    url: "lockInf/getScreenProduct",
+    method: "POST",
+  });
+}
+
+/**
+ * 鏍规嵁lockId 鏌ヨ閿佺殑寮�闂褰�
+ * {lockId startTime endTime}
+ */
+export function getLockHisWithReal(lockId, startTime, endTime) {
+  return request({
+    url: "lockHis/getLockHisWithReal",
+    method: "GET",
+    params: { lockId, startTime, endTime },
+  });
+}
+
+/**
+ * 鏌ヨ閿佸巻鍙插憡璀�
+ * {areaId, startTime, endTime, pageNum, pageSize, almIds}
+ */
+export function getLockAlmHis(areaId, startTime, endTime, pageNum, pageSize, almIds) {
+  return request({
+    url: "lockAlmHis/getLockAlmHis",
+    method: "GET",
+    params: { areaId, startTime, endTime, pageNum, pageSize, almIds },
+  });
 }
\ No newline at end of file

--
Gitblit v1.9.1