forked from drone/command-center-dashboard

zhongrj
2025-03-31 9775bbbc9e7a9574e2d79d69460e2f50ba867430
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
<script setup>
import { Close } from '@element-plus/icons-vue';
 
const list = [
  { name: '执行中', value: '1', color: '#FFA768' },
  { name: '在线', value: '20', color: '#8EFFAC' },
  { name: '离线', value: '14', color: '#FFFFFF' },
  { name: '异常', value: '25', color: '#FF6262' },
];
 
const props = defineProps(['data', 'removeLabel']);
</script>
 
<template>
  <div class="mapPopUpBox">
    <div class="title">
      违章建筑
      <el-icon class="header-close" @click="props.removeLabel">
        <Close />
      </el-icon>
    </div>
    <div class="content">
      <img
        class="eventImage"
        src="@/assets/images/home/useEventOperate/eventErr.png"
        alt="Event Image"
      />
      <div class="details">
        <div class="label">位置:</div>
        <div class="value point">112.12345 23.98726</div>
        <div class="label">时间:</div>
        <div class="value">2025.08.16 22:25</div>
      </div>
    </div>
  </div>
</template>
 
<style scoped lang="scss">
.mapPopUpBox {
  width: 271px;
  height: 173px;
  background: url('@/assets/images/home/useEventOperate/popUpBox.png') no-repeat center / 100% 100%;
  padding: 13px 15px;
  pointer-events: all;
 
  .title {
    font-family: YouSheBiaoTiHei, YouSheBiaoTiHei, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 16px;
    background: linear-gradient(180deg, #A8E5FB 0%, #E6F8FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
 
    .header-close {
      width: 20px;
      height: 100%;
      line-height: 100%;
      display: flex;
      align-items: center;
      color: #9cd5ff;
      pointer-events: all;
      cursor: pointer;
    }
  }
 
  .content {
    height: 102px;
    width: 240px;
    display: flex;
    align-items: center;
 
    img {
      height: 102px;
      width: 102px;
      margin-right: 10px;
    }
 
    .details {
      .label {
        font-family: Source Han Sans CN, Source Han Sans CN;
        font-weight: 400;
        font-size: 14px;
        color: #7babd7;
        line-height: 16px;
        margin-bottom: 2px;
      }
 
      .value {
        font-family: Source Han Sans CN, Source Han Sans CN;
        font-weight: 400;
        font-size: 14px;
        color: #d8edff;
        line-height: 16px;
        margin-bottom: 2px;
      }
 
      .point {
        margin-bottom: 14px;
      }
    }
  }
}
</style>