监控视频
This commit is contained in:
		| @@ -3,23 +3,18 @@ | ||||
|     <device-slider :show.sync="slider" :ins="instance" :dict="dict" @select="handleSelectMonitor" | ||||
|                    :render-item="renderTreeItem" ref="DeviceSlider"/> | ||||
|     <div class="monitorPane"> | ||||
|       <div class="headerBar" v-if="false"> | ||||
|       <div class="headerBar"> | ||||
|         <el-select default-first-option size="small" v-model="splitScreen"> | ||||
|           <i slot="prefix" class="iconfont iconjdq_led_Led1"/> | ||||
|           <el-option v-for="(op,i) in splitOps" :key="i" v-bind="op"/> | ||||
|         </el-select> | ||||
|         <!--        <el-button icon="el-icon-full-screen" @click="handleFullscreen">全屏</el-button>--> | ||||
|       </div> | ||||
|       <AiMonitor class="AppMonitorManage-video videoList" :src="videoUrl" type="slw"></AiMonitor> | ||||
|       <!-- <div class="videoList"> | ||||
|         <AiMonitor :src="m.url" type="slwVideo"></AiMonitor> | ||||
|       <div class="videoList"> | ||||
|         <div class="videoBox" v-for="(m,i) in monitors" :key="i" :style="currentSplitStyle"> | ||||
|           <AiMonitor :src="m.url" type="slwVideo"></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"/> | ||||
|           <AiMonitor :src="m.url" type="slw"></AiMonitor> | ||||
|         </div> | ||||
|       </div> --> | ||||
|       </div> | ||||
|     </div> | ||||
|     <ai-dialog title="修改名称" :visible.sync="dialog" width="500px" @onConfirm="handleSubmit(selected)" | ||||
|                @closed="selected={}"> | ||||
| @@ -116,14 +111,16 @@ | ||||
|         }).then(res => { | ||||
|           if (res?.data) { | ||||
|             this.videoUrl = res.data | ||||
|             // let data = JSON.parse(res.data) | ||||
|             // if (refresh) { | ||||
|             //   monitor.url = data.url | ||||
|             // } else if (this.splitScreen == 1) { | ||||
|             //   this.monitors = [{...monitor, ...data}] | ||||
|             // } else { | ||||
|             //   this.monitors.push({...monitor, ...data}) | ||||
|             // } | ||||
|             let data = { | ||||
|               url: res.data | ||||
|             } | ||||
|             if (refresh) { | ||||
|               monitor.url = data.url | ||||
|             } else if (this.splitScreen == 1) { | ||||
|               this.monitors = [{...monitor, ...data}] | ||||
|             } else { | ||||
|               this.monitors.push({...monitor, ...data}) | ||||
|             } | ||||
|           } | ||||
|         }) | ||||
|       }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user