Blame view

src/views/youdaopingsection.vue 1.94 KB
e00e4982   liuqimichale   道闸 诱导屏
1
2
3
4
5
6
7
  <template>
    <div>
      <titlesection title="道闸/诱导屏"></titlesection>
      <ul class="flexfm ydp-dz-wrap">
        <li>
          <div>
            <div class="bg-wrap">
66faa378   liuqimichale   道闸 诱导屏
8
9
              <p class="dznum-total">{{ dzNum|formatNum }}</p>
              <p class="name">道闸</p>
e00e4982   liuqimichale   道闸 诱导屏
10
11
12
13
            </div>
          </div>
          <div>
            <div class="bg-wrap">
66faa378   liuqimichale   道闸 诱导屏
14
15
              <p class="ydpnum-total">{{ ydpNum|formatNum }}</p>
              <p class="name">诱导屏</p>
e00e4982   liuqimichale   道闸 诱导屏
16
17
18
            </div>
          </div>
        </li>
e00e4982   liuqimichale   道闸 诱导屏
19
        <li>
be79dd15   liuqimichale   道闸
20
          <allPieChart :chart-data="pieChartData"/>
e00e4982   liuqimichale   道闸 诱导屏
21
22
23
24
25
26
27
28
        </li>
      </ul>
    </div>
  </template>
  
  <script>
  import titlesection from '../components/titlesection'
  import allPieChart from '../components/allPieChart'
e00e4982   liuqimichale   道闸 诱导屏
29
30
  import {fetchList} from '../api/api'
  
e00e4982   liuqimichale   道闸 诱导屏
31
32
33
34
35
36
37
38
39
  
  export default {
    name: 'youdaopingsection',
    components: {
      titlesection,
      allPieChart
    },
    data() {
      return {
be79dd15   liuqimichale   道闸
40
        pieChartData:  [35, 55],
66faa378   liuqimichale   道闸 诱导屏
41
42
        dzNum: '23454',
        ydpNum: '4454'
e00e4982   liuqimichale   道闸 诱导屏
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
      }
    },
    created() {
    },
    methods: {
      getList() {
        fetchList()
        .then(res => {
          console.log(res);
  
        });
      },
    }
  }
  </script>
  
  <style lang="scss"  scoped>
    .ydp-dz-wrap{
      display: flex;
66faa378   liuqimichale   道闸 诱导屏
62
      text-align: center;
5fed471f   liuqimichale   道闸
63
      padding: 0 23px;
e00e4982   liuqimichale   道闸 诱导屏
64
65
66
67
68
69
      li{
        height: 100%;
        flex: 1;
        &:nth-of-type(1)>div{
          height: 50%;
          .bg-wrap{
66faa378   liuqimichale   道闸 诱导屏
70
71
72
            width: 115px;
            height: 59px;
            padding: 13px 0 0 0;
e00e4982   liuqimichale   道闸 诱导屏
73
74
75
76
            position: relative;
            top:50%;
            left: 50%;
            transform: translate(-50%,-50%);
66faa378   liuqimichale   道闸 诱导屏
77
78
            background:url("../assets/img/bg-wrap.png") no-repeat;
            .dznum-total,.ydpnum-total{
237f69eb   liuqimichale   收费员
79
              @include fonttextStyle(20px);
66faa378   liuqimichale   道闸 诱导屏
80
81
            }
            .dznum-total{
237f69eb   liuqimichale   收费员
82
              background-image: $fontBlue;
66faa378   liuqimichale   道闸 诱导屏
83
84
            }
            .ydpnum-total{
237f69eb   liuqimichale   收费员
85
              background-image: $fontOrange;
66faa378   liuqimichale   道闸 诱导屏
86
87
88
89
90
91
            }
            .name{
              padding-top: 5px;
              font-size: 12px;
              color: #fff;
            }
e00e4982   liuqimichale   道闸 诱导屏
92
93
94
95
96
          }
        }
      }
    }
  </style>