diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index 18d49331..a9960d56 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -293,6 +293,11 @@ export default class acclist extends React.Component { Notify.error("请输入接口调取后有效期") 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.refs.form1.validator()) { @@ -1628,7 +1633,7 @@ export default class acclist extends React.Component { )} - +