Ver código fonte

fix:管理规则编辑

zqbao 6 meses atrás
pai
commit
532f2b470d

+ 3 - 3
controllers/data_manage/excel/excel_info.go

@@ -3205,11 +3205,11 @@ func (c *ExcelInfoController) EditExcelRule() {
 	}
 	err = excel2.ModifyExcelRule(req, c.Lang)
 	if err != nil {
-		br.Msg = "规则添加失败"
-		br.ErrMsg = "规则添加失败,Err:" + err.Error()
+		br.Msg = "规则编辑失败"
+		br.ErrMsg = "规则编辑失败,Err:" + err.Error()
 		return
 	}
-	br.Msg = "添加成功"
+	br.Msg = "编辑成功"
 	br.Ret = 200
 	br.Success = true
 }

+ 1 - 1
services/data/excel/excel_info.go

@@ -806,7 +806,7 @@ func ModifyExcelRule(req *request.ExcelRuleMappingReq, lang string) (err error)
 	if excelInfo.RemarkEn != editExcelInfo.RemarkEn {
 		updateCols = append(updateCols, "RemarkEn")
 	}
-	if excelInfo.Scope != editExcelInfo.Scope {
+	if excelInfo.ScopeShow != editExcelInfo.ScopeShow {
 		updateCols = append(updateCols, "ScopeCoord")
 		updateCols = append(updateCols, "ScopeShow")
 	}