From 40d95599c1ac6ef89d465e031132d9c627a7f0bc Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期三, 19 十一月 2025 13:38:54 +0800
Subject: [PATCH] #增加出入库模式

---
 src/main/webapp/views/pipeline.html |   57 ---------------------------------------------------------
 1 files changed, 0 insertions(+), 57 deletions(-)

diff --git a/src/main/webapp/views/pipeline.html b/src/main/webapp/views/pipeline.html
index c182d24..5c60e6b 100644
--- a/src/main/webapp/views/pipeline.html
+++ b/src/main/webapp/views/pipeline.html
@@ -180,7 +180,6 @@
     var siteTableFullRows = 0;
     var outputDom = document.getElementById("output");
     $(document).ready(function() {
-        getIoModeInfo();
         initPlcErrorTable();
         getPlcError();
         initSiteTable();
@@ -190,7 +189,6 @@
     setInterval(function () {
         getPlcError();
         starGetSite();
-        getIoModeInfo();
     }, 1000);
     setInterval(function () {
         getSiteOutput();
@@ -201,61 +199,6 @@
         } else {
             getSite();
         }
-    }
-
-    var ioModeData;
-    function getIoModeInfo() {
-        $.ajax({
-            url: baseUrl+ "/site/io/mode/info/site",
-            headers: {'token': localStorage.getItem('token')},
-            method: 'GET',
-            success: function (res) {
-                if (res.code === 200){
-                    ioModeData = res.data;
-                    ioModeData.forEach(function (e) {
-                        $("#io-mode-"+e.floor).html(e.modeDesc);
-                    })
-                } else if (res.code === 403){
-                    window.location.href = baseUrl+"/login";
-                }  else {
-                    console.log(res.msg);
-                }
-            }
-        });
-    }
-
-    /**
-     * 寮哄埗鍒囨崲鍏ュ嚭搴撴ā寮�
-     */
-    function ioModeSwitch(el) {
-        var floor = el.split("-")[2];
-        if (ioModeData != null && ioModeData.length > 1) {
-            ioModeData.forEach(function(e) {
-                if (e.floor === Number(floor)) {
-                    if (e.modeVal === 3 || e.modeVal === 4) {
-                        layer.confirm('纭畾鍒囨崲涓哄叆搴撴ā寮忓悧锛�',function () {
-                            $.ajax({
-                                url: baseUrl+ "/site/io/mode/action/site",
-                                headers: {'token': localStorage.getItem('token')},
-                                data: {floor: e.floor},
-                                method: 'POST',
-                                success: function (res) {
-                                    if (res.code === 200){
-                                        layer.msg("鏆傛椂涓嶈兘鍒囨崲锛�", {icon: 1})
-                                    } else if (res.code === 403){
-                                        window.location.href = baseUrl+"/login";
-                                    }  else {
-                                        console.log(res.msg);
-                                    }
-                                }
-                            });
-                            layer.closeAll();
-                        })
-                    }
-                }
-            });
-        }
-
     }
 
     // plc寮傚父淇℃伅琛ㄨ幏鍙�

--
Gitblit v1.9.1