From b9ad88db53208c9e8ac4a0cc57bcf48fc28715da Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期日, 21 五月 2023 18:29:39 +0800
Subject: [PATCH] 初始化数据
---
src/main/webapp/views/index.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 51 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index f503cdc..5f5506c 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -5,6 +5,15 @@
<title>鑷姩浠撳簱WCS绯荤粺</title>
<link rel="stylesheet" href="../static/css/index.css">
<script src="../static/js/jquery/jquery-3.3.1.min.js"></script>
+ <style>
+ html{
+ transform: scale(1) translate(0,0);
+ /*transform: scale(0.5) translate(-50%,-50%);*/
+ height: 150%;
+ width: 150%;
+ }
+
+ </style>
</head>
<body>
<!-- 瀵艰埅鏍� -->
@@ -14,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>
@@ -41,7 +51,46 @@
localStorage.removeItem("token");
window.location.href = baseUrl + "/login";
}
-
+ $.ajax({
+ url: "/fnwcs" + "/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: "/fnwcs" + "/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