mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
34 lines
1.7 KiB
HTML
34 lines
1.7 KiB
HTML
<div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<h6>我的摄像头</h6>
|
|
</div>
|
|
<div class="col-md-6 text-right">
|
|
<button type="button" class="btn-white btn btn-sm margin-right-sm" v-on:click="_changeCameras()">摄像头
|
|
</button>
|
|
<div class="btn-group" role="group" aria-label="Basic example">
|
|
<button type="button" class="btn btn-light btn-sm" v-bind:class="{'btn-primary': cameraControlVideoInfo.cameraCount == 4}" v-on:click="_changeCount(4)">四路
|
|
</button>
|
|
<button type="button" class="btn btn-light btn-sm" v-bind:class="{'btn-primary': cameraControlVideoInfo.cameraCount == 6}" v-on:click="_changeCount(6)">六路
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row margin-top">
|
|
<!-- 2*2-->
|
|
<div class="col-md-6" v-if="cameraControlVideoInfo.cameraCount == 4" v-for="(item,index) in cameraControlVideoInfo.machines">
|
|
<div class="form-group">
|
|
<video :id="item.machineId" controls autoplay="autoplay" muted width="100%" height="400px" style="background-color: #000;"></video>
|
|
<span>摄像头:{{item.machineName}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4" v-if="cameraControlVideoInfo.cameraCount == 6" v-for="(item,index) in cameraControlVideoInfo.machines">
|
|
<div class="form-group">
|
|
<video :id="item.machineId" controls autoplay="autoplay" muted width="100%" height="400px" style="background-color: #000;"></video>
|
|
<span>摄像头:{{item.machineName}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<vc:create path="property/chooseCamera"></vc:create>
|
|
</div> |