Jelajahi Sumber

Merge branch 'bzq1/excel_rule_decimal_master_cf' of eta_server/eta_api into debug

鲍自强 8 bulan lalu
induk
melakukan
1f86464e7c
1 mengubah file dengan 2 tambahan dan 6 penghapusan
  1. 2 6
      controllers/data_manage/excel/excel_info.go

+ 2 - 6
controllers/data_manage/excel/excel_info.go

@@ -3164,12 +3164,8 @@ func (c *ExcelInfoController) AddExcelRule() {
 		br.Msg = "应用选区不能为空"
 		return
 	}
-	if req.FontColor == "" {
-		br.Msg = "字体颜色不能为空"
-		return
-	}
-	if req.BackgroundColor == "" {
-		br.Msg = "背景颜色不能为空"
+	if req.FontColor == "" && req.BackgroundColor == "" {
+		br.Msg = "字体颜色和背景颜色不能同时为空"
 		return
 	}
 	if req.RuleType == 3 && req.RightValue == "" {