Newer
Older
CloudBrainNew / src / views / socialLive / components / education / education.vue
StephanieGitHub on 4 Feb 2021 1 KB first commit
<!--
 * @Description:智慧教育
 * @Author: 王晓颖
 * @Date: 2020-11-18 10:10:06
 -->
<template>
  <chart-layout title="智慧教育" @click="getData">
    <div class="block-container">
      <div class="block" style="width:40%">
        <school-count ref="schoolCount"/>
      </div>
      <div class="block" style="width:60%;display:flex;flex-direction:column;flex-wrap: wrap;justify-content: space-between;">
        <div style="width:100%;">
          <people-count ref="peopleCount"/>
        </div>
        <div style="width:100%;flex:1">
          <school-detail ref="schoolDetail"/>
        </div>
      </div>
    </div>
    <corner1 slot="corner"/>
  </chart-layout>
</template>

<script>
import SchoolCount from './components/schoolCount'
import PeopleCount from './components/peopleCount'
import SchoolDetail from './components/schoolDetail'
export default {
  name: 'education',
  components: {SchoolDetail, PeopleCount, SchoolCount},
  methods: {
    getData () {
      this.$refs.schoolCount.getData()
      this.$refs.peopleCount.getData()
      this.$refs.schoolDetail.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>