From 40671eb79c1805f661fd0e12061dd1b406af9b15 Mon Sep 17 00:00:00 2001
From: jiazx0107 <jiazx0107@163.com>
Date: 星期六, 17 一月 2026 17:10:58 +0800
Subject: [PATCH] Merge branch 'master' of http://124.71.187.17:8299/r/fzzy-igdss
---
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