监控视频

This commit is contained in:
yanran200730
2022-03-23 17:28:08 +08:00
parent 4dad5e1ab2
commit 9e44eddddf

View File

@@ -3,23 +3,18 @@
<device-slider :show.sync="slider" :ins="instance" :dict="dict" @select="handleSelectMonitor" <device-slider :show.sync="slider" :ins="instance" :dict="dict" @select="handleSelectMonitor"
:render-item="renderTreeItem" ref="DeviceSlider"/> :render-item="renderTreeItem" ref="DeviceSlider"/>
<div class="monitorPane"> <div class="monitorPane">
<div class="headerBar" v-if="false"> <div class="headerBar">
<el-select default-first-option size="small" v-model="splitScreen"> <el-select default-first-option size="small" v-model="splitScreen">
<i slot="prefix" class="iconfont iconjdq_led_Led1"/> <i slot="prefix" class="iconfont iconjdq_led_Led1"/>
<el-option v-for="(op,i) in splitOps" :key="i" v-bind="op"/> <el-option v-for="(op,i) in splitOps" :key="i" v-bind="op"/>
</el-select> </el-select>
<!-- <el-button icon="el-icon-full-screen" @click="handleFullscreen">全屏</el-button>--> <!-- <el-button icon="el-icon-full-screen" @click="handleFullscreen">全屏</el-button>-->
</div> </div>
<AiMonitor class="AppMonitorManage-video videoList" :src="videoUrl" type="slw"></AiMonitor> <div class="videoList">
<!-- <div class="videoList">
<AiMonitor :src="m.url" type="slwVideo"></AiMonitor>
<div class="videoBox" v-for="(m,i) in monitors" :key="i" :style="currentSplitStyle"> <div class="videoBox" v-for="(m,i) in monitors" :key="i" :style="currentSplitStyle">
<AiMonitor :src="m.url" type="slwVideo"></AiMonitor> <AiMonitor :src="m.url" type="slw"></AiMonitor>
<iframe v-if="isShow" :id="id" style="width: 100%; height: 100%;" :src="`https://cdn.cunwuyun.cn/jssdk/slw/index.html?url=${src}`"></iframe>
<iframe :src="m.url" allow="autoplay *; microphone *; fullscreen *" allowfullscreen allowtransparency
allowusermedia frameBorder="no"/>
</div> </div>
</div> --> </div>
</div> </div>
<ai-dialog title="修改名称" :visible.sync="dialog" width="500px" @onConfirm="handleSubmit(selected)" <ai-dialog title="修改名称" :visible.sync="dialog" width="500px" @onConfirm="handleSubmit(selected)"
@closed="selected={}"> @closed="selected={}">
@@ -116,14 +111,16 @@
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.videoUrl = res.data this.videoUrl = res.data
// let data = JSON.parse(res.data) let data = {
// if (refresh) { url: res.data
// monitor.url = data.url }
// } else if (this.splitScreen == 1) { if (refresh) {
// this.monitors = [{...monitor, ...data}] monitor.url = data.url
// } else { } else if (this.splitScreen == 1) {
// this.monitors.push({...monitor, ...data}) this.monitors = [{...monitor, ...data}]
// } } else {
this.monitors.push({...monitor, ...data})
}
} }
}) })
}, },