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 | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 53 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 82beb77..7782378 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="render" 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>
@@ -24,9 +34,9 @@
<!--</div>-->
<!-- 涓讳綋鍐呭 -->
-<iframe id="content" src="render.html"></iframe>
+<iframe id="content" src="console.html"></iframe>
<footer class="footer">
- Copyright 漏 2015 All Rights Reserved. <a href="http://www.zoneyung.com" target="_blank">娴欐睙涓壃绔嬪簱鎶�鏈湁闄愬叕鍙�</a> 淇濈暀鎵�鏈夋潈鍒�
+ Copyright 漏 2022 All Rights Reserved. <a href="http://www.zoneyung.com" target="_blank">绔嬪簱wcs鎿嶄綔骞冲彴</a>
</footer>
</body>
<script>
@@ -41,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