| | |
| | | <div style="padding: 10px;height: 100%"> |
| | | <!-- 日志监控板 --> |
| | | <div class="log-board"> |
| | | <div class="command-log" id="commandLogId"> |
| | | <div class="command-log" id="commandLogId" style="width: 5%;"> |
| | | <!-- <div data-shuttleNo="1" class="shuttle-command-item">--> |
| | | <!-- <label>1#</label>--> |
| | | <!-- <button class="demoBtn pos-btn">数据维护</button>--> |
| | |
| | | <!-- </div>--> |
| | | </div> |
| | | <!-- 堆垛机状态位信息 --> |
| | | <div class="shuttle-state"> |
| | | <div class="shuttle-state" style="width: 95%;"> |
| | | <table id="shuttle-state-table"> |
| | | <thead> |
| | | <tr> |
| | |
| | | <th>电量</th> |
| | | <th>电池温度</th> |
| | | <th>错误编号</th> |
| | | <th>plc输出状态IO-顶升位</th> |
| | | <th>plc输出状态IO-换向位</th> |
| | | <th>plc输出状态IO-抱闸位</th> |
| | | <th>plc输出状态IO-充电位</th> |
| | | <th>错误信息码</th> |
| | | <th>plc输入状态</th> |
| | |
| | | //渲染四向穿梭车数据维护和设备信息html |
| | | let shuttleCommandLogBox = '<div class="shuttle-command-item" data-shuttleNo="' + table[i - 1].shuttleNo + '">\n' + |
| | | '<label>' + table[i - 1].shuttleNo + '#</label>\n' + |
| | | '<button class="demoBtn pos-btn">数据维护</button>\n' + |
| | | '<button class="demoBtn mode-btn" id="mode-' + table[i - 1].shuttleNo + '">设备信息</button>\n' + |
| | | // '<button class="demoBtn pos-btn">数据维护</button>\n' + |
| | | // '<button class="demoBtn mode-btn" id="mode-' + table[i - 1].shuttleNo + '">设备信息</button>\n' + |
| | | '</div>' |
| | | $("#commandLogId").append(shuttleCommandLogBox); |
| | | } |
| | |
| | | setVal(tr.children("td").eq(4), table[i-1].batteryPower); |
| | | setVal(tr.children("td").eq(5), table[i-1].batteryTemp); |
| | | setVal(tr.children("td").eq(6), table[i-1].errorCode); |
| | | setVal(tr.children("td").eq(7), table[i-1].plcOutputCharge$);//plcOutputStatusIO |
| | | setVal(tr.children("td").eq(8), table[i-1].statusErrorCode); |
| | | setVal(tr.children("td").eq(9), table[i-1].plcInputStatus); |
| | | setVal(tr.children("td").eq(10), table[i-1].currentOrBeforeCode); |
| | | setVal(tr.children("td").eq(11), table[i-1].codeOffsetX); |
| | | setVal(tr.children("td").eq(12), table[i-1].codeOffsetY); |
| | | setVal(tr.children("td").eq(13), table[i-1].currentVoltage); |
| | | setVal(tr.children("td").eq(14), table[i-1].currentAnalogValue); |
| | | setVal(tr.children("td").eq(7), table[i-1].plcOutputLift$);//顶升位 |
| | | setVal(tr.children("td").eq(8), table[i-1].plcOutputTransfer$);//换向位 |
| | | setVal(tr.children("td").eq(9), table[i-1].plcOutputBrake$);//抱闸位 |
| | | setVal(tr.children("td").eq(10), table[i-1].plcOutputCharge$);//充电位 |
| | | setVal(tr.children("td").eq(11), table[i-1].statusErrorCode); |
| | | setVal(tr.children("td").eq(12), table[i-1].plcInputStatus); |
| | | setVal(tr.children("td").eq(13), table[i-1].currentOrBeforeCode); |
| | | setVal(tr.children("td").eq(14), table[i-1].codeOffsetX); |
| | | setVal(tr.children("td").eq(15), table[i-1].codeOffsetY); |
| | | setVal(tr.children("td").eq(16), table[i-1].currentVoltage); |
| | | setVal(tr.children("td").eq(17), table[i-1].currentAnalogValue); |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | |
| | | " <td></td>\n" + |
| | | " <td></td>\n" + |
| | | " <td></td>\n" + |
| | | " <td></td>\n" + |
| | | " </tr>\n"; |
| | | } |
| | | $('#shuttle-state-table tbody').after(html); |