| | |
| | | |
| | | <div class="cardtotal"> |
| | | <p>机巢工单数量排名</p> |
| | | <img @click="refresh" src="/src/assets/images/workbench/st1.png" alt="" /> |
| | | <img @click="refresh" src="/src/assets/images/workbench/st1.svg" alt="" /> |
| | | </div> |
| | | <div class="time-card"> |
| | | <div |
| | |
| | | }, |
| | | grid: { |
| | | left: '3%', |
| | | right: '4%', |
| | | right: '3%', |
| | | bottom: '3%', |
| | | top: '-3%', // 添加顶部间距 |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: 'value', |
| | | splitLine: { lineStyle: { color: '#E5E5E5' } }, |
| | | axisLabel: { color: '#7C8091',fontSize:'1.2rem' }, |
| | | splitLine: { lineStyle: { color: '#E5E5E5' },show:false }, |
| | | axisLabel: { color: '#7C8091',fontSize:'1.2rem',show:false }, |
| | | boundaryGap: [0, 0.01], |
| | | }, |
| | | yAxis: { |
| | | type: 'category', |
| | | data: optionData.yAxisData, |
| | | axisLabel: { color: '#7C8091' ,fontSize:'1.2rem'}, |
| | | axisLine: { lineStyle: { color: '#D1D1D1' } }, |
| | | axisLabel: { color: '#7C8091' ,fontSize:'1.2rem',}, |
| | | axisLine: { lineStyle: { color: '#D1D1D1' } ,show:false}, |
| | | axisTick: { show: false }, |
| | | // 确保排序后的数据从上到下显示(最大值在顶部) |
| | | inverse: true, |
| | |
| | | type: 'bar', |
| | | data: optionData.seriesData, |
| | | itemStyle: { |
| | | barBorderRadius: [0, 20, 20, 0], |
| | | color: params => { |
| | | // 前6项使用固定颜色循环,之后使用渐变 |
| | | return params.dataIndex < colors.length |
| | |
| | | show: true, |
| | | position: 'right', |
| | | formatter: '{c}', |
| | | itemStyle:{ |
| | | fontSize: '1.4rem', |
| | | color: '#414243', |
| | | |
| | | } |
| | | }, |
| | | }, |
| | | ], |
| | |
| | | .cardtotal { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-left: 9px; |
| | | |
| | | img { |
| | | width: 17px; |
| | | height: 17px; |