| | |
| | | <template> |
| | | <div> |
| | | <PanelHeader title="客户金额贡献排名" /> |
| | | <PanelHeader title="客户贡献排名" /> |
| | | <div class="panel-item-customers"> |
| | | <div class="switch-container"> |
| | | <DateTypeSwitch v-model="dateType" @change="handleDateTypeChange" /> |
| | |
| | | formatter: function (params) { |
| | | let result = params[0].axisValueLabel + '<br/>' |
| | | params.forEach((item) => { |
| | | result += `<div style="color: #B8C8E0">${item.marker} ${item.seriesName}: ${item.value}</div>` |
| | | result += `<div>${item.marker} ${item.seriesName}: ${item.value}元</div>` |
| | | }) |
| | | return result |
| | | }, |
| | | })) |
| | | |
| | | const grid = computed(() => ({ top: 0, left: '20%', right: '10%', bottom: 0 })) |
| | | const grid = computed(() => ({ |
| | | top: 8, |
| | | left: 12, |
| | | right: 14, |
| | | bottom: 8, |
| | | containLabel: true, |
| | | })) |
| | | |
| | | const xAxis = computed(() => [ |
| | | { |
| | |
| | | inverse: false, |
| | | data: xdataName.value, |
| | | axisLabel: { |
| | | formatter: (params) => `{a|${params}}`, |
| | | rich: { |
| | | a: { |
| | | width: 160, |
| | | fontSize: 14, |
| | | color: '#fff', |
| | | padding: [5, 4, 5, 0], |
| | | align: 'right', |
| | | }, |
| | | }, |
| | | color: '#fff', |
| | | fontSize: 13, |
| | | width: 200, |
| | | overflow: 'break', |
| | | align: 'right', |
| | | margin: 10, |
| | | lineHeight: 18, |
| | | }, |
| | | axisLine: { show: false }, |
| | | axisTick: { show: false }, |