leftcard.vue 3.88 KB
<template>
  <div class="leftcard">
    <div class="card">
      <div class="cardhead">区县接入</div>
      <div class="cardcontent">
        <ul class="cardcontent-left d-center">
          <div class="rjjrlList">
            <p v-for="(item, index) in rjjrlList" class="d-center qxjr" :key="index">{{ item }}</p>
          </div>
          <li>日均接入量</li>
        </ul>
        <div class="cardcontent-right d-center">
          <p>
            <span>失败</span>
            <span class="bad">0</span>
          </p>
          <p>
            <span>成功率</span>
            <span class="cg">99%</span>
          </p>
        </div>
      </div>
    </div>
    <div class="card mt15">
      <div class="cardhead">省厅汇交</div>
      <div class="cardcontent">
        <ul class="cardcontent-left d-center">
          <div class="rjjrlList">
            <p v-for="(item, index) in rjjrlList" class="d-center sthj" :key="index">{{ item }}</p>
          </div>
          <li>日均接入量</li>
        </ul>
        <div class="cardcontent-right d-center">
          <p>
            <span>失败</span>
            <span class="bad">0</span>
          </p>
          <p>
            <span>成功率</span>
            <span class="cg">99%</span>
          </p>
        </div>
      </div>
    </div>
    <div class="card1 mt15">
      <div class="cardhead">各区县数据上报统计</div>
      <columnar />
    </div>
  </div>
</template>

<script>
import columnar from "@/components/echart/columnar";
export default {
  data () {
    return {
      // 日均接入量
      rjjrl: 50300
    };
  },
  components: { columnar },
  computed: {
    rjjrlList: function () {
      return this.rjjrl.toString().split('')
    },
    sbqkgsList: function () {
      const numbers = this.sbqkgs.toString().split('').reverse()
      const segs = []
      while (numbers.length) segs.push(numbers.splice(0, 3).join(''))
      return segs.join(',').split('').reverse().join('')
    }
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.leftcard {
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  .card {
    background: url("~@/image/homeLeftBg.png") no-repeat;
    background-size: 100% 100%;
    position: relative;
    flex: 1;
    height: 100%;
    padding: 8px 0;
  }

  .card1 {
    background: url("~@/image/qxsj.png") no-repeat;
    background-size: 100% 100%;
    position: relative;
    padding: 10px 0;
  }

  .cardhead {
    color: #02D9FD;
    line-height: 24px;
    letter-spacing: 2px;
    position: absolute;
    font-size: 20px;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    top: 8px;
    font-weight: 700;
  }

  .rjjrlList {
    display: flex;
    margin-top: 15px;

    .qxjr {
      background: url('~@/image/jrl3.png');
    }

    .sthj {
      background: url('~@/image/jh.png');
    }

    p {
      margin: 0 3px 10px 3px;
      font-weight: 700;
      width: 24px;
      height: 36px;
      font-size: 30px;
      font-size: 32px;
    }
  }

  .cardcontent {
    width: 100%;
    height: 100%;
    display: flex;
    padding: 35px 20px 20px 20px;
    box-sizing: border-box;
    color: #E3F1FF;

    .cardcontent-left {
      width: 60%;
      flex-direction: column;
      position: relative;
    }

    .cardcontent-left::before {
      position: absolute;
      right: 0;
      top: 20px;
      content: '';
      width: 1px;
      height: 90px;
      background: linear-gradient(180deg, #091B4C 0%, #47B5E0 56%, #091B4C 100%);
    }

    .cardcontent-right {
      flex: 1;
      width: 100%;
      flex-direction: column;
      font-size: 16px;

      .bad {
        color: #C97168;
      }

      .cg {
        color: #5FBA7D;
      }

      p {
        margin-bottom: 8px;

        span:nth-child(1) {
          margin-right: 15px;
        }

        span:nth-child(2) {
          font-size: 20px;
          font-weight: 900;

        }
      }
    }
  }
}
</style>