From 366465d5f7cb57b83b277a4b3f481237f57a972b Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 1 Jul 2021 17:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=95=B0=E6=8D=AE=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=B0=8F=E6=95=B0=E7=82=B9=E4=BF=9D=E7=95=99=E4=BD=8D?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/x_component_process_Xform/DatatablePC.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/o2web/source/x_component_process_Xform/DatatablePC.js b/o2web/source/x_component_process_Xform/DatatablePC.js index 778e89e013..4971922228 100644 --- a/o2web/source/x_component_process_Xform/DatatablePC.js +++ b/o2web/source/x_component_process_Xform/DatatablePC.js @@ -390,12 +390,14 @@ MWF.xApplication.process.Xform.DatatablePC = new Class( var d = data.data[i]; if(d[json.id]){ tmpV = tmpV.plus(d[json.id].toFloat() || 0); - if( d[json.id].indexOf(".") > -1 ){ - pointLength = Math.max(pointLength, d[json.id].split(".")[1].length); + var v = d[json.id].toString(); + if( v.indexOf(".") > -1 ){ + pointLength = Math.max(pointLength, v.split(".")[1].length); } } } } + if( isNaN( tmpV ) ){ totalData[json.id] = ""; column.td.set("text", "" ); -- GitLab