Commit dc646b8c authored by anxixi's avatar anxixi

修改bp最大限制

parent 2c12baeb
......@@ -676,7 +676,7 @@
if(this.formData.shareLimit.length>3)this.formData.shareLimit=this.formData.shareLimit.slice(0,3);
this.formData.shareLimit=this.formData.shareLimit.replace(/\D/g,'');
}else if(state == 4){
if(this.contactsform.fieldLength.length>3)this.contactsform.fieldLength=this.contactsform.fieldLength.slice(0,3);
if(this.contactsform.fieldLength.length>3)this.contactsform.fieldLength=this.contactsform.fieldLength.slice(0,2);
this.contactsform.fieldLength=this.contactsform.fieldLength.replace(/\D/g,'');
}else if(state == 5){
if(this.formData.questionLimit.length>2)this.formData.questionLimit=this.formData.questionLimit.slice(0,2);
......@@ -1000,7 +1000,7 @@
//添加自定义字段
subcontacts(){
if(this.contactsform.fieldType == 9 || this.contactsform.fieldType == 10){
if(this.contactsform.fieldLength == '' || this.contactsform.fieldLength < 1 || this.contactsform.fieldLength > 100){
if(this.contactsform.fieldLength == '' || this.contactsform.fieldLength < 1 || this.contactsform.fieldLength > 50){
this.$message.error(this.$t('pubactivities.sizeincorrectly'));
return;
}
......@@ -1030,7 +1030,7 @@
},
//修改自定义字段
editcontacts(){
if(this.contactsform.fieldLength == '' || this.contactsform.fieldLength < 1 || this.contactsform.fieldLength > 100){
if(this.contactsform.fieldLength == '' || this.contactsform.fieldLength < 1 || this.contactsform.fieldLength > 50){
this.$message.error(this.$t('pubactivities.sizeincorrectly'));
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment