Newer
Older
CloudBrainNew / src / views / cityManage / components / wisdomTraffic / trafficCase / trafficCaseCount.vue
wangxitong on 29 Apr 2021 1 KB 0429 submit
<!--
 * @Description: 事件总数,现场执法数量,非现场执法数量
 * @Author: 王晓颖
 * @Date: 2020-12-07 11:31:42
 -->
<template>
    <div style="width: 100%;height:100%;padding:0.1rem" >
      <div class="traffic-count-container">
        <image-block2 v-for="item of data" :key="item.name" :data="item"/>
      </div>
    </div>
</template>

<script>
import ImageBlock2 from '@/components/block/imageBlock2'
export default {
  name: 'TrafficCaseCount',
  components: {ImageBlock2},
  data () {
    return {
      data: [
        {name: '事件总数', value: '', unit: '个'},
        {name: '现场执法数量', value: '', unit: '个'},
        {name: '非现场执法数量', value: '', unit: '个'}
      ]
    }
  },
  created () {
    this.getData()
  },
  methods: {

  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .traffic-count-container{ // 垂直flex
    height: 100%;
    padding-left:0.03rem;
    padding-right:0.03rem;
    display: -webkit-flex; /* Safari */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin:auto;
  }
</style>