diff --git a/src/components/Common/commonBusiness.js b/src/components/Common/commonBusiness.js index df203cb..97e96ef 100644 --- a/src/components/Common/commonBusiness.js +++ b/src/components/Common/commonBusiness.js @@ -1828,11 +1828,11 @@ export function getCharConfig(name, charType, dataID, order, width, height) { export function validatePramsNotEmpty(props) { let result = true; - const fieldNotNull = commonFunc.showLocalMessage(this.props, 'fieldNotNull', '字段不能为空'); + const fieldNotNull = commonFunc.showLocalMessage(props, 'fieldNotNull', '字段不能为空'); - const fieldNotZero = commonFunc.showLocalMessage(this.props, 'fieldNotZero', '字段不能为0'); + const fieldNotZero = commonFunc.showLocalMessage(props, 'fieldNotZero', '字段不能为0'); - const errorMessage = commonFunc.showLocalMessage(this.props, 'errorMessage', '错误提示'); + const errorMessage = commonFunc.showLocalMessage(props, 'errorMessage', '错误提示'); const allTableConfig = commonFunc.getAllTableConfig(props);