|
@@ -232,7 +232,7 @@
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="activityModel.participationLimit"
|
|
v-model="activityModel.participationLimit"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
- maxlength="20"
|
|
|
|
|
|
|
+ maxlength="5"
|
|
|
@input="handlePositiveIntegerInput('participationLimit', $event)"
|
|
@input="handlePositiveIntegerInput('participationLimit', $event)"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -250,14 +250,14 @@
|
|
|
v-if="activityModel.rewardType === 'VOUCHER'"
|
|
v-if="activityModel.rewardType === 'VOUCHER'"
|
|
|
v-model="activityModel.voucherQuantity"
|
|
v-model="activityModel.voucherQuantity"
|
|
|
placeholder="请输入发放数量"
|
|
placeholder="请输入发放数量"
|
|
|
- maxlength="20"
|
|
|
|
|
|
|
+ maxlength="5"
|
|
|
@input="handlePositiveIntegerInput('voucherQuantity', $event)"
|
|
@input="handlePositiveIntegerInput('voucherQuantity', $event)"
|
|
|
/>
|
|
/>
|
|
|
<el-input
|
|
<el-input
|
|
|
v-else
|
|
v-else
|
|
|
v-model="activityModel.couponQuantity"
|
|
v-model="activityModel.couponQuantity"
|
|
|
placeholder="请输入发放数量"
|
|
placeholder="请输入发放数量"
|
|
|
- maxlength="20"
|
|
|
|
|
|
|
+ maxlength="5"
|
|
|
@input="handlePositiveIntegerInput('couponQuantity', $event)"
|
|
@input="handlePositiveIntegerInput('couponQuantity', $event)"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -467,8 +467,8 @@ const rules = reactive({
|
|
|
callback(new Error("用户可参与次数必须为正整数"));
|
|
callback(new Error("用户可参与次数必须为正整数"));
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (numValue > 9999) {
|
|
|
|
|
- callback(new Error("用户可参与次数必须小于9999"));
|
|
|
|
|
|
|
+ if (numValue > 99999) {
|
|
|
|
|
+ callback(new Error("用户可参与次数必须小于99999"));
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|