|
@@ -1830,14 +1830,22 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- if(!that.appAgentForm.liveRate){
|
|
|
+ if(that.appAgentForm.liveRate == undefined || that.appAgentForm.liveRate == null){
|
|
|
that.$modal.msgError("直播分红不能为空!");
|
|
|
return;
|
|
|
}
|
|
|
- if(!that.appAgentForm.dividendGuaranteeRate){
|
|
|
+ if(that.appAgentForm.dividendGuaranteeRate == undefined || that.appAgentForm.dividendGuaranteeRate == null){
|
|
|
that.$modal.msgError("保底分红不能为空!");
|
|
|
return;
|
|
|
}
|
|
|
+ if(that.appAgentForm.dividendGuaranteeRate < 0){
|
|
|
+ that.$modal.msgError("保底分红不能小于0!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(that.appAgentForm.liveRate < 0){
|
|
|
+ that.$modal.msgError("直播分红不能小于零!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: '加载中',
|