看版
Showing
1 changed file
with
17 additions
and
20 deletions
| ... | @@ -53,7 +53,7 @@ | ... | @@ -53,7 +53,7 @@ |
| 53 | </div> | 53 | </div> |
| 54 | 54 | ||
| 55 | <div class="chartCard mt30"> | 55 | <div class="chartCard mt30"> |
| 56 | <div class="title">逾期360天以上未开票</div> | 56 | <div class="title">应收账款账期</div> |
| 57 | <div ref="overdueRef" style="width: 100%; height: 24vh;"></div> | 57 | <div ref="overdueRef" style="width: 100%; height: 24vh;"></div> |
| 58 | </div> | 58 | </div> |
| 59 | </div> | 59 | </div> |
| ... | @@ -834,10 +834,7 @@ const setC = (arry, arr1, arr2, arr3) => { | ... | @@ -834,10 +834,7 @@ const setC = (arry, arr1, arr2, arr3) => { |
| 834 | chartC = echarts.init(overdueRef.value) | 834 | chartC = echarts.init(overdueRef.value) |
| 835 | const option = { | 835 | const option = { |
| 836 | tooltip: { | 836 | tooltip: { |
| 837 | // trigger: '', | 837 | trigger: 'axis', |
| 838 | // axisPointer: { | ||
| 839 | // type: 'shadow' | ||
| 840 | // }, | ||
| 841 | confine: true, | 838 | confine: true, |
| 842 | valueFormatter: (value) => value + '万', | 839 | valueFormatter: (value) => value + '万', |
| 843 | backgroundColor: 'rgba(5, 28, 51, 1)', // 背景色 | 840 | backgroundColor: 'rgba(5, 28, 51, 1)', // 背景色 |
| ... | @@ -848,18 +845,18 @@ const setC = (arry, arr1, arr2, arr3) => { | ... | @@ -848,18 +845,18 @@ const setC = (arry, arr1, arr2, arr3) => { |
| 848 | fontSize: 12, // 文字大小 | 845 | fontSize: 12, // 文字大小 |
| 849 | }, | 846 | }, |
| 850 | position: 'top', | 847 | position: 'top', |
| 851 | formatter: function (row) { | 848 | // formatter: function (row) { |
| 852 | return ` | 849 | // return ` |
| 853 | <div style="font-weight:bold">${row.name}</div> | 850 | // <div style="font-weight:bold">${row.name}</div> |
| 854 | <div style="display:flex;align-items:center;margin-top:5px"> | 851 | // <div style="display:flex;align-items:center;margin-top:5px"> |
| 855 | ${row.marker} | 852 | // ${row.marker} |
| 856 | ${row.seriesName == '逾期360天以上' ? '未开票金额' : row.seriesName}: ${row.value}万 | 853 | // ${row.seriesName == '逾期360天以上' ? '未开票金额' : row.seriesName}: ${row.value}万 |
| 857 | </div> | 854 | // </div> |
| 858 | <div> | 855 | // <div> |
| 859 | ${row.data?.info ? row.data?.info?.replaceAll('\n', '<br>') : ''} | 856 | // ${row.data?.info ? row.data?.info?.replaceAll('\n', '<br>') : ''} |
| 860 | </div> | 857 | // </div> |
| 861 | `; | 858 | // `; |
| 862 | } | 859 | // } |
| 863 | }, | 860 | }, |
| 864 | legend: { | 861 | legend: { |
| 865 | top: '10%', | 862 | top: '10%', |
| ... | @@ -915,7 +912,7 @@ const setC = (arry, arr1, arr2, arr3) => { | ... | @@ -915,7 +912,7 @@ const setC = (arry, arr1, arr2, arr3) => { |
| 915 | ], | 912 | ], |
| 916 | series: [ | 913 | series: [ |
| 917 | { | 914 | { |
| 918 | name: '0-180天未开票', | 915 | name: '0-180天', |
| 919 | type: 'bar', | 916 | type: 'bar', |
| 920 | stack: 'Ad', | 917 | stack: 'Ad', |
| 921 | barMaxWidth: 60, // 设置柱子的最大宽度为40px | 918 | barMaxWidth: 60, // 设置柱子的最大宽度为40px |
| ... | @@ -938,7 +935,7 @@ const setC = (arry, arr1, arr2, arr3) => { | ... | @@ -938,7 +935,7 @@ const setC = (arry, arr1, arr2, arr3) => { |
| 938 | barWidth: '30%' | 935 | barWidth: '30%' |
| 939 | }, | 936 | }, |
| 940 | { | 937 | { |
| 941 | name: '180-360天未开票', | 938 | name: '180-360天', |
| 942 | type: 'bar', | 939 | type: 'bar', |
| 943 | barMaxWidth: 60, // 设置柱子的最大宽度为40px | 940 | barMaxWidth: 60, // 设置柱子的最大宽度为40px |
| 944 | stack: 'Ad', | 941 | stack: 'Ad', |
| ... | @@ -960,7 +957,7 @@ const setC = (arry, arr1, arr2, arr3) => { | ... | @@ -960,7 +957,7 @@ const setC = (arry, arr1, arr2, arr3) => { |
| 960 | barWidth: '30%' | 957 | barWidth: '30%' |
| 961 | }, | 958 | }, |
| 962 | { | 959 | { |
| 963 | name: '逾期360天以上', | 960 | name: '360天以上', |
| 964 | type: 'bar', | 961 | type: 'bar', |
| 965 | stack: 'Ad', | 962 | stack: 'Ad', |
| 966 | barMaxWidth: 60, // 设置柱子的最大宽度为40px | 963 | barMaxWidth: 60, // 设置柱子的最大宽度为40px | ... | ... |
-
Please register or sign in to post a comment