ZZJ
2022-01-11 5b38bbfd1cd075253990b8477e8713540ae228b8
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
<template>
  <div class="real-time-module">
    <div class="title">实时抓拍预警</div>
    <div class="real-time-list">
      <div
        class="real-time-item"
        v-for="(item, index) in boundArr"
        :key="index"
      >
        <img :src="item.snap_shot" alt="" class="warnArea" />
        <warnDescription
          :warnDes="{
            code: item.device_sn,
            time: item.updated_at,
            longitude: item.lng,
            latitude: item.lat,
            warn: '未在电子围栏区域',
          }"
        />
      </div>
    </div>
  </div>
</template>
 
<script>
import warnDescription from "@/pages/internetEquipment/components/warnDescription";
export default {
  props: {
    boundArr: {
      type: Array,
    },
  },
  components: {
    warnDescription,
  },
};
</script>
 
<style scoped lang="scss">
.real-time-module {
  padding: 20px;
  width: 570px;
  height: 292px;
  background-color: #fff;
  box-shadow: 0px 2px 10px rgba(141, 164, 187, 0.25);
  border-radius: 15px;
  overflow-y: scroll;
 
  .real-time-list {
    display: grid;
    justify-content: space-between;
    grid-template-columns: repeat(auto-fill, 170px);
    grid-gap: 10px;
  }
 
  .title {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    text-align: left;
  }
 
  .real-time-item {
    margin-right: 10px;
  }
 
  .real-time-item:last-child {
    margin-right: auto;
  }
 
  .warnArea {
    width: 167px;
    height: 104px;
    border-radius: 5px;
  }
}
</style>