2023西安数博会CIM演示-【前端】-Web
AdaKing88
2023-08-21 bc03b832caa49bbcd2674fe4cae3701b5059bf95
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<template>
  <div class="text2">
    <div class="header">
      <span class="title1">应急资源监控</span>
    </div>
 
    <div class="right_top_btn">救援力量></div>
 
    <div class="content">
      <div class="row_top">
        <div class="text0">
          行政区域:
          <span style="color:#36d0f2;font-size: 20px;font-weight: 800;margin-left: 16px;">雁塔区</span>
        </div>
      </div>
      <div class="row">
        <div class="part" v-for="(item, index) in formData1" :key="index"
          :style="{ backgroundImage: `url(${item.img})` }">
          <div class="text">
            <div class="text2">
              <div class="text21">{{ item.number }}</div>
              <div class="text22">个</div>
            </div>
            <div class="text1">{{ item.typeName }}</div>
          </div>
        </div>
      </div>
 
 
    </div>
  </div>
</div></template>
 
<script>
 
export default {
  name: "text2",
  components: {
 
  },
  data() {
    return {
      formData1: [
        {
          img: require('@/assets/img/2医院.png'),
          number: 2,
          typeName: '医院数量'
        },
        {
          img: require('@/assets/img/消防支队.png'),
          number: 4,
          typeName: '消防队伍'
        },
        {
          img: require('@/assets/img/警察半身,公安.png'),
          number: 5,
          typeName: '警队数量'
        },
        {
          img: require('@/assets/img/监控.png'),
          number: 32,
          typeName: '监控点位'
        },
 
        {
          img: require('@/assets/img/人防工程.png'),
          number: 59,
          typeName: '人防设施'
        },
        {
          img: require('@/assets/img/食物.png'),
          number: 2,
          typeName: '救援物资'
        },
      ],
    }
  },
 
 
}
</script>
 
<style scoped lang="less">
.text2 {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: all;
 
  .header {
    width: 304px;
    height: 27.5px;
    margin-left: 20px;
    margin-top: 20px;
    background-image: url("~@/assets/img/menuTitle1.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-family: PangMenZhengDao;
    text-shadow: 0px 6px 9px #20618e;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    align-self: flex-start;
 
    .title1 {
      margin-left: 30px;
      font-size: 15px;
      color: #ffffff;
    }
 
  }
 
  .right_top_btn {
    position: absolute;
    right: 54px;
    top: 51px;
    width: 68px;
    height: 16px;
    border: 0.5px solid #9fd0ff;
    border-radius: 6.5px;
    background-color: rgba(24, 103, 158,0.5);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 9px;
    cursor: pointer;
  }
 
  .content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
 
 
    .row_top {
      margin-top: 6px;
      width: 299px;
      height: 73px;
      background-image: url("~@/assets/img/行政区域管理 (1).png");
      background-repeat: no-repeat;
      background-size: 100% 100%;
 
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
 
      .text0 {
        font-size: 13px;
        color: #fff;
      }
    }
 
    .row {
      flex: 1;
      width: 100%;
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
 
 
 
      .part {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        margin-top: 16px;
 
        width: 98.5px;
        height: 43px;
        flex-shrink: 0;
        gap: 16px;
 
        .text {
          display: flex;
          flex-direction: column;
          align-items: flex-end;
          justify-content: center;
          width: 100%;
 
 
          .text1 {
            font-size: 14px;
            color: #add7e6;
            align-self: flex-end;
          }
 
          .text2 {
            display: flex;
            flex-direction: row;
            justify-content: flex-end;
            align-items: center;
 
            .text21 {
              font-size: 18px;
              color: #6cc5ff;
              font-weight: 800;
            }
 
            .text22 {
              font-size: 12px;
              color: #eff0f1;
              margin-left: 6px;
            }
          }
        }
      }
    }
  }
}
</style>