|
|
|
@ -310,8 +310,12 @@ export default { |
|
|
|
this.query1.rule_name='' |
|
|
|
}, |
|
|
|
addRule(){ |
|
|
|
if(parseFloat(this.query1.ratio[0].ratio)+parseFloat(this.query1.ratio[2].ratio)!=100){ |
|
|
|
this.$message.error('授权方和平台方的加起来比列要等于100'); |
|
|
|
if(this.query1.rule_name==''){ |
|
|
|
this.$message.error('规则名称不能为空'); |
|
|
|
return |
|
|
|
} |
|
|
|
if(parseFloat(this.query1.ratio[1].ratio)+parseFloat(this.query1.ratio[2].ratio)!=100){ |
|
|
|
this.$message.error('授权方和平台方的比例加起来要等于100'); |
|
|
|
return |
|
|
|
} |
|
|
|
let data=this.query1 |
|
|
|
|