king
2023-07-19 570fb91da979c5fe6b8b78e534106fdd9b5270ee
2023-07-19
1个文件已修改
8 ■■■■ 已修改文件
src/tabviews/zshare/actionList/exceloutbutton/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)
              }
            }