lifeRestaurant.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <script>
  2. import LifeQuery from "@/components/life/common/lifeQuery.vue";
  3. import IotCard from "@/components/common/IotCard.vue";
  4. import CoreData from "@/components/life/common/coreData.vue";
  5. import LifeRestEatChart from "@/components/life/restaurant/components/lifeRestEatChart.vue";
  6. import LifeRestConsumeChart from "@/components/life/restaurant/components/lifeRestConsumeChart.vue";
  7. import LifeRestTopMenu from "@/components/life/restaurant/components/lifeRestTopMenu.vue";
  8. export default {
  9. data() {
  10. return {
  11. coreData: [
  12. {
  13. title: '当天就餐人数预测',
  14. num: 400,
  15. unit: '人',
  16. isHighLight: true,
  17. trend: 0,
  18. historyDesc: '同比',
  19. historyNum: '0.4%'
  20. },
  21. {
  22. title: '累计就餐人数',
  23. num: 400,
  24. unit: '人',
  25. trend: 0,
  26. historyDesc: '同比',
  27. historyNum: '0.4%'
  28. },
  29. {
  30. title: '消费总数',
  31. num: 400,
  32. unit: '人',
  33. trend: 0,
  34. historyDesc: '同比',
  35. historyNum: '0.4%'
  36. },
  37. {
  38. title: '订单均价',
  39. num: 400,
  40. unit: '人',
  41. trend: 0,
  42. historyDesc: '同比',
  43. historyNum: '0.4%'
  44. },
  45. {
  46. type: 1,
  47. isHighLight: true,
  48. title: '值得关注',
  49. content: 'testhnjlkjn'
  50. },
  51. ]
  52. }
  53. },
  54. components: {
  55. LifeQuery,
  56. IotCard,
  57. CoreData,
  58. LifeRestEatChart,
  59. LifeRestConsumeChart,
  60. },
  61. created() {
  62. },
  63. mounted() {
  64. },
  65. methods: {
  66. }
  67. }
  68. </script>
  69. <template>
  70. <div class="lifeRestaurant">
  71. <a-row>
  72. <a-col>
  73. <div class="lifeRestaurant-query">
  74. <LifeQuery></LifeQuery>
  75. </div>
  76. </a-col>
  77. </a-row>
  78. <a-row>
  79. <a-col>
  80. <div class="lifeRestaurant-core">
  81. <IotCard title="核心指标">
  82. <CoreData :data-list="coreData"></CoreData>
  83. </IotCard>
  84. </div>
  85. </a-col>
  86. </a-row>
  87. <a-row :gutter="16">
  88. <a-col :span="18">
  89. <div class="lifeRestaurant-left">
  90. <div class="lifeRestaurant-eat">
  91. <IotCard title="用餐分析">
  92. <LifeRestEatChart :height="300"></LifeRestEatChart>
  93. </IotCard>
  94. </div>
  95. <div class="lifeRestaurant-consume">
  96. <IotCard title="消费分析">
  97. <LifeRestConsumeChart :height="300"></LifeRestConsumeChart>
  98. </IotCard>
  99. </div>
  100. <div class="lifeRestaurant-profit"></div>
  101. <div class="lifeRestaurant-pay"></div>
  102. </div>
  103. </a-col>
  104. <a-col :span="6">
  105. <div class="lifeRestaurant-right">
  106. <div class="lifeRestaurant-top">
  107. <IotCard title="受欢迎菜品">
  108. 123
  109. </IotCard>
  110. </div>
  111. <div class="lifeRestaurant-cookbook">
  112. <IotCard title="每日菜谱">
  113. 123
  114. </IotCard>
  115. </div>
  116. </div>
  117. </a-col>
  118. </a-row>
  119. </div>
  120. </template>
  121. <style lang="less" scoped>
  122. .lifeRestaurant {
  123. width: 100%;
  124. height: 1500px;
  125. display: inline-block;
  126. vertical-align: top;
  127. .lifeRestaurant-query {
  128. width: 100%;
  129. height: 60px;
  130. margin-bottom: 8px;
  131. }
  132. .lifeRestaurant-core {
  133. width: 100%;
  134. margin-bottom: 8px;
  135. }
  136. .lifeRestaurant-left {
  137. margin-right: 1%;
  138. > div {
  139. margin-bottom: 8px;
  140. }
  141. #iot-life-restaurant-eat {
  142. height: 250px;
  143. }
  144. }
  145. .lifeRestaurant-right {
  146. > div {
  147. margin-bottom: 12px;
  148. }
  149. }
  150. }
  151. </style>