| | |
| | | <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> |
| | |
| | | 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) { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | }) |
| | | $.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; |