From 525da76ca931c91e5f02e5a13388750309c99b33 Mon Sep 17 00:00:00 2001 From: whycq <whycq> Date: 星期三, 25 五月 2022 09:03:56 +0800 Subject: [PATCH] # ycq --- src/main/webapp/views/pipeline.html | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/views/pipeline.html b/src/main/webapp/views/pipeline.html index 487bad6..0e2085f 100644 --- a/src/main/webapp/views/pipeline.html +++ b/src/main/webapp/views/pipeline.html @@ -124,6 +124,7 @@ <script> // 鍒濆鍖� // 绌虹櫧琛屾暟 + var stop = false var plcErrorTableBlankRows = 0; var siteTableBlankRows = 0; // 瀹為檯琛屾暟 @@ -139,12 +140,18 @@ // 瀹炴椂璁块棶 setInterval(function () { getPlcError(); - getSite(); + starGetSite(); }, 1000); setInterval(function () { getSiteOutput(); },500); - + function starGetSite() { + if (stop) { + return + } else { + getSite(); + } + } // plc寮傚父淇℃伅琛ㄨ幏鍙� function getPlcError() { var tableEl = $('#plc-error-table'); @@ -289,6 +296,7 @@ // 璇︽儏鎿嶄綔 ------------------------------------------------------------------------- var layerDetl; $(document).on('dblclick ','#site-table tr', function () { + stop = false var siteId = $(this).children("td").eq(0).html(); if (siteId !== null && siteId !== "") { layerDetl = layer.open({ @@ -317,6 +325,7 @@ } }) } + stop = true }); $(document).on('click ','#save', function () { -- Gitblit v1.9.1