sourceOfPayment.vue 876 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!-- 支付来源分析 -->
  2. <template>
  3. <view class="revenue">
  4. <view class="revenue-line">
  5. <LineChart :chartData="chartData" :title="title" :opts="opts"/>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import LineChart from '@/components/lineChart.vue'
  11. export default {
  12. components: {
  13. LineChart
  14. },
  15. props: {
  16. title: {
  17. type: String,
  18. default: ''
  19. },
  20. chartData: {
  21. type: Object,
  22. default: () => {
  23. return {}
  24. }
  25. },
  26. opts: {
  27. type: Object,
  28. default: () => {
  29. return {
  30. xAxis: {
  31. rotateLabel: true
  32. },
  33. yAxis: {
  34. showTitle: true,
  35. splitNumber: 5,
  36. data: [{
  37. title: '元',
  38. titleOffsetY: -5
  39. }]
  40. },
  41. legend: {
  42. show: false
  43. },
  44. dataLabel: false,
  45. extra: {
  46. column: {
  47. width: 20
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. }
  55. </script>