From 790cfb225efc0a377c6f602081681b93509cd96b Mon Sep 17 00:00:00 2001
From: lsh <lsh123456>
Date: 星期六, 15 十月 2022 14:44:28 +0800
Subject: [PATCH] #
---
 src/main/webapp/views/index.html |   29 ++++++++++++++++++++++++-----
 1 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 69e2a39..7782378 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -23,8 +23,8 @@
 <div class="sidebar">
     <div class="nav">
         <ul class="cl-effect-4">
-            <li><button id="fire" style="background-color: #00FF00;border-radius: 30px">娑堥槻</button></li>
-            <li><a id="console" onclick="nav(this.id)" class="nav-select" href="#">涓绘帶鍥�</a></li>
+            <li><button id="fire" style="border-radius: 30px">娑堥槻</button><br>
+                <a id="console" onclick="nav(this.id)" class="nav-select" href="#">涓绘帶鍥�</a></li>
             <li><a id="pipeline" onclick="nav(this.id)" class="nav-unselect" href="#">杈撻�佽澶�</a></li>
             <li><a id="crn" onclick="nav(this.id)" class="nav-unselect" href="#">鍫嗗灈鏈�</a></li>
         </ul>
@@ -52,12 +52,12 @@
         window.location.href = baseUrl + "/login";
     }
     $.ajax({
-        url: baseUrl + "/console/crn/detail",
+        url: "/ynwcs" + "/console/crn/detail",
         headers: {
             'token': localStorage.getItem('token')
         },
         data: {
-            crnNo: id
+            crnNo: 1
         },
         method: 'post',
         success: function (res) {
@@ -70,7 +70,26 @@
                 }
             }
         }
-
+    })
+    $.ajax({
+        url: "/ynwcs" + "/console/loc/detail2",
+        headers: {
+            'token': localStorage.getItem('token')
+        },
+        data: {
+            locNo: "0101804"
+        },
+        method: 'post',
+        success: function (res) {
+            console.log(res);
+            if (res.code === 200) {
+                if (res.data.channel<=10240){
+                    $("#fire").attr("style", "background-color: #00FF00;border-radius: 30px");
+                }else {
+                    $("#fire").attr("style", "background-color: #FD482C;border-radius: 30px");
+                }
+            }
+        }
     })
     // 绯荤粺杩愯鐘舵��
     var systemRunning = true;
--
Gitblit v1.9.1