From 6abc20e29568c129f4ca71eccec9310534a8c779 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 04 八月 2020 14:42:24 +0800
Subject: [PATCH] #

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

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

--
Gitblit v1.9.1