lifeRestaurant.vue 4.3 KB

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