first commit
This commit is contained in:
43
WebRoot/jsp/work/cameraDetail.jsp
Normal file
43
WebRoot/jsp/work/cameraDetail.jsp
Normal file
@ -0,0 +1,43 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8"%>
|
||||
<style type="text/css">
|
||||
.select2-container .select2-selection--single{
|
||||
height:34px;
|
||||
line-height: 34px;
|
||||
}
|
||||
.select2-selection__arrow{
|
||||
margin-top:3px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function doClose() {
|
||||
$('#cameraIframe').attr("src","about:blank");
|
||||
closeModal('subModal');
|
||||
}
|
||||
$(function() {
|
||||
switch('${param.type}'){
|
||||
case 'dahua':
|
||||
$('#cameraIframe').attr("src",ext.contextPath +"/work/camera/cameraview_dahua.do?id=${param.id}");
|
||||
break;
|
||||
default:
|
||||
$('#cameraIframe').attr("src",ext.contextPath +"/work/camera/cameraview.do?id=${param.id}");
|
||||
}
|
||||
|
||||
})
|
||||
</script>
|
||||
<div class="modal fade" id="subModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">实时预览</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<iframe id='cameraIframe' style="width:100%;height:440px" frameborder="0"></iframe>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" onclick="doClose()">关闭</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user