mirror of https://gitee.com/y_project/RuoYi.git
单据打印示例按钮隐藏
parent
082b5d70b1
commit
6ba25e1b4a
|
@ -102,7 +102,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<div class="text-right">
|
||||
<button class="btn btn-primary" onclick="printPage()"><i class="fa fa-print"></i> 打印</button>
|
||||
<button class="btn btn-primary" onclick="printPage(this)"><i class="fa fa-print"></i> 打印</button>
|
||||
</div>
|
||||
|
||||
<div class="well m-t"><strong>注意:</strong> 请在30日内完成付款,否则订单会自动取消。
|
||||
|
@ -113,8 +113,10 @@
|
|||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script type="text/javascript">
|
||||
function printPage() {
|
||||
function printPage(obj) {
|
||||
$(obj).hide();
|
||||
window.print();
|
||||
$(obj).show();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue