feat: 统一限制最大数字输入位数为15位

pull/203/head
zhengkunwang223 2023-03-12 11:16:28 +08:00 committed by zhengkunwang223
parent 9571d82932
commit 83ca72e153
2 changed files with 5 additions and 5 deletions

View File

@ -16,15 +16,15 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('website.perserver')" prop="perserver"> <el-form-item :label="$t('website.perserver')" prop="perserver">
<el-input v-model.number="form.perserver" maxlength="10"></el-input> <el-input v-model.number="form.perserver" maxlength="15"></el-input>
<span class="input-help">{{ $t('website.perserverHelper') }}</span> <span class="input-help">{{ $t('website.perserverHelper') }}</span>
</el-form-item> </el-form-item>
<el-form-item :label="$t('website.perip')" prop="perip"> <el-form-item :label="$t('website.perip')" prop="perip">
<el-input v-model.number="form.perip" maxlength="10"></el-input> <el-input v-model.number="form.perip" maxlength="15"></el-input>
<span class="input-help">{{ $t('website.peripHelper') }}</span> <span class="input-help">{{ $t('website.peripHelper') }}</span>
</el-form-item> </el-form-item>
<el-form-item :label="$t('website.rate')" prop="rate"> <el-form-item :label="$t('website.rate')" prop="rate">
<el-input v-model.number="form.rate" maxlength="10"></el-input> <el-input v-model.number="form.rate" maxlength="15"></el-input>
<span class="input-help">{{ $t('website.rateHelper') }}</span> <span class="input-help">{{ $t('website.rateHelper') }}</span>
</el-form-item> </el-form-item>
</el-form> </el-form>

View File

@ -6,12 +6,12 @@
<el-switch v-model="form.enable" @change="updateEnable"></el-switch> <el-switch v-model="form.enable" @change="updateEnable"></el-switch>
</el-form-item> </el-form-item>
<el-form-item prop="cycle" :label="$t('website.cycle')"> <el-form-item prop="cycle" :label="$t('website.cycle')">
<el-input v-model="form.cycle" maxlength="10"> <el-input v-model="form.cycle" maxlength="15">
<template #append>{{ $t('website.seconds') }}</template> <template #append>{{ $t('website.seconds') }}</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="frequency" :label="$t('website.frequency')"> <el-form-item prop="frequency" :label="$t('website.frequency')">
<el-input v-model="form.frequency" maxlength="10"> <el-input v-model="form.frequency" maxlength="15">
<template #append>{{ $t('website.count') }}</template> <template #append>{{ $t('website.count') }}</template>
</el-input> </el-input>
</el-form-item> </el-form-item>