From 90963568d7f507417818f74d2131575f09eb1383 Mon Sep 17 00:00:00 2001
From: vincent <1341870251@qq.com>
Date: 星期三, 03 六月 2020 15:09:12 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/console.html |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 6e7edc7..45548ef 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -619,7 +619,6 @@
 
 </body>
 <script>
-    var systemRunning = true;
     var crn1Position = 0;
     var crn2Position = 0;
     // 鍒濆鍖�
@@ -639,7 +638,7 @@
 
     // 绯荤粺杩愯寮�鍏�
     function systemSwitch() {
-        if (systemRunning){
+        if (top.systemRunning){
             layer.prompt({title: '璇疯緭鍏ュ彛浠わ紝骞跺仠姝� WCS 绯荤粺', formType: 1,   shadeClose: true}, function(pass, idx){
                 layer.close(idx);
                 doSwitch(0, pass); // 鍋滄wcs绯荤粺
@@ -670,11 +669,11 @@
                     if (res.data.status) {
                         $('#system-icon').attr("class", "system-icon-open");
                         $('#system-run-desc').html("绯荤粺杩愯涓�...");
-                        systemRunning = true;
+                        top.systemRunning = true;
                     } else {
                         $('#system-icon').attr("class", "system-icon-close");
                         $('#system-run-desc').html("绯荤粺宸插仠姝�!");
-                        systemRunning = false;
+                        top.systemRunning = false;
                     }
                 } else if (res.code === 403){
                     top.location.href = baseUrl+"/login";
@@ -697,11 +696,11 @@
                     if (res.data.status) {
                         $('#system-icon').attr("class", "system-icon-open");
                         $('#system-run-desc').html("绯荤粺杩愯涓�...");
-                        systemRunning = true;
+                        top.systemRunning = true;
                     } else {
                         $('#system-icon').attr("class", "system-icon-close");
                         $('#system-run-desc').html("绯荤粺宸插仠姝�!");
-                        systemRunning = false;
+                        top.systemRunning = false;
                     }
                 } else if (res.code === 403){
                     top.location.href = baseUrl+"/login";

--
Gitblit v1.9.1