| | |
| | | .card { |
| | | list-style-type: none; |
| | | display: grid; |
| | | grid-template-columns: repeat(auto-fit, 375px); |
| | | grid-template-columns: repeat(auto-fit, 415px); |
| | | /* justify-content: center; */ |
| | | grid-gap: 16px; |
| | | min-height: 300px; |
| | | } |
| | | .card li{ |
| | | width: 375px; |
| | | width: 415px; |
| | | height: 165px; |
| | | border-radius: 8px 8px 8px 8px; |
| | | border: 1px solid #EEEEEE; |
| | |
| | | this.total = res.data.body.total |
| | | let list = res.data.body.records.map(m=>{ |
| | | switch (m.deviceStatus){ |
| | | case '0': |
| | | case 0: |
| | | // 正常 |
| | | m.type ='success' |
| | | break; |
| | | case '1': |
| | | case 1: |
| | | // 报废 |
| | | m.type ='warning' |
| | | break; |
| | | case '2': |
| | | case 2: |
| | | // 保修 |
| | | m.type ='danger' |
| | | break; |