first commit
This commit is contained in:
41
WebRoot/jsp/report/reportTemplateView.jsp
Normal file
41
WebRoot/jsp/report/reportTemplateView.jsp
Normal file
@ -0,0 +1,41 @@
|
||||
<%@ 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">
|
||||
var exportByTypeFun = function(type) {
|
||||
window.location.href = ext.contextPath + "/report/reportTemplate/exportReportTemplate.do?id=${param.id}&tbName=${param.tbName}&type="+type;
|
||||
};
|
||||
$(function() {
|
||||
$('#reportIframe').attr("src",ext.contextPath +"/report/reportTemplate/showReportTemplate.do?id=${param.id}&tbName=${param.tbName}");
|
||||
})
|
||||
</script>
|
||||
<div class="modal fade" id="subModal_report">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content ">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">报表模板</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default btn-sm" onclick="exportByTypeFun('pdf');"><i class="fa fa-file-pdf-o"></i>导出PDF</button>
|
||||
<button type="button" class="btn btn-default btn-sm" onclick="exportByTypeFun('excel');"><i class="fa fa-file-excel-o"></i>导出Excel</button>
|
||||
</div>
|
||||
<iframe id='reportIframe' style="width:100%;height:440px" frameborder="0"></iframe>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user