From 82811b2097e59883e93523a0f07b33d3091ebfe1 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 09 七月 2026 09:41:20 +0800
Subject: [PATCH] fix(safe): 完善安全巡检系统功能

---
 src/api/equipmentManagement/safetyFacility.js |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/src/api/equipmentManagement/safetyFacility.js b/src/api/equipmentManagement/safetyFacility.js
new file mode 100644
index 0000000..572931c
--- /dev/null
+++ b/src/api/equipmentManagement/safetyFacility.js
@@ -0,0 +1,44 @@
+import request from "@/utils/request";
+
+// 鑾峰彇瀹夊叏璁炬柦鍒楄〃
+export function getSafetyFacilityList(params) {
+  return request({
+    url: "/safeFacilityLedger/page",
+    method: "get",
+    params,
+  });
+}
+
+// 鏍规嵁ID鏌ヨ瀹夊叏璁炬柦
+export function getSafetyFacilityById(id) {
+  return request({
+    url: `/safeFacilityLedger/${id}`,
+    method: "get",
+  });
+}
+
+// 鏂板瀹夊叏璁炬柦
+export function addSafetyFacility(data) {
+  return request({
+    url: "/safeFacilityLedger",
+    method: "post",
+    data,
+  });
+}
+
+// 淇敼瀹夊叏璁炬柦
+export function updateSafetyFacility(data) {
+  return request({
+    url: "/safeFacilityLedger",
+    method: "put",
+    data,
+  });
+}
+
+// 鍒犻櫎瀹夊叏璁炬柦
+export function deleteSafetyFacility(ids) {
+  return request({
+    url: `/safeFacilityLedger/${ids}`,
+    method: "delete",
+  });
+}

--
Gitblit v1.9.3