Newer
Older
CloudBrainNew / src / views / cityConstruction / components / iot / iotIntroduce.vue
wangxitong on 29 Apr 2021 1 KB 0429 submit
<!--
 * @Description: 物联网设备建设情况
 * @Author: 王晓颖
 * @Date: 2020-11-16 10:12:47
 -->
<template>
  <chart-layout title="物联网建设" @click="getData">
    <div class="block-container">
      <div class="block" style="width:33%">
        <device-count-bar/>
      </div>
      <div class="block" style="width:40%">
        <device-online ref="deviceOnline"/>
      </div>
      <div class="block" style="flex:1;">
        <device-pie/>
      </div>
    </div>
    <corner1 slot="corner"/>
  </chart-layout>
</template>

<script>

import DeviceCountBar from './components/deviceCountBar'
import DeviceOnline from './components/deviceOnline'
import DevicePie from './components/devicePie'
export default {
  name: 'iotIntroduce',
  components: {DevicePie, DeviceOnline, DeviceCountBar},
  methods: {
    getData () {
      this.$refs.deviceOnline.getData()
    }
  }
}
</script>

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