|
@@ -3229,12 +3229,10 @@ func (c *ExcelInfoController) EditExcelRule() {
|
|
br.Msg = "应用选区不能为空"
|
|
br.Msg = "应用选区不能为空"
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if req.FontColor == "" {
|
|
|
|
- br.Msg = "字体颜色不能为空"
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if req.BackgroundColor == "" {
|
|
|
|
- br.Msg = "背景颜色不能为空"
|
|
|
|
|
|
+ req.BackgroundColor = strings.TrimSpace(req.BackgroundColor)
|
|
|
|
+ req.FontColor = strings.TrimSpace(req.FontColor)
|
|
|
|
+ if req.FontColor == "" && req.BackgroundColor == "" {
|
|
|
|
+ br.Msg = "字体颜色或背景颜色不能同时为空"
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if req.RuleType == 3 && req.RightValue == "" {
|
|
if req.RuleType == 3 && req.RightValue == "" {
|