Newer
Older
CloudBrainNew / src / views / industrialEconomy / components / expense / expense.vue
[wangxitong] on 4 Jun 2021 1 KB 0604 submit
<!--
 * @Description: 规划用地
 * @Author: 王晓颖
 * @Date: 2020-12-01 15:29:42
 -->
<template>
  <chart-layout title="消费统计" @click="getData">
    <div class="block-container">
      <div class="block" style="width:50%;height: 33%">
        <expense-count/>
      </div>
      <div class="block" style="width:50%;height: 33%">
        <expense-line/>
      </div>
      <div class="block" style="width:50%;height: 33%">
        <town-pie/>
      </div>
      <div class="block" style="width:50%;height: 33%">
        <town-bar/>
      </div>
      <div class="block" style="width:50%;height: 33%">
        <country-pie/>
      </div>
      <div class="block" style="width:50%;height: 33%">
        <country-bar/>
      </div>
    </div>
    <corner1 slot="corner"/>
  </chart-layout>
</template>

<script>
import ExpenseCount from './components/expenseCount'
import ExpenseLine from './components/expenseLine'
import CountryPie from './components/countryPie'
import CountryBar from './components/countryBar'
import TownPie from './components/townPie'
import TownBar from './components/townBar'

export default {
  name: 'Expense',
  components: {CountryPie, CountryBar, ExpenseCount, ExpenseLine, TownPie, TownBar},
  methods: {
    getData () {
      // this.$refs.ecardEarth.getData()
      // this.$refs.payCount.getData()
      // this.$refs.annoucementPie.getData()
      // this.$refs.bookingBar.getData()
    }
  }
}
</script>

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