| | |
| | | <!-- |
| | | * @Date: 2024-04-18 21:52:18 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-20 20:26:30 |
| | | * @LastEditTime: 2024-04-20 20:31:45 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/Time.vue |
| | | --> |
| | | <template> |
| | |
| | | }, |
| | | xAxis: { |
| | | type: 'category', |
| | | axisLabel: { |
| | | interval: 'auto' |
| | | } |
| | | }, |
| | | yAxis: { |
| | | type: 'value' |
| | |
| | | res.data.items.records.forEach(v => { |
| | | let current = [v.id] |
| | | Object.keys(v.nameData).forEach(key => { |
| | | current.push(row.data[key] || 0) |
| | | current.push(row.data[key] === '0' ? Math.random() : 0) |
| | | }) |
| | | option2.dataset.source.push(current) |
| | | }); |