فهرست منبع

fix:营销活动-新建评价有礼-发放数量和用户参与次数字段输入位数限制5位数

zhaohang 7 ساعت پیش
والد
کامیت
210c7b8e5e
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      src/views/operationManagement/newActivity.vue

+ 5 - 5
src/views/operationManagement/newActivity.vue

@@ -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;
           }
           }
         }
         }