stat_loan_chart.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="page-box-bg-fff m-t20 r-30 p-30">
  3. <StatisticsTitle :genre="genre" :leftText="leftText" :is_right="false"></StatisticsTitle>
  4. <view class="column-c m-30 r-30 p-l16">
  5. <PeakChart ref="peakChart"></PeakChart>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import PeakChart from "@/common/chart/peak_chart.vue";
  11. import StatisticsTitle from "./statistics_title.vue";
  12. export default {
  13. name: 'peak_chart',
  14. components: {
  15. PeakChart,
  16. StatisticsTitle
  17. },
  18. props: {
  19. genre: {
  20. type: Number,
  21. default: 0
  22. },
  23. leftText: {
  24. type: String,
  25. default: ''
  26. },
  27. },
  28. data() {
  29. return {
  30. };
  31. },
  32. methods: {
  33. setPeakChartData(data){
  34. this.$refs.peakChart.setServerData(data)
  35. }
  36. },
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. // .content_chart {
  41. // text-align: center;
  42. // .chart_item {
  43. // width: 330rpx;
  44. // .num {
  45. // width: 140rpx;
  46. // height: 50rpx;
  47. // line-height: 50rpx;
  48. // background: #F7F9FE;
  49. // border-radius: 10rpx;
  50. // }
  51. // }
  52. // }
  53. </style>