<template>
  <div id="statis-num">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24" class="one">
          <el-col :span="4" class="list" v-for="(item, index) in list" :key="index">
            <span>{{ item.title }}</span>
            <span>{{ item.num }}</span>
            <span>{{ item.dw }}</span>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'statis-num',
  props: {},
  components: {},
  data: function () {
    return {
      list: [
        { title: '企业总数', num: 42, dw: '家' },
        { title: '保安员数', num: 552, dw: '个' },
        { title: '在岗人数', num: 32, dw: '个' },
        { title: '服务公司', num: 7, dw: '家' },
        { title: '武装押运', num: 0, dw: '家' },
        { title: '外省分公司', num: 16, dw: '家' },
      ],
    };
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped>
.main {
  .one {
    padding: 0 10%;
    .list {
      height: 35px;
      line-height: 35px;
      text-align: center;
      color: #fff;
      border-right: 2px dashed #ccc;
      span {
        font-size: 0.9vw;
        font-weight: bold;
      }
      span:nth-child(1) {
        color: #06ffc9;
      }
      span:nth-child(2) {
        color: #c1d800;
        padding: 0 5px;
      }
    }
    .list:last-child {
      border-right: none;
    }
  }
}
</style>
