|  |  |  | 
|---|
|  |  |  | <!--<div class="time-tools">--> | 
|---|
|  |  |  | <!--    <span id="bar-year"></span>-<span id="bar-month"></span>-<span id="bar-day"></span> <span id="bar-hour"></span>:<span id="bar-minute"></span>:<span id="bar-second"></span>  <span id="bar-week"></span>--> | 
|---|
|  |  |  | <!--</div>--> | 
|---|
|  |  |  | <div class="canves1"> | 
|---|
|  |  |  | <div style="width: 25%;height: 100%;font-size: 30px;display: flex;flex-direction: column;justify-content: space-around;display: none"> | 
|---|
|  |  |  | <div class="canves1 aData"> | 
|---|
|  |  |  | <div style="width: 25%;height: 100%;font-size: 30px;display: flex;flex-direction: column;justify-content: space-around;"> | 
|---|
|  |  |  | <div style="width: 100%;height: 100px;line-height: 100px;text-align: center">累计行走:10869米</div> | 
|---|
|  |  |  | <div style="width: 100%;height: 100px;line-height: 100px;text-align: center">累计行走:10869米</div> | 
|---|
|  |  |  | <div style="width: 100%;height: 100px;line-height: 100px;text-align: center">累计行走:10869米</div> | 
|---|
|  |  |  | <div style="width: 100%;height: 100px;line-height: 100px;text-align: center">累计行走:10869米</div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div id="ledData" style="width: 50%;height: 100%;font-size: 30px;display: flex;flex-direction: column;justify-content: space-around;background-color: #93D1FF;text-align: center;display: none"> | 
|---|
|  |  |  | <div id="ledData" style="width: 50%;height: 100%;font-size: 30px;display: flex;flex-direction: column;justify-content: space-around;background-color: #93D1FF;text-align: center;"> | 
|---|
|  |  |  | AUTOMATIC WAREHOUSE WCS MONITORING DIAGRAM | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div id="ledData1" style="width: 100%;height: 100%;font-size: 30px;display: flex;flex-direction: column;background-color: #93D1FF;"> | 
|---|
|  |  |  | <div style="width: 25%;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;"> | 
|---|
|  |  |  | <div style="width: 80%;height: 40%"> | 
|---|
|  |  |  | <div id="line-charts"></div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div style="width: 80%;height: 40%"> | 
|---|
|  |  |  | <div id="pie-charts"></div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="canves1 bData"> | 
|---|
|  |  |  | <!--展示出库信息--> | 
|---|
|  |  |  | <div id="ledData4" style="width: 100%;height: 100%;font-size: 30px;display: flex;flex-direction: column;background-color: #93D1FF;display: none"> | 
|---|
|  |  |  | <div class="info-head"> | 
|---|
|  |  |  | <!--头部--> | 
|---|
|  |  |  | <div style="flex: 2">托盘码:80001289</div> | 
|---|
|  |  |  | 
|---|
|  |  |  | <div style="flex: 2">西瓜</div> | 
|---|
|  |  |  | <div style="flex: 2">500g</div> | 
|---|
|  |  |  | <div style="flex: 1">30</div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div style="width: 25%;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;display: none"> | 
|---|
|  |  |  | <div style="width: 80%;height: 40%"> | 
|---|
|  |  |  | <div id="line-charts"></div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div style="width: 80%;height: 40%"> | 
|---|
|  |  |  | <div id="pie-charts"></div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | </html> | 
|---|
|  |  |  | <script> | 
|---|
|  |  |  | var inputValue = '' | 
|---|
|  |  |  | // lcd切换按钮 | 
|---|
|  |  |  | $(function() { | 
|---|
|  |  |  | $(".label").click(function() { | 
|---|
|  |  |  | $(this).addClass("abc").siblings().removeClass("abc"); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // 全选按钮 | 
|---|
|  |  |  | $("#selectAll").click(function(){ | 
|---|
|  |  |  | $('input:checkbox[name=monitor]').each(function () { | 
|---|
|  |  |  | $(this).prop("checked",true); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // 取消全选按钮 | 
|---|
|  |  |  | $("#unSelectAll").click(function(){ | 
|---|
|  |  |  | $('input:checkbox[name=monitor]').each(function () { | 
|---|
|  |  |  | $(this).prop("checked",false); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // 发送节目按钮 | 
|---|
|  |  |  | $('#sendMessage').click(function () { | 
|---|
|  |  |  | var sendMessage = $('#sendContent').val() | 
|---|
|  |  |  | inputValue = '' | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | // 移除节目按钮 | 
|---|
|  |  |  | $('#removeMessage').click(function () { | 
|---|
|  |  |  | var sendMessage = 'K' | 
|---|
|  |  |  | $('input:checkbox[name=monitor]').each(function () { | 
|---|
|  |  |  | 
|---|
|  |  |  | $('.lcd').click(function () { | 
|---|
|  |  |  | var id = this.id.split("-")[1]; | 
|---|
|  |  |  | switch (id) { | 
|---|
|  |  |  | case 1: | 
|---|
|  |  |  | case '1': | 
|---|
|  |  |  | crnId = 1; | 
|---|
|  |  |  | lcdId = 100; | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case 2: | 
|---|
|  |  |  | case '2': | 
|---|
|  |  |  | crnId = 2; | 
|---|
|  |  |  | lcdId = 110; | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | 
|---|
|  |  |  | getProgram(lcdId) | 
|---|
|  |  |  | }, 1000); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 出库信息 | 
|---|
|  |  |  | function getInfo(ledId) { | 
|---|
|  |  |  | console.log(ledId) | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl+"/monitor/led", | 
|---|
|  |  |  | data: {ledId:ledId}, | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | success: function (res) { | 
|---|
|  |  |  | if (lcdControll == 3) { | 
|---|
|  |  |  | $('#ledData') | 
|---|
|  |  |  | if (lcdControll < 3) { | 
|---|
|  |  |  | $('.aData').attr('display','none') | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 异常信息 | 
|---|
|  |  |  | function getError(ledId) { | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl+"/monitor/led/error", | 
|---|
|  |  |  | data: {ledId:ledId}, | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | success: function (res) { | 
|---|
|  |  |  | if (lcdControll == 2) { | 
|---|
|  |  |  | $('#ledData').text(res.data) | 
|---|
|  |  |  | if (lcdControll < 4) { | 
|---|
|  |  |  | if (res.data == null) { | 
|---|
|  |  |  | lcdControll = 0 | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | lcdControll = 3 | 
|---|
|  |  |  | $('.bData').attr('display','none') | 
|---|
|  |  |  | $('.aData').attr('display','flex') | 
|---|
|  |  |  | $('#ledData').text(res.data) | 
|---|
|  |  |  | console.log('**') | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 节目信息 | 
|---|
|  |  |  | function getProgram(ledId) { | 
|---|
|  |  |  | console.log(ledId) | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl+"/monitor/led/program", | 
|---|
|  |  |  | data: {ledId:ledId}, | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | success: function (res) { | 
|---|
|  |  |  | console.log(res) | 
|---|
|  |  |  | if (res.data != '') { | 
|---|
|  |  |  | lcdControll = 4 | 
|---|
|  |  |  | $('.bData').attr('display','none') | 
|---|
|  |  |  | $('.aData').attr('display','flex') | 
|---|
|  |  |  | $('#ledData').text(res.data) | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | lcdControll = 0 | 
|---|
|  |  |  | console.log("2222") | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /***********************************************************************************/ | 
|---|
|  |  |  | /************************************ 堆垛机速度 *************************************/ | 
|---|