From 8ad6879cfbaf02a1900d5339da3b675ce4520d73 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 08 六月 2020 13:00:54 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/matCode/matCode.js |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/static/js/matCode/matCode.js b/src/main/webapp/static/js/matCode/matCode.js
index b5032e6..98223c5 100644
--- a/src/main/webapp/static/js/matCode/matCode.js
+++ b/src/main/webapp/static/js/matCode/matCode.js
@@ -316,6 +316,32 @@
         }
     });
 
+    function startPrint(template, data) {
+        let param = [];
+        param.push("1902980-11/12");
+        console.log(param)
+        $.ajax({
+            url: baseUrl+"/macCode/print/auth",
+            headers: {'token': localStorage.getItem('token')},
+            data: {param: param},
+            method: 'POST',
+            async: false,
+            success: function (res) {
+                if (res.code === 200){
+                    console.log(res.data);
+
+
+                } else if (res.code === 403){
+                    top.location.href = baseUrl;
+                }else {
+                    layer.msg(res.msg)
+                }
+            }
+        })
+        console.log(data.field);
+        // $('#template-preview-1').print();
+    }
+
     // 寮�濮嬫墦鍗�
     form.on('submit(doPrint)', function (data) {
         let param = [];

--
Gitblit v1.9.1