Blame view

src/views/dataView/leftcard.vue 3.93 KB
xiaomiao committed
1
<template>
xiaomiao committed
2
  <div class="leftcard">
任超 committed
3
    <div class="card">
xiaomiao committed
4 5
      <div class="cardhead">区县接入</div>
      <div class="cardcontent">
任超 committed
6 7
        <ul class="cardcontent-left d-center">
          <div class="rjjrlList">
任超 committed
8
            <p v-for="(item, index) in rjjrlList" class="d-center qxjr" :key="index">{{ item }}</p>
任超 committed
9
          </div>
任超 committed
10
          <li>总量</li>
任超 committed
11 12 13 14
        </ul>
        <div class="cardcontent-right d-center">
          <p>
            <span>失败</span>
任超 committed
15
            <span class="bad">0</span>
任超 committed
16 17 18
          </p>
          <p>
            <span>成功率</span>
任超 committed
19
            <span class="cg">99%</span>
任超 committed
20
          </p>
xiaomiao committed
21 22 23
        </div>
      </div>
    </div>
24
    <div class="card mt-15">
xiaomiao committed
25 26
      <div class="cardhead">省厅汇交</div>
      <div class="cardcontent">
任超 committed
27 28
        <ul class="cardcontent-left d-center">
          <div class="rjjrlList">
任超 committed
29
            <p v-for="(item, index) in rjjrlList" class="d-center sthj" :key="index">{{ item }}</p>
任超 committed
30
          </div>
任超 committed
31
          <li>总量</li>
任超 committed
32 33 34 35
        </ul>
        <div class="cardcontent-right d-center">
          <p>
            <span>失败</span>
任超 committed
36
            <span class="bad">0</span>
任超 committed
37 38 39
          </p>
          <p>
            <span>成功率</span>
任超 committed
40
            <span class="cg">99%</span>
任超 committed
41
          </p>
xiaomiao committed
42 43 44
        </div>
      </div>
    </div>
45
    <div class="card1 mt-15">
xiaomiao committed
46 47 48 49
      <div class="cardhead">各区县数据上报统计</div>
      <columnar />
    </div>
  </div>
xiaomiao committed
50 51 52 53 54
</template>

<script>
import columnar from "@/components/echart/columnar";
export default {
任超 committed
55 56 57 58 59
  data () {
    return {
      // 日均接入量
      rjjrl: 50300
    };
xiaomiao committed
60
  },
xiaomiao committed
61
  components: { columnar },
任超 committed
62 63 64 65 66 67 68 69 70 71 72
  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('')
    }
  },
xiaomiao committed
73
  methods: {},
xiaomiao committed
74 75 76 77
};
</script>

<style lang="scss" scoped>
xiaomiao committed
78
.leftcard {
任超 committed
79
  width: 32%;
任超 committed
80
  height: calc(100% -94px);
任超 committed
81 82
  display: flex;
  flex-direction: column;
任超 committed
83

任超 committed
84 85 86 87
  .card {
    background: url("~@/image/homeLeftBg.png") no-repeat;
    background-size: 100% 100%;
    position: relative;
任超 committed
88
    padding: 8px 0;
任超 committed
89
    height: 170px;
任超 committed
90 91 92 93 94 95
  }

  .card1 {
    background: url("~@/image/qxsj.png") no-repeat;
    background-size: 100% 100%;
    position: relative;
任超 committed
96
    padding: 10px 0;
任超 committed
97 98 99
    box-sizing: border-box;
    flex: 1;
    height: 100%;
任超 committed
100 101
  }

xiaomiao committed
102
  .cardhead {
任超 committed
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
    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;
任超 committed
118
    margin-top: 15px;
任超 committed
119

任超 committed
120
    .qxjr {
任超 committed
121
      background: url('~@/image/jrl3.png');
任超 committed
122 123 124 125 126 127 128
    }

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

    p {
任超 committed
129 130 131 132 133
      margin: 0 3px 10px 3px;
      font-weight: 700;
      width: 24px;
      height: 36px;
      font-size: 30px;
任超 committed
134
      font-size: 32px;
任超 committed
135
    }
xiaomiao committed
136
  }
任超 committed
137

xiaomiao committed
138 139
  .cardcontent {
    width: 100%;
任超 committed
140
    height: 100%;
xiaomiao committed
141
    display: flex;
任超 committed
142 143
    padding: 35px 20px 20px 20px;
    box-sizing: border-box;
任超 committed
144
    color: #E3F1FF;
任超 committed
145 146 147 148 149

    .cardcontent-left {
      width: 60%;
      flex-direction: column;
      position: relative;
xiaomiao committed
150
    }
任超 committed
151 152 153 154 155 156 157 158 159

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

任超 committed
162 163 164 165
    .cardcontent-right {
      flex: 1;
      width: 100%;
      flex-direction: column;
任超 committed
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
      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;
任超 committed
186

任超 committed
187
        }
任超 committed
188
      }
xiaomiao committed
189 190 191
    }
  }
}
xiaomiao committed
192
</style>