From e5fc2d92b1036aabf9ffc2c9706ed401bd9735c8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 09 九月 2021 18:14:29 +0800 Subject: [PATCH] 2021-09-09 --- src/tabviews/zshare/actionList/printbutton/index.jsx | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/actionList/printbutton/index.jsx b/src/tabviews/zshare/actionList/printbutton/index.jsx index e1ae252..95a955f 100644 --- a/src/tabviews/zshare/actionList/printbutton/index.jsx +++ b/src/tabviews/zshare/actionList/printbutton/index.jsx @@ -385,6 +385,15 @@ // 鑷畾涔夋墦鍗扮ず渚� // let defaultPrinter = printer.defaultPrinter || 'lackprinter' // let printers = {} + // let getuuid = () => { + // let uuid = [] + // let _options = '0123456789abcdefghigklmnopqrstuv' + // for (let i = 0; i < 32; i++) { + // uuid.push(_options.substr(Math.floor(Math.random() * 0x20), 1)) + // } + // uuid = uuid.join('') + // return uuid + // } // if (printer.printerTypeList && printer.printerTypeList.length > 0) { // printer.printerTypeList.forEach(cell => { // if (cell.printer) { @@ -445,7 +454,7 @@ // let _documents = [] // printdata[printer].forEach(item => { // let _cell = { - // documentID: new Date().getTime().toString(), + // documentID: getuuid(), // contents: [] // } @@ -465,7 +474,7 @@ // requestID: '', // version: '', // task: { - // taskID: new Date().getTime().toString(), + // taskID: getuuid(), // preview: false, // printer: printer, // documents: _documents -- Gitblit v1.8.0