周期次数等于绑定数

This commit is contained in:
zhangguoping 2024-10-31 14:55:58 +08:00
parent abdfdd862c
commit cb476c8f1b
1 changed files with 6 additions and 1 deletions

View File

@ -293,6 +293,11 @@ export default class acclist extends React.Component {
Notify.error("请输入接口调取后有效期") Notify.error("请输入接口调取后有效期")
return false return false
} }
for (let i = 0; i < this.state.distdata.length; i++) {
if(String(this.state.distdata[i].period_type) != '1' && this.state.distdata[i].period_num != this.state.distdata[i].restrict){
return Notify.error(`兑换码绑定数必须等于周期次数`)
}
}
// 兑换码 // 兑换码
if (this.props.keyType === 1) { if (this.props.keyType === 1) {
if (this.refs.form1.validator()) { if (this.refs.form1.validator()) {
@ -1628,7 +1633,7 @@ export default class acclist extends React.Component {
</Button> </Button>
)} )}
</FormItem> </FormItem>
<FormItem labelname="绑定对象1" prop="grid"> <FormItem labelname="绑定对象" prop="grid">
<Grid <Grid
headBackgroud="#f9fafc" headBackgroud="#f9fafc"
isShowPageBar={false} isShowPageBar={false}