| | |
| | | const timer = setInterval(() => { |
| | | getAgvCharts().then(res => { |
| | | setApiData(res.reverse().map(item => { |
| | | return ["AGV" + item.agvNo, "0000" + Number(item.qrcode), item.angle.toFixed(1) + "°", item.height] |
| | | return [item.agvNo, item.qrcode, item.angle.toFixed(1) + "°", item.height] |
| | | })) |
| | | }) |
| | | }, 1000); |
| | |
| | | return ( |
| | | <ScrollBoard |
| | | config={{ |
| | | header: ['编号', '地面码', '角度', '高度'], |
| | | header: ['No', '地面码', '角度', '高度'], |
| | | data: apiData, |
| | | headerBGC: '#00fff138', |
| | | oddRowBGC: '#00000017', |
| | | evenRowBGC: '#ededed13', |
| | | headerHeight: 28, |
| | | rowNum: 10, |
| | | columnWidth: [80, 100, 90, 80], |
| | | columnWidth: [60, 140, 80, 80], |
| | | }} |
| | | style={{ width: '100%', height: '400px', fontSize: '12px', marginBottom: '8px' }} |
| | | /> |