From c20bd338ddf092a3d9be15d68652d20b9645437d Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期二, 22 十月 2024 15:08:00 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/mat/mat.js | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/static/js/mat/mat.js b/src/main/webapp/static/js/mat/mat.js index 2805440..ac98ca5 100644 --- a/src/main/webapp/static/js/mat/mat.js +++ b/src/main/webapp/static/js/mat/mat.js @@ -5,9 +5,9 @@ var cols = [ {type: 'checkbox'} ,{field: 'tagId$', align: 'center',title: '褰掔被', templet: '#tagTpl'} - ,{field: 'store_max', align: 'center',title: '搴撳瓨涓婇檺'} - ,{field: 'store_min', align: 'center',title: '搴撳瓨涓嬮檺'} - ,{field: 'store_max_date', align: 'center',title: '搴撻緞涓婇檺(澶�)'} + // ,{field: 'store_max', align: 'center',title: '搴撳瓨涓婇檺'} + // ,{field: 'store_min', align: 'center',title: '搴撳瓨涓嬮檺'} + // ,{field: 'store_max_date', align: 'center',title: '搴撻緞涓婇檺(澶�)'} ]; cols.push.apply(cols, matCols); cols.push( @@ -333,10 +333,12 @@ for (let i=0;i<res.data.length;i++){ var templateDom = $("#templatePreview"+templateNo); var className = templateDom.attr("class"); + var param = "缂栫爜:"+res.data[i].matnr+";鍚嶇О:"+res.data[i].maktx+";瑙勬牸:"+res.data[i].specs; + var encodeUrl = encodeURIComponent(param); if (className === 'template-barcode') { - res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=1¶m="+res.data[i].matnr; + res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=1¶m="+encodeUrl; } else { - res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=2¶m="+res.data[i].matnr; + res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=2¶m="+encodeUrl; } } var tpl = templateDom.html(); -- Gitblit v1.9.1