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
| <script setup>
| import {getVideoList} from '@/api/screen/video.js'
| import VideoPlayer from "@/components/VideoPlayer/VideoPlayer.vue";
| import {ref} from "vue";
|
| const showList = ref([
| { id: 0, name: '监控1' },
| { id: 2, name: '监控2' },
| ])
|
| </script>
|
| <template>
| <div class="monitor">
| <div class="list">
| <div class="m-item" v-for="(x,i) in showList" :key="x">
| <div class="name">{{x.name}}</div>
| <VideoPlayer :item="x" />
| <div class="btnlist">
| <el-button size="large">泵房水浸报警</el-button>
| <el-button size="large">控制柜闪灯报警</el-button>
| </div>
| </div>
| </div>
| </div>
| </template>
|
| <style scoped lang="scss">
| .monitor{
| width: 100%;
| height: 100%;
| .list{
| height: 100%;
| padding: 0.5rem;
| display: flex;
| gap: 1rem;
| .m-item{
| width: 50%;
| height: 100%;
| background: rgb(158, 183, 111);
| position: relative;
| .name{
| position: absolute;
| right: 0;
| top: 0;
| z-index: 100;
| color: #fff;
| padding: 0.5rem 2rem;
| background: rgba(0, 0, 0, 0.5);
| }
| .btnlist{
| position: absolute;
| left: 0;
| bottom: 3rem;
| width: 100%;
| text-align: center;
| :deep(.el-button){
| margin: 0 3rem;
| background: red;
| border-color: red;
| color: #fff;
| font-size: 1.5rem;
| }
| }
| }
| }
| }
| </style>
|
|