zouyu
2026-05-07 b0d4df5f39525ae7fe252e8ee65d85fd71dca721
src/utils/excelFountion.js
@@ -46,7 +46,6 @@
    let min = null;
    if (val && val.length > 0) {
      val = val.filter((item) => item != null && item !== "");
      // console.log(val)
      if (val.length > 0) {
        min = Math.min(...val);
      }
@@ -247,7 +246,7 @@
function getABCList(f) {
  try {
    let regex = /[=\+\-\*\%\(\)\/\^\s]/g;
    let fouList = ["SUM", "MAX", "MIN", "AVERAGE", "ABS"];
    let fouList = ["SUM", "MAX", "MIN", "AVERAGE", "ABS","SQRT"];
    f = f
      .replace(regex, ",")
      .replace(new RegExp('"&', "g"), "")
@@ -255,7 +254,6 @@
    fouList.forEach((item) => {
      f = f.replace(new RegExp(item, "g"), "");
    });
    // console.log('f',f)
    let arr = f.split(",").filter((item) => {
      return (
        item && /[a-zA-Z]/.test(item) && item != "undefined" && item != "null"