| | |
| | | <button class="floorBtn btn-16" onclick="changFloor(this,2)" style="margin-top: 200px">2F</button> |
| | | <button class="floorBtn btn-16" onclick="changFloor(this,3)" style="margin-top: 250px">3F</button> |
| | | <button class="floorBtn btn-16" onclick="changFloor(this,4)" style="margin-top: 300px">4F</button> |
| | | <button class="floorBtn btn-16" onclick="changFloor(this,5)" style="margin-top: 350px">5F</button> |
| | | <button class="floorBtn btn-16" onclick="changFloor(this,6)" style="margin-top: 400px">6F</button> |
| | | <button class="floorBtn btn-16" onclick="changFloor(this,7)" style="margin-top: 450px">7F</button> |
| | | <button class="floorBtn btn-16" onclick="changFloor(this,8)" style="margin-top: 500px">8F</button> |
| | | <button class="floorBtn btn-16" onclick="changFloor(this,9)" style="margin-top: 550px">9F</button> |
| | | <button class="floorBtn btn-16" onclick="changFloor(this,10)" style="margin-top: 600px">10F</button> |
| | | </div> |
| | | <!-- <button class="floorBtn btn-16" onclick="testMove()" style="margin-top: 350px;font-size: 14px;">测试移动车</button>--> |
| | | <button class="floorBtn btn-16" onclick="resetMap()" style="margin-top: 400px;font-size: 14px;">重置地图</button> |
| | | <button class="floorBtn btn-16" onclick="resetMap()" style="margin-top: 650px;font-size: 14px;">重置地图</button> |
| | | <!-- <button class="floorBtn btn-16" onclick="testMove()" style="margin-top: 700px;font-size: 14px;">测试移动车</button>--> |
| | | |
| | | <!-- 货架 + 堆垛机 + 入库站点 --> |
| | | <div class="main-part"> |
| | | <!-- 第一组 --> |
| | | <div class="lane" id="mapDataId" style="margin-bottom: 280px"> |
| | | <div class="main-part" id="mapDataId"> |
| | | <!-- <!– 第一组 –>--> |
| | | <!-- <div class="lane" id="mapDataId" style="margin-bottom: 280px">--> |
| | | |
| | | </div> |
| | | <!-- </div>--> |
| | | </div> |
| | | </main> |
| | | <footer class="footer"> |
| | |
| | | $("#shuttle-status-box").empty() |
| | | res.data.forEach((item,index) => { |
| | | let shuttleStatusClass = "shuttle-idle" |
| | | switch (item.status) { |
| | | switch (item.protocolStatus) { |
| | | case 1://空闲 |
| | | shuttleStatusClass = "shuttle-idle"; |
| | | break |
| | |
| | | } |
| | | let shuttleStatus = '<div class="state">' + |
| | | '<span>四向穿梭车 ' + item.shuttleNo + '</span>' + |
| | | '<span class="state-ss ' + shuttleStatusClass + '">' + item.status$ + '</span></div>'; |
| | | '<span class="state-ss ' + shuttleStatusClass + '">' + item.protocolStatus$ + '</span></div>'; |
| | | $("#shuttle-status-box").append(shuttleStatus) |
| | | |
| | | if(item.locNoLev != currentLev){ |
| | |
| | | //计算四向穿梭车图标位置 |
| | | function getCarPosition(x,y) { |
| | | let top = (x * 35 - 35) + "px" //需要减去小车自己所占高度 |
| | | let left = (y * 70 - 70) + "px" //需要减去小车自己所占宽度 |
| | | let left = (y * 35 - 35) + "px" //需要减去小车自己所占宽度 |
| | | return [top,left]; |
| | | } |
| | | |
| | |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | success: (res) => { |
| | | let data = res.data |
| | | console.log(data) |
| | | mapData = data |
| | | let content = "" |
| | | data.forEach((rowData,index) => { |