From 0956cd2d3f2840f2f26855f05a83165d63dd7ba1 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期一, 28 十一月 2022 15:34:55 +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