From 3989f167b217f60e6c52722a2726450e029c7800 Mon Sep 17 00:00:00 2001
From: hwh <332078369@qq.com>
Date: 星期二, 04 六月 2024 15:01:16 +0800
Subject: [PATCH] 调整打印

---
 HTML_09/js/public.js |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/HTML_09/js/public.js b/HTML_09/js/public.js
index 7b8cf0d..65df63c 100644
--- a/HTML_09/js/public.js
+++ b/HTML_09/js/public.js
@@ -264,4 +264,37 @@
       });
     });
   }  
+}
+//娣辨嫹璐�
+function deepClone(source) {
+  if (typeof source !== 'object' || source == null) {
+    return source;
+  }
+  const target = Array.isArray(source) ? [] : {};
+  for (const key in source) {
+    if (Object.prototype.hasOwnProperty.call(source, key)) {
+      if (typeof source[key] === 'object' && source[key] !== null) {
+        target[key] = deepClone(source[key]);
+      } else {
+        target[key] = source[key];
+      }
+    }
+  }
+  return target;
+} 
+
+//璋冪敤鎵撳嵃
+function openPrintDialog(printData){
+  layer.open({
+    type: 2,
+    title: '鎵撳嵃',
+    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));
+    }
+  });
 }
\ No newline at end of file

--
Gitblit v1.8.0