ZZJ
2021-11-24 bbe33e5fd87e5961fdab804bfb0b4cf354e0c5b2
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
<template>
  <div class="real-time-module">
    <div class="title">实时抓拍预警</div>
    <div class="real-time-item" v-for="(item, index) in warnArr" :key="index">
      <img src="/images/settings/background.png" alt="" class="warnArea" />
      <warnDescription
        :warnDes="{
          code: item.device_sn,
          time: item.updated_at,
          longitude: item.lng,
          latitude: item.lat,
          warn: '未在电子围栏区域',
        }"
      />
    </div>
  </div>
</template>
 
<script>
import warnDescription from "@/pages/internetEquipment/components/warnDescription";
export default {
  props: {
    warnArr: {
      type: Array,
    },
  },
  components: {
    warnDescription,
  },
};
</script>
 
<style scoped lang="scss">
.real-time-module {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  padding-right: 0px;
  width: 570px;
  height: 292px;
  background-color: #fff;
  box-shadow: 0px 2px 10px rgba(141, 164, 187, 0.25);
  border-radius: 15px;
  overflow-y: scroll;
 
  .title {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    width: 530px;
    text-align: left;
  }
 
  .real-time-item {
    margin-right: 14px;
  }
  .warnArea {
    width: 167px;
    height: 104px;
    border-radius: 5px;
  }
}
</style>