From 2761c08099d5cf4a422affa5de3328cd04c2f32b Mon Sep 17 00:00:00 2001
From: lsh <lsh123456>
Date: 星期日, 16 十月 2022 10:29:05 +0800
Subject: [PATCH] #
---
src/main/webapp/views/index.html | 44 ++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 42 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index d0eaa3e..7782378 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -23,7 +23,8 @@
<div class="sidebar">
<div class="nav">
<ul class="cl-effect-4">
- <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>
@@ -50,7 +51,46 @@
localStorage.removeItem("token");
window.location.href = baseUrl + "/login";
}
-
+ $.ajax({
+ url: "/ynwcs" + "/console/crn/detail",
+ headers: {
+ 'token': localStorage.getItem('token')
+ },
+ data: {
+ crnNo: 1
+ },
+ method: 'post',
+ success: function (res) {
+ for (var val in res.data) {
+ var find = $("#crnWindow").find(":input[name='" + val + "']");
+ if (find[0].type === 'text') {
+ find.val(res.data[val]);
+ } else if (find[0].type === 'checkbox') {
+ find.attr("checked", res.data[val] === 'Y');
+ }
+ }
+ }
+ })
+ $.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;
</script>
--
Gitblit v1.9.1