From fe21d23b147ed5cec22b4f76a88840b05495d4ad Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 18 六月 2022 22:33:59 +0800
Subject: [PATCH] 2022-06-18

---
 src/tabviews/zshare/actionList/printbutton/index.jsx |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/tabviews/zshare/actionList/printbutton/index.jsx b/src/tabviews/zshare/actionList/printbutton/index.jsx
index cf92e72..5d35f3c 100644
--- a/src/tabviews/zshare/actionList/printbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/printbutton/index.jsx
@@ -320,9 +320,9 @@
               // 绯荤粺鎵撳嵃鏁版嵁锛屾牎楠宒ata瀛楁
               if (btn.verify.printMode !== 'custom' && (!cell.data || cell.data.length === 0)) return
 
-              cell.templateID = baseTemp
-              cell.printType = baseType
-              cell.printCount = 0
+              let templateID = baseTemp
+              let printType = baseType
+              let printCount = 0
 
               Object.keys(cell).forEach(key => {
                 if (!cell[key]) return
@@ -330,14 +330,18 @@
                 let _key = key.toLowerCase()
 
                 if (_key === 'templateid') {
-                  cell.templateID = cell[key]
+                  templateID = cell[key]
                 } else if (_key === 'printtype') {
-                  cell.printType = cell[key]
+                  printType = cell[key]
                 } else if (_key === 'printcount') {
-                  cell.printCount = +cell[key]
+                  printCount = +cell[key]
                 }
               })
 
+              cell.templateID = templateID
+              cell.printType = printType
+              cell.printCount = printCount
+
               if (isNaN(cell.printCount) || cell.printCount < 1) {
                 cell.printCount = baseCount
               }

--
Gitblit v1.8.0