Newer
Older
CloudBrainNew / src / views / socialLive / components / canteen / canteen.vue
StephanieGitHub on 4 Feb 2021 1 KB first commit
<!--
 * @Description:智慧食堂,食堂流量、食堂数、餐口数、就餐卡发放、各食堂用餐情况
 * @Author: 王晓颖
 * @Date: 2020-11-17 10:07:59
 -->
<template>
  <chart-layout title="智慧食堂" @click="getData">
    <div class="block-container">
      <div class="block" style="width:50%">
        <canteen-flow-line ref="canteenFlowLine"/>
      </div>
      <div class="block" style="width:50%;display:flex;flex-direction:column;flex-wrap: wrap;justify-content: space-between;">
        <div style="width:100%;">
          <canteen-count ref="canteenCount"/>
        </div>
        <div style="width:100%;flex:1">
          <canteen-detail ref="canteenDetail"/>
        </div>
      </div>
    </div>
    <corner1 slot="corner"/>
  </chart-layout>
</template>

<script>
import CanteenFlowLine from './components/canteenFlowLine'
import CanteenCount from './components/canteenCount'
import CanteenDetail from './components/canteenDetail'
export default {
  name: 'canteen',
  components: {CanteenDetail, CanteenCount, CanteenFlowLine},
  methods: {
    getData () {
      this.$refs.canteenFlowLine.getData()
      this.$refs.canteenCount.getData()
      this.$refs.canteenDetail.getData()
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .block-container{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0.04rem;
    /*padding:0.1rem;*/
    .block{

    }
  }
</style>