<script>
import CoreData from "@/components/common/coreData.vue";
import RestaurantTrendChart from "@/components/dashboard/portrait/restaurant/restaurantTrendChart.vue";
export default {
  data() {
    return {
      coreData: [
        {
          type: 0,
          title: '餐厅消费金额(元)',
          num: 2000,
          historyDesc: '同比',
          historyNum: '0.4'
        },
        {
          type: 0,
          title: '餐厅消费订单(单)',
          num: 1800,
          historyDesc: '同比',
          historyNum: '0.4'
        },
        {
          type: 0,
          title: '餐厅平均单价(元/单)',
          num: 30,
          unit: '%',
          historyDesc: '同比',
          historyNum: '0.4'
        },
        {
          type: 1,
          title: '第三方结算方式 费用(元)',
          content: ''
        },
        {
          type: 1,
          isHighLight: false,
          title: '值得关注',
          content: ''
        },
      ]
    }
  },
  props: {
    chartHeight: Number
  },
  components: {
    CoreData,
    RestaurantTrendChart,
  }
}
</script>

<template>
  <div class="restaurantPortrait">
    <div class="portrait-coreData">
      <CoreData :data-list="coreData"></CoreData>
    </div>
    <div style="padding: 15px">
      <RestaurantTrendChart :height="chartHeight"></RestaurantTrendChart>
    </div>
  </div>
</template>

<style lang="less" scoped>
.restaurantPortrait {

}
</style>