restaurantPortrait.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <script>
  2. import CoreData from "@/components/common/coreData.vue";
  3. import RestaurantTrendChart from "@/components/dashboard/portrait/restaurant/restaurantTrendChart.vue";
  4. export default {
  5. data() {
  6. return {
  7. coreData: [
  8. {
  9. type: 0,
  10. title: '餐厅消费金额(元)',
  11. num: 2000,
  12. historyDesc: '同比',
  13. historyNum: '0.4'
  14. },
  15. {
  16. type: 0,
  17. title: '餐厅消费订单(单)',
  18. num: 1800,
  19. historyDesc: '同比',
  20. historyNum: '0.4'
  21. },
  22. {
  23. type: 0,
  24. title: '餐厅平均单价(元/单)',
  25. num: 30,
  26. unit: '%',
  27. historyDesc: '同比',
  28. historyNum: '0.4'
  29. },
  30. {
  31. type: 1,
  32. title: '第三方结算方式 费用(元)',
  33. content: ''
  34. },
  35. {
  36. type: 1,
  37. isHighLight: false,
  38. title: '值得关注',
  39. content: ''
  40. },
  41. ]
  42. }
  43. },
  44. props: {
  45. chartHeight: Number
  46. },
  47. components: {
  48. CoreData,
  49. RestaurantTrendChart,
  50. }
  51. }
  52. </script>
  53. <template>
  54. <div class="restaurantPortrait">
  55. <div class="portrait-coreData">
  56. <CoreData :data-list="coreData"></CoreData>
  57. </div>
  58. <div style="padding: 15px">
  59. <RestaurantTrendChart :height="chartHeight"></RestaurantTrendChart>
  60. </div>
  61. </div>
  62. </template>
  63. <style lang="less" scoped>
  64. .restaurantPortrait {
  65. }
  66. </style>