|
@@ -2,12 +2,19 @@
|
|
|
<div class="right-section">
|
|
|
<div class="card">
|
|
|
<div class="card-header">
|
|
|
- <div>综合值守</div>
|
|
|
+ <div>视频监控</div>
|
|
|
+ <div class="more">查看更多</div>
|
|
|
</div>
|
|
|
- <div class="card-content">
|
|
|
- <div style="line-height: 207px">值班时间:08-30-17:30</div>
|
|
|
- <div style="line-height: 207px">带班领导:张珊珊</div>
|
|
|
- <div style="line-height: 207px">值班时间:林珊珊、张珊珊</div>
|
|
|
+ <div class="card-content video-list">
|
|
|
+ <div v-for="(item, index) in videoUrl" :key="index" class="video-box" @click="showVideoDialog(item)">
|
|
|
+ <div class="video-header">
|
|
|
+ <span>{{ item.label }}</span>
|
|
|
+ <span>{{ item.time }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="video-content">
|
|
|
+ <img class="img" src="@/assets/images/profile.jpg" alt="" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="card">
|
|
@@ -23,10 +30,39 @@
|
|
|
<div class="card-content"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!--视频弹窗-->
|
|
|
+ <!-- <Dialog v-model="videoDialogVisible" :title="videoDialogData.label" width="70%" :before-close="handleClose">-->
|
|
|
+ <!-- <HKVideo :url="videoDialogData.url" />-->
|
|
|
+ <!-- </Dialog>-->
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
+import Dialog from '@/components/Dialog/index.vue';
|
|
|
+import HKVideo from '@/components/HKVideo/index.vue';
|
|
|
|
|
|
+// 视频监控
|
|
|
+const videoUrl = reactive([
|
|
|
+ { label: '摄像头一', img: '', url: 'https://vjs.zencdn.net/v/oceans.mp4', time: '17:14' },
|
|
|
+ { label: '摄像头二', url: 'https://vjs.zencdn.net/v/oceans.mp4', time: '17:14' },
|
|
|
+ { label: '摄像头三', url: 'https://vjs.zencdn.net/v/oceans.mp4', time: '17:14' },
|
|
|
+ { label: '摄像头四', url: 'https://vjs.zencdn.net/v/oceans.mp4', time: '17:14' },
|
|
|
+ { label: '摄像头五', url: 'https://vjs.zencdn.net/v/oceans.mp4', time: '17:14' },
|
|
|
+ { label: '摄像头六', url: 'https://vjs.zencdn.net/v/oceans.mp4', time: '17:14' }
|
|
|
+]);
|
|
|
+// 视频弹窗显隐
|
|
|
+let videoDialogVisible = ref(false);
|
|
|
+let videoDialogData = reactive({});
|
|
|
+
|
|
|
+// 显示视频弹窗
|
|
|
+const showVideoDialog = (item) => {
|
|
|
+ console.log(item);
|
|
|
+ videoDialogData = item;
|
|
|
+ videoDialogVisible.value = true;
|
|
|
+};
|
|
|
+// 关闭视频弹窗
|
|
|
+const handleClose = () => {
|
|
|
+ videoDialogVisible.value = false;
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
@@ -37,6 +73,7 @@
|
|
|
flex-direction: column;
|
|
|
font-size: 74px;
|
|
|
}
|
|
|
+
|
|
|
.card {
|
|
|
width: 100%;
|
|
|
background-color: #ffffff;
|
|
@@ -44,21 +81,33 @@
|
|
|
padding: 46px 69px;
|
|
|
margin-bottom: 69px;
|
|
|
animation-name: slide;
|
|
|
+
|
|
|
+ .card-header {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
&:last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
+
|
|
|
&:nth-child(1) {
|
|
|
animation-duration: 0.5s; // 新增
|
|
|
}
|
|
|
+
|
|
|
&:nth-child(2) {
|
|
|
height: 667.5px;
|
|
|
animation-duration: 1s; // 新增
|
|
|
}
|
|
|
+
|
|
|
&:nth-child(3) {
|
|
|
height: 667.5px;
|
|
|
animation-duration: 1.5s; // 新增
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
@keyframes slide {
|
|
|
0% {
|
|
|
transform: translateX(100%);
|
|
@@ -70,4 +119,42 @@
|
|
|
transform: translateX(0);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.more {
|
|
|
+ color: #1890ff;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+
|
|
|
+.video-list {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ .video-box {
|
|
|
+ width: 485px;
|
|
|
+ margin-right: 46px;
|
|
|
+ &:nth-child(3),
|
|
|
+ &:nth-child(6) {
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.video-box {
|
|
|
+ cursor: pointer;
|
|
|
+ .video-header {
|
|
|
+ background-color: #7f7f7f;
|
|
|
+ padding: 0 10px;
|
|
|
+ font-size: 30px;
|
|
|
+ color: #fff;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .video-content {
|
|
|
+ padding: 15px;
|
|
|
+ background-color: #ccc;
|
|
|
+ .img {
|
|
|
+ width: 100%;
|
|
|
+ height: 250px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|