1
Surpriseplus
2022-09-16 8d1a91c23df335b090e38b2edd15203aa3b03da9
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<template>
  <div class="summary">
    <p class="msg">2021年度检查汇总</p>
    <div class="content">
      <div class="list">
        <p>
          出动执法人员: <span>{{ val1 }}</span
          >人次
        </p>
      </div>
      <div class="list">
        <p>
          检查相关单位: <span>{{ val2 }}</span
          >家次
        </p>
      </div>
      <div class="list">
        <p>
          检查设备: <span>{{ val3 }}</span
          >台次
        </p>
      </div>
      <div class="list">
        <p>
          发现隐患: <span>{{ val4 }}</span
          >项
        </p>
      </div>
      <div class="list">
        <p>
          下达安全监察指令书: <span>{{ val5 }}</span
          >份
        </p>
      </div>
      <div class="list">
        <p>
          处罚金额: <span>{{ val6 }}</span
          >万
        </p>
      </div>
      <div class="list">
        <p>
          已督促责任单位完成整改: <span>{{ val7 }}</span
          >项
        </p>
      </div>
      <div class="list">
        <p>
          立案查处违法违规行为: <span>{{ val8 }}</span
          >起
        </p>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {
      val1: null,
      val2: null,
      val3: null,
      val4: null,
      val5: null,
      val6: null,
      val7: null,
      val8: null,
    };
  },
  //方法集合
  methods: {
    async drawline() {
      const { data: dt } = await this.$http.get(
        "/jeecg-boot/specialeq/specialeq/queryall"
      );
      var valueData = dt.result;
      for (var i in valueData) {
        if (valueData[i].name == "出动执法人员") {
          this.val1 = valueData[i].value;
        } else if (valueData[i].name == "检查相关单位") {
          this.val2 = valueData[i].value;
        } else if (valueData[i].name == "检查设备") {
          this.val3 = valueData[i].value;
        } else if (valueData[i].name == "发现隐患") {
          this.val4 = valueData[i].value;
        } else if (valueData[i].name == "下达安全监察指令书") {
          this.val5 = valueData[i].value;
        } else if (valueData[i].name == "处罚金额") {
          this.val6 = valueData[i].value;
        } else if (valueData[i].name == "已督促责任单位完成整改") {
          this.val7 = valueData[i].value;
        } else if (valueData[i].name == "立案查处违法违规行为") {
          this.val8 = valueData[i].value;
        }
      }
    },
  },
  mounted() {
    this.drawline();
  },
  created() {},
};
</script>
<style lang="less" scoped>
//@import url(); 引入公共css类
.summary {
  overflow: hidden;
  height: 48%;
  margin-top: 1%;
  padding-top: 70px;
  box-sizing: border-box;
  background: rgba(8, 32, 58, 0.7);
  .msg {
    font-size: 60px;
    font-weight: 400;
    color: #ffffff;
    padding-bottom: 40px;
    text-align: center;
  }
  .content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    .list {
      width: 49%;
      height: 118px;
      background: url("../../../assets/img/组 9.png") no-repeat center;
      background-size: 100% 100%;
      line-height: 125px;
      margin-bottom: 100px;
      p {
        font-size: 56px;
        font-weight: 400;
        color: #ebfdff;
        text-align: center;
        span {
          color: #ffee98;
        }
      }
    }
    .list:nth-child(7) {
      width: 100%;
      background: url("../../../assets/img/组 9 拷贝 6.png") no-repeat center;
      background-size: 100% 100%;
    }
    .list:nth-child(8) {
      width: 100%;
      background: url("../../../assets/img/组 9 拷贝 6.png") no-repeat center;
      background-size: 100% 100%;
      margin-bottom: 0;
    }
  }
}
@media only screen and (max-width: 2560px) {
  .summary {
    background: transparent;
    height: 50%;
    margin: 0;
  }
}
</style>