fuliqi
2024-08-20 a6842851a844e63a8766d63c5410a8e2f27a7d45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<template>
  <div class="chart-container">
    <div class="rank-chart">
      <div class="hola-item" v-for="item in dataList" :key="item.id">
        <examine-hola :startColor="'#124ae4'" :endColor="'#99b3fd'" :centerValue="item.value" :bottomTitle="item.name"
          :routerPath="item.routerUrl"></examine-hola>
      </div>
    </div>
  </div>
</template>
 
<script>
import ExamineHola from "./examine-hola.vue";
let barChart = null;
export default {
  name: "FaceChart",
  components: {
    ExamineHola,
  },
  props: {
    faceList: {
      type: Object,
      default: null
    },
  },
  data() {
    return {
      dataList: [],
    };
  },
 
  methods: {},
  mounted() { },
  watch: {
    faceList() {
      //  "viewConnectStability": 96.39, //视图库对接稳定性
      // "siteOnline": 96.39, //点位在线率
      // "deviceDirectoryConsistent": 96.39, //目录一致率
      // "faceInformationCollectionAccuracy": 96.39, //信息采集准确率
      // "facePictureQualification": 96.39, //抓拍图片合格性
      // "faceTimingAccuracy": 96.39, //抓拍图片时钟准确性
      // "faceUploadTimeliness": 96.39, //抓拍数据上传及时性
      // "facePictureAvailability": 96.39 //抓拍数据大图可用性
      let item = { value: 0, name: "", id: 0, routerUrl: "" }
      item.value = this.faceList.viewConnectStability
      item.name = "视图库对接稳定性"
      item.id = 1
      item.routerUrl = ""
      this.dataList.push(item)
 
      let item1 = { value: 0, name: "", id: 0, routerUrl: "" }
      item1.value = this.faceList.siteOnline
      item1.name = "点位在线率"
      item1.id = 2
      item1.routerUrl = ""
      this.dataList.push(item1)
 
      let item2 = { value: 0, name: "", id: 0, routerUrl: "" }
      item2.value = this.faceList.deviceDirectoryConsistent
      item2.name = "目录一致率"
      item2.id = 3
      item2.routerUrl = ""
      this.dataList.push(item2)
 
      let item3 = { value: 0, name: "", id: 0, routerUrl: "" }
      item3.value = this.faceList.faceInformationCollectionAccuracy
      item3.name = "信息采集准确率"
      item3.id = 4
      item3.routerUrl = ""
      this.dataList.push(item3)
 
      let item4 = { value: 0, name: "", id: 0, routerUrl: "" }
      item4.value = this.faceList.facePictureQualification
      item4.name = "抓拍图片合格性"
      item4.id = 5
      item4.routerUrl = ""
      this.dataList.push(item4)
 
      let item5 = { value: 0, name: "", id: 0, routerUrl: "" }
      item5.value = this.faceList.faceTimingAccuracy
      item5.name = "抓拍图片时钟准确性"
      item5.id = 6
      item5.routerUrl = ""
      this.dataList.push(item5)
 
      let item6 = { value: 0, name: "", id: 0, routerUrl: "" }
      item6.value = this.faceList.faceUploadTimeliness
      item6.name = "抓拍数据上传及时性"
      item6.id = 7
      item6.routerUrl = ""
      this.dataList.push(item6)
 
      let item7 = { value: 0, name: "", id: 0, routerUrl: "" }
      item7.value = this.faceList.facePictureAvailability
      item7.name = "抓拍数据大图可用性"
      item7.id = 8
      item7.routerUrl = ""
      this.dataList.push(item7)
 
    },
  }
};
</script>
 
<style lang="scss" scoped>
.chart-container {
  width: 100%;
  height: 100%;
 
  .rank-chart {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: space-between;
    padding: 20px 0;
    box-sizing: border-box;
 
    .hola-item {
      flex-shrink: 0;
      width: 150px;
      height: 120px;
    }
  }
}
</style>