浏览代码

fix:公式显示

zqbao 5 月之前
父节点
当前提交
136cbec964
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      services/data/edb_info.go

+ 5 - 0
services/data/edb_info.go

@@ -2427,6 +2427,11 @@ func formatCalculateFormula(calculateFormula string) (ruleTitle string) {
 			} else {
 				singleFormula["公式"] = val
 			}
+			if fLen == 1 {
+				singleFormula["日期"] = "全部"
+				newCalculateFormula = append(newCalculateFormula, singleFormula)
+				break
+			}
 			date, ok := tmpCalculateFormula[i]["d"]
 			if ok {
 				var tmpDate string