From 570fb91da979c5fe6b8b78e534106fdd9b5270ee Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 19 七月 2023 20:46:05 +0800 Subject: [PATCH] 2023-07-19 --- src/tabviews/zshare/actionList/exceloutbutton/index.jsx | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx index 4a41436..de6b554 100644 --- a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx +++ b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx @@ -606,13 +606,13 @@ columns.forEach((col, i) => { let val = item[col.Column] - if (typeof(val) === 'number') { + if (col.type === 'number' && typeof(val) === 'number') { if (col.abs === 'true') { val = Math.abs(val) } if (col.round) { val = Math.round(val * col.round) / col.round - val = val.toFixed(col.decimal) + val = +val.toFixed(col.decimal) } } @@ -695,13 +695,13 @@ columns.forEach((col, i) => { let val = item[col.Column] - if (typeof(val) === 'number') { + if (col.type === 'number' && typeof(val) === 'number') { if (col.abs === 'true') { val = Math.abs(val) } if (col.round) { val = Math.round(val * col.round) / col.round - val = val.toFixed(col.decimal) + val = +val.toFixed(col.decimal) } } -- Gitblit v1.8.0