|
|
@@ -6,6 +6,10 @@
|
|
|
<template #header>
|
|
|
<div class="card-header">
|
|
|
<span>视频设备</span>
|
|
|
+ <div>
|
|
|
+ <el-button v-if="isvideoshow" @click="isvideoshow=false">
|
|
|
+ 返回
|
|
|
+ </el-button></div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="tree">
|
|
|
@@ -20,7 +24,12 @@
|
|
|
</div>
|
|
|
</el-card>
|
|
|
</el-col>
|
|
|
- <el-col :span="18">
|
|
|
+ <el-col :span="18" v-if="isvideoshow">
|
|
|
+ <div style="height: 100%;">
|
|
|
+ <iframe id="FrameID" :key="currenturl" style="width: 100%;height:100%" :src="currenturl"/>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="18" v-if="!isvideoshow">
|
|
|
<el-card class="box-card">
|
|
|
<div style="display: flex; flex-direction: row; justify-content: space-between">
|
|
|
<div>
|
|
|
@@ -114,12 +123,14 @@ import { listVideo, getVideo, delVideo, addVideo, updateVideo } from "@/api/data
|
|
|
import { listVideoDetail, getVideoDetail, delVideoDetail, addVideoDetail, updateVideoDetail } from "@/api/data/videoDetail";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
|
|
|
-
|
|
|
+const isvideoshow = ref(false);
|
|
|
const route = useRoute();
|
|
|
const router = useRouter();
|
|
|
|
|
|
const treeList = ref([])
|
|
|
|
|
|
+const currenturl = ref("");
|
|
|
+
|
|
|
// const tableref = ref(null);
|
|
|
|
|
|
const vidoeParams = ref({
|
|
|
@@ -135,13 +146,24 @@ const vidoeParams = ref({
|
|
|
serialNumber: ''
|
|
|
})
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
const handleClick = (node) => {
|
|
|
if (node.videoId != null) {
|
|
|
searchform.value.id = node.videoId
|
|
|
} else {
|
|
|
searchform.value.id = node.id
|
|
|
}
|
|
|
- getVideoList();
|
|
|
+
|
|
|
+ currenturl.value = node.remark;
|
|
|
+ isvideoshow.value = true;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
};
|
|
|
const selectedKey = ref(1);
|
|
|
const data = ref([
|
|
|
@@ -221,6 +243,8 @@ const getVideoDetailList = () => {
|
|
|
console.log(treeList.value);
|
|
|
treeList.value.forEach(video => {
|
|
|
video.children = [];
|
|
|
+ video["spread"] = true;
|
|
|
+ video["disabled"] = true;
|
|
|
res.rows.forEach(detail => {
|
|
|
if (video.id == detail.videoId) {
|
|
|
detail.name = detail.cameraName
|
|
|
@@ -313,5 +337,13 @@ getVideoList();
|
|
|
*:after {
|
|
|
box-sizing: content-box !important;
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
+</style>
|
|
|
+
|
|
|
+<style lang="scss">
|
|
|
+.layui-disabled{
|
|
|
+ color: #000 !important;
|
|
|
+ }
|
|
|
</style>
|