| | |
| | | > |
| | | <div style={{ display: 'flex', flexWrap: 'wrap', justifyContent: 'space-around' }}> |
| | | {deviceInfos.map(item => { |
| | | if(item == null) { |
| | | return; |
| | | } |
| | | let tmpTitle = item.shuttleNo + "号四向车" |
| | | let tmpData = [ |
| | | { |
| | |
| | | { |
| | | key: '8', |
| | | label: '充电状态', |
| | | children: 'N', |
| | | children: item.hasCharge ? 'Y' : 'N', |
| | | }, |
| | | { |
| | | key: '9', |
| | |
| | | label: '运行方向', |
| | | children: item.runDirection, |
| | | }, |
| | | { |
| | | key: '12', |
| | | label: '是否有托盘', |
| | | children: item.hasPallet ? 'Y' : 'N', |
| | | }, |
| | | ]; |
| | | return <div key={item.id} style={{ width: '45%' }}> |
| | | <Descriptions size="small" title={tmpTitle} bordered items={tmpData} /> |