luobisheng
2022-11-25 dfad5868528f14df5d341611922624962cd1fb2d
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
<template>
  <el-container style="height: 100%;">
    <el-aside heigth="100%" width="200px ">
      <department-aside @selectedDepartment="selectedDepartment" />
    </el-aside>
 
    <el-container>
      <el-header style="display:flex;flex-direction: column;height: 120px;">
        <div style="display:flex;justify-content: space-between;height: 80px;">
          <span style="color:rgb(75, 155, 183);font-weight: 450;text-align: left; font-size: 16px;">当前共8个监控点位,最多配置100路视频监控,目前已经配置200路视频点</span>    
        </div>
        <div style="height:60px;display: flex;justify-content: flex-start;">
        </div>
      </el-header>
 
      <el-main style="display:flex;flex-wrap: wrap;overflow-y: scroll;">
        <div v-for="item in videoData" style="height: 240px ;width: 210px; position: relative;margin-left:20px ;">
          <div
            style="color:rgb(75, 155, 183); font-size: 11px;line-height: 18px; position: absolute; z-index: 1;left: 50px;">
            {{ item.name }}{{ item.community }}</div>
          <video id="my-video" :src="item.urlAddress" class="video-js" controls preload="auto" width="210px" height="150px">
          </video>
          <div class="bottonOne" @click="">查看视频</div>
          <div class="bottonTwo">视频上报</div>
          <div class="bottonThird">对讲</div>
        </div>
      </el-main>
      <el-footer>
        <div style="margin-bottom:0;">
          <el-pagination :current-page="currentPage" layout="prev, pager, next" :total="totalNum"
            :page-size="pageSize">
          </el-pagination>
        </div>
      </el-footer>
    </el-container>
  </el-container>
</template>
<style lang="scss" scoped>
.button-one {
  height: 40px;
  width: 80px;
  margin-left: 20px;
  padding: 0;
  background-color: #09152f;
  color: rgb(75, 155, 183);
  border: 1px solid rgb(75, 155, 183);
}
 
.button-two {
  height: 40px;
  width: 80px;
  padding: 0;
  background-color: #09152f;
  color: rgb(75, 155, 183);
  border: 1px solid rgb(75, 155, 183);
}
.el-button+.el-button{
  margin: 0;
}
.button-third {
  height: 40px;
  width: 80px;
  padding: 0;
  background-color: #09152f;
  color: rgb(75, 155, 183);
  border: 1px solid rgb(75, 155, 183);
}
 
.video-js {
  border: 1px solid rgb(75, 155, 183);
  margin-left: 20px;
}
 
.bottonOne {
  color: rgb(75, 155, 183);
  font-size: 11px;
  position: absolute;
  height: 30px;
  line-height: 30px;
  margin-left: 20px;
  width: 70px;
  border: 1px solid rgb(75, 155, 183);
  cursor: pointer;
}
 
.bottonTwo {
  color: rgb(75, 155, 183);
  font-size: 11px;
  position: absolute;
  height: 30px;
  line-height: 30px;
  width: 70px;
  border: 1px solid rgb(75, 155, 183);
  margin-left: 90px;
  cursor: pointer;
}
.el-pagination{
  line-height: 40px;
}
.bottonThird {
  color: rgb(75, 155, 183);
  font-size: 11px;
  position: absolute;
  height: 30px;
  line-height: 30px;
  width: 70px;
  border: 1px solid rgb(75, 155, 183);
  margin-left: 160px;
  cursor: pointer;
}
 
::v-deep .el-header {
  background-color: #09152f;
  color: #000;
  line-height: 60px;
}
 
::v-deep .el-aside {
  background-color: #09152f;
}
 
::v-deep .el-menu {
  background-color: #09152f;
}
 
::v-deep .el-main,
::v-deep .el-footer {
  background-color: #09152f;
}
 
::v-deep .el-tree-node__label {
  line-height: 30px;
  font-size: 14px;
  color: rgb(75, 155, 183);
}
</style>
<script>
import departmentAside from "@/views/operate/fivepack/threepack/components/aside";
import videoPoint from "@/api/system/videoPoint";
 
  export default {
    components: { departmentAside },
    created() {
      this.getVideoPointList();
    },
    data() {
      return {
        currentPage: 1,
        totalNum: 10,
        pageSize: 10,
        videoData: [],
        value:''
      };
    },
    methods: {
      getVideoPointList(data) {
        let communityId, streetId;
        if (data) {
          communityId = data.parentId;
          streetId = data.id;
        }
        videoPoint.getVideoPointList({ current: this.currentPage, size: this.pageSize, communityId, streetId })
            .then(({ records, total }) => {
              this.videoData = records;
              this.totalNum = total;
            })
            .catch(err => this.$message.error(err))
      },
      selectedDepartment(data) {
        if (!data.children) {
          this.getVideoPointList(data);
        }
      }
    }
  };
</script>