Browse Source

尾行合并取小数点后两位

002390 1 year ago
parent
commit
2a30c4f76c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/super-table/index.vue

+ 1 - 1
src/components/super-table/index.vue

@@ -299,7 +299,7 @@ export default {
               return '';
               return '';
             }
             }
           }, 0);
           }, 0);
-          sums[index];
+          sums[index] = sums[index].toFixed(2) // 保留2位小数,解决小数合计列;
           }
           }
 				});
 				});
 				return sums;
 				return sums;