Parcourir la source

Merge branch 'bzq1/excel_rule_decimal_master' of eta_server/eta_api into master

鲍自强 il y a 6 mois
Parent
commit
c3b4b22563
1 fichiers modifiés avec 2 ajouts et 6 suppressions
  1. 2 6
      controllers/data_manage/excel/excel_info.go

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

@@ -3152,12 +3152,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 == "" {