修改 新增立减金商品提交后进入编辑页面,修改领取时间段再次提交并进入编辑页面,之前修改的领取时间未生效

This commit is contained in:
wangsongsole 2022-06-17 11:02:10 +08:00
parent bba7af35b9
commit a9ff8e1171
1 changed files with 4 additions and 0 deletions

View File

@ -135,6 +135,7 @@ export default class addKnockGold extends Component {
this.setState({ model: model }) this.setState({ model: model })
} }
this.getUserSelectList() this.getUserSelectList()
this.getTimeDiff()
} }
/* 编辑回显 */ /* 编辑回显 */
@ -944,6 +945,9 @@ export default class addKnockGold extends Component {
<RadioGroup <RadioGroup
onChange={({ target }) => { onChange={({ target }) => {
this.onHandleChange(target.value, 'timer_type') this.onHandleChange(target.value, 'timer_type')
if (target.value === '1') {
this.onHandleChange('', 'timer')
}
}} }}
disabled={this.props?.data?.id ? true : false} disabled={this.props?.data?.id ? true : false}
value={this.state.model.timer_type}> value={this.state.model.timer_type}>