Newer
Older
CloudBrainNew / src / views / socialLive / components / community / buildings.vue
wangxitong on 29 Apr 2021 1 KB 0429 submit
<!--
 * @Description:楼栋:各类楼栋数量,各社区楼栋数量
 * @Author: 王晓颖
 * @Date: 2020-11-24 10:27:38
 -->
<template>
  <chart-layout title="房屋" @click="getData">
    <div class="block-container">
      <div class="block" style="width:50%">
        <house-bar/>
      </div>
      <div class="block" style="width:50%">
        <house-pie/>
      </div>
      <div class="block" style="width:40%">
        <house-earth/>
      </div>
      <div class="block" style="width:60%">
        <house-detail/>
      </div>
    </div>
    <corner1 slot="corner"/>
  </chart-layout>
</template>

<script>

import TroubleData from './components/troubleData'
import TroubleDetail from './components/troubleDetail'
import HousePie from './components/housePie'
import HouseDetail from './components/houseDetail'
import HouseEarth from './components/houseEarth'
import HouseBar from './components/houseBar'
export default {
  name: 'Buildings',
  components: {HouseBar, HouseEarth, HouseDetail, HousePie, TroubleDetail, TroubleData},
  methods: {
    getData () {
      // this.$refs.HousePie.getData()
      // this.$refs.parkIncomeLine.getData()
    }
  }
}
</script>

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