From 4c58f8f132adf830917b6b8f49f8c8de87aaf748 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期四, 08 一月 2026 18:40:51 +0800
Subject: [PATCH] 数量检测提交2-检测协议实现

---
 fzzy-igdss-web/src/main/resources/static/security/quantity.js |   70 ++++++++++++++++++++++++++++++++++
 1 files changed, 69 insertions(+), 1 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/static/security/quantity.js b/fzzy-igdss-web/src/main/resources/static/security/quantity.js
index 0970d82..3c8be27 100644
--- a/fzzy-igdss-web/src/main/resources/static/security/quantity.js
+++ b/fzzy-igdss-web/src/main/resources/static/security/quantity.js
@@ -143,7 +143,6 @@
     }
 }
 
-
 /**
  * 璇锋眰鍥捐〃淇℃伅
  */
@@ -317,6 +316,68 @@
     $("#divPlugin2").html(html);
 }
 
+/**
+ * 鍚姩寮�濮嬫娴�
+ */
+function checkStart() {
+    if (!curCamera) {
+        shoTips("璇峰厛閫夋嫨璁惧锛�");
+        return;
+    }
+    layer.msg("寮�濮嬫墽琛屸�︹��");
+    var data = {
+        'depotId': curCamera.depotId
+    };
+    $.ajax({
+        type: "POST",
+        url: "/security/check-single",
+        dataType: "json",
+        contentType: "application/json;charset=UTF-8",
+        data: JSON.stringify(data),
+        success: function (result) {
+            if (result.code == "ORDER_SUCCESS") {
+                shoTips("鍛戒护鍙戠敓鎴愬姛锛岃绛夊緟缁堢杩斿洖缁撴灉鈥︹��");
+            } else {
+                shoTips("鍛戒护鍙戦�佸け璐ワ細" + result.msg);
+            }
+        },
+        error: function () {
+            shoTips("妫�娴嬪嚭鐜板紓甯革紝鎵ц澶辫触锛�");
+        }
+    });
+}
+
+/**
+ * 鍋滄妫�娴�
+ */
+function checkStop() {
+    if (!curCamera) {
+        shoTips("璇峰厛閫夋嫨浠撳簱锛�");
+        return;
+    }
+    layer.msg("寮�濮嬫墽琛屸�︹��");
+    var data = {
+        'depotId': curCamera.depotId
+    };
+    $.ajax({
+        type: "POST",
+        url: "/security/check-stop",
+        dataType: "json",
+        contentType: "application/json;charset=UTF-8",
+        data: JSON.stringify(data),
+        success: function (result) {
+            if (result.code == "ORDER_SUCCESS") {
+                shoTips("鍛戒护鍙戠敓鎴愬姛鈥︹��");
+            } else {
+                shoTips("鍛戒护鍙戦�佸け璐ワ細" + result.msg);
+            }
+        },
+        error: function () {
+            shoTips("妫�娴嬪嚭鐜板紓甯革紝鎵ц澶辫触锛�");
+        }
+    });
+}
+
 // 鍒濆鍖朎Charts娓╁害璧板娍鍥�
 function initEcharts(names, data) {
     // 鍒濆鍖朎Charts娓╁害璧板娍鍥�
@@ -389,4 +450,11 @@
     window.addEventListener('resize', function () {
         temperatureChart.resize();
     });
+}
+
+function shoTips(msg) {
+    layer.msg(msg,
+        {time: 3000, shift: 5, offset: "rb"},
+        function () {
+        });
 }
\ No newline at end of file

--
Gitblit v1.9.3