Newer
Older
CloudBrainNew / src / views / cityManage / components / mobileManage / mobileInspection.vue
wangxitong on 29 Apr 2021 1 KB 0429 submit
<!--
 * @Description: 城管执法
 * @Author: 王晓颖
 * @Date: 2020-12-02 11:12:53
 -->
<template>
  <chart-layout title="城管执法" @click="getData">
    <div class="block-container">
      <div class="block" style="width:20%">
        <staff-count v-if="isShow"/>
        <staff-bar v-if="!isShow"/>
      </div>
      <div class="block" style="flex:1">
        <inspection-count/>
      </div>
    </div>
    <corner1 slot="corner"/>
  </chart-layout>
</template>

<script>
import StaffCount from './components/staffCount'
import InspectionCount from './components/inspectionCount'
import StaffBar from "./components/staffBar";
export default {
  name: 'MobileInspection',
  components: {StaffBar, InspectionCount, StaffCount},
  data () {
    return {
      compTimer: null,
      isShow: true
    }
  },
  mounted () {
    this.compChange()
  },
  methods: {
    compChange () {
      this.compTimer = setTimeout(() => {
        this.isShow = !this.isShow
        this.compChange()
      }, 5 * 1000)
    },
    getData () {
      // this.$refs.ecardEarth.getData()
    }
  }
}
</script>

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