From cae008d8286b7ee846eb91e79350a9c57166882d Mon Sep 17 00:00:00 2001 From: hwh <332078369@qq.com> Date: 星期三, 12 六月 2024 15:41:28 +0800 Subject: [PATCH] 打印 --- HTML_09/js/public.js | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/HTML_09/js/public.js b/HTML_09/js/public.js index baf1024..f3aef70 100644 --- a/HTML_09/js/public.js +++ b/HTML_09/js/public.js @@ -281,4 +281,22 @@ } } return target; -} \ No newline at end of file +} + +//璋冪敤鎵撳嵃 +function openPrintDialog(printData, printType){ + layer.open({ + type: 2, + title: '鎵撳嵃', + // content: '../../js/hiprint/custom.html', + content: '/views/SystemSettings/PrintModule.html', + maxmin: true, + area: ['100%', '100%'], + data: printData, + success: function (layero, index) { + var body = layer.getChildFrame('body',index); + body.find('#printData').val(JSON.stringify(printData)); + body.find('#printType').val(printType); + } + }); +} \ No newline at end of file -- Gitblit v1.8.0