revenueRanking.vue 746 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!-- 路段/停车场营收排行 -->
  2. <template>
  3. <view class="ranking">
  4. <TableRanking :loading="loading" :title="title" :tableTh="tableTh" :tableData="tableData"/>
  5. </view>
  6. </template>
  7. <script>
  8. import TableRanking from '@/components/tableRanking.vue'
  9. export default {
  10. components: {
  11. TableRanking
  12. },
  13. props: {
  14. loading: {
  15. type: Boolean,
  16. default: false
  17. },
  18. title: {
  19. type: String,
  20. default: ''
  21. },
  22. tableTh: {
  23. type: Array,
  24. default: () => []
  25. },
  26. tableData: {
  27. type: Object,
  28. default: () => {
  29. return {
  30. current: 1,
  31. total: 0,
  32. list: []
  33. }
  34. }
  35. }
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .ranking-title {
  41. text-align: center;
  42. margin-bottom: 10px;
  43. }
  44. </style>