diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index 05ff10f6..33227e70 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -708,16 +708,14 @@ export default class addKnockGold extends Component { /> {this.state.model.channel == 1 ? ( - + { - this.onHandleChange(value, 'temp_no ') + console.log(value) + this.onHandleChange(value, 'temp_no') }} onClearItem={() => { - this.onHandleChange('', 'temp_no ') + this.onHandleChange('', 'temp_no') }} disabled={this.props?.data?.id ? true : false} value={this.state.model.temp_no} diff --git a/src/components/knockGold/rules.js b/src/components/knockGold/rules.js index 84062736..c94be39a 100644 --- a/src/components/knockGold/rules.js +++ b/src/components/knockGold/rules.js @@ -11,7 +11,7 @@ export default { } ], /* 模板编号 */ - templateNumber: [ + temp_no: [ { type: 'required', message: '请输入模板编号' }, { type: 'regExp',