域名统计添加一个打印按钮用于演示

This commit is contained in:
wangxin
2018-12-18 15:17:22 +06:00
parent 9d13f4346c
commit 9aa60164cf

View File

@@ -12,8 +12,8 @@
<script src="${ctxStatic }/global/plugins/tableExport-3.3.13/tableexport.js"></script>
</head>
<style type="text/css">
@page { size: landscape; }
</style>
<body>
@@ -167,6 +167,9 @@
<sys:message content="${message}" type="${messageType }" />
<div class="row">
<div class="pull-right">
<button type="button" class="btn btn-default" id="print-btn" >
<i class="fa fa-download"> <spring:message code="print" /></i>
</button>
<button type="button" class="btn btn-default" id="export-btn" >
<i class="fa fa-download"> <spring:message code="export" /></i>
</button>
@@ -301,6 +304,9 @@
$("caption").remove();
getPageData(1, 10);
});
$("#print-btn").click(function() {
window.print();
});
/**
* 获取本页数据
* @param currentPage 当前页数 【初次查数据默认第1页】