Blame view

src/views/sfysection.vue 1.98 KB
fafdedae   liuqimichale   道闸 诱导屏
1
2
  <template>
    <div>
237f69eb   liuqimichale   收费员
3
      <titlesection title="收费员"></titlesection>
fafdedae   liuqimichale   道闸 诱导屏
4
5
6
7
      <totalsection :totalNum="totalVal"></totalsection>
      <ul class="flexfm sfy-wrap">
        <li>
          <div class="sign">
237f69eb   liuqimichale   收费员
8
9
10
11
12
13
14
15
            <p class="signnum">{{ signNum|formatNum }}</p>
            <p class="text">签到</p>
          </div>
        </li>
        <li>
          <div class="nosign">
            <p class="signnum">{{ nosignNum|formatNum }}</p>
            <p class="text">未签到</p>
fafdedae   liuqimichale   道闸 诱导屏
16
17
          </div>
        </li>
fafdedae   liuqimichale   道闸 诱导屏
18
19
20
21
22
23
24
      </ul>
    </div>
  </template>
  
  <script>
  import titlesection from '../components/titlesection'
  import totalsection from '../components/total'
adf82b69   liuqimichale   调取接口
25
  import { tollAddress } from '../api/api'
fafdedae   liuqimichale   道闸 诱导屏
26
27
28
29
30
31
32
33
34
  
  export default {
    name: 'sfysection',
    components: {
      titlesection,
      totalsection
    },
    data() {
      return {
adf82b69   liuqimichale   调取接口
35
36
37
        totalVal: '',
        signNum: '',
        nosignNum: ''
fafdedae   liuqimichale   道闸 诱导屏
38
39
40
      }
    },
    created() {
adf82b69   liuqimichale   调取接口
41
      this.getList()
fafdedae   liuqimichale   道闸 诱导屏
42
43
44
    },
    methods: {
      getList() {
adf82b69   liuqimichale   调取接口
45
46
47
48
49
50
51
52
        tollAddress({
          orgIds: this.GLOBAL.paramsvariables
        }).then((response)=>{
          let data = response.data.data
          this.totalVal = (data.allTollCollector).toString()
          this.signNum = data.signInTollCollector
          this.nosignNum = data.unSignInTollCollector
        })
fafdedae   liuqimichale   道闸 诱导屏
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
      },
    }
  }
  </script>
  
  <style lang="scss"  scoped>
    .sfy-wrap{
      display: flex;
      padding: 0 23px;
      li{
        flex: 1;
        display: flex;
        align-items:center;
        >div{
          width: 100%;
237f69eb   liuqimichale   收费员
68
69
          height: 49px;
          padding-left: 71px;
fafdedae   liuqimichale   道闸 诱导屏
70
71
72
          color: #fff;
        }
        .sign{
237f69eb   liuqimichale   收费员
73
74
75
76
77
78
79
80
          background: url("../assets/img/nosign.png") no-repeat;
          .signnum{
            padding: 5px 0;
            @include fonttextStyle(24px);
            background-image: $fontBlue;
          }
        }
        .nosign{
fafdedae   liuqimichale   道闸 诱导屏
81
          background: url("../assets/img/sign.png") no-repeat;
237f69eb   liuqimichale   收费员
82
83
84
85
86
87
88
89
90
          .signnum{
            padding: 5px 0;
            @include fonttextStyle(24px);
            background-image: $fontOrange;
          }
        }
        .text{
          color: #fff;
          font-size: 12px;
fafdedae   liuqimichale   道闸 诱导屏
91
92
93
94
        }
      }
    }
  </style>