From 0a379b1772ea76fe6a7a53396a3c9a614b29df1b Mon Sep 17 00:00:00 2001
From: hwh <332078369@qq.com>
Date: 星期五, 14 六月 2024 17:00:13 +0800
Subject: [PATCH] 1

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

diff --git a/HTML_09/js/public.js b/HTML_09/js/public.js
index 7b8cf0d..f3aef70 100644
--- a/HTML_09/js/public.js
+++ b/HTML_09/js/public.js
@@ -264,4 +264,39 @@
       });
     });
   }  
+}
+//娣辨嫹璐�
+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, 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