2
0

fix:增加流量最大1024限制

This commit is contained in:
zhongzm
2025-02-11 16:39:24 +08:00
parent 06dcb2f36b
commit e74db62c27
3 changed files with 4 additions and 3 deletions

View File

@@ -899,7 +899,7 @@ const local: any = {
delete: 'Delete',
hour: 'Hour',
second:'s',
rejtraffic: 'Please enter a traffic value greater than 0',
rejtraffic: 'Please enter a traffic value greater than 0 and less than 1025',
rejduration: 'Please enter a duration value greater than 0',
rejclient: 'Please enter a device number greater than 0',
idnull: 'Edit ID cannot be empty',

View File

@@ -899,7 +899,7 @@ const local:any = {
delete:'删除',
hour:'小时',
second:'秒',
rejtraffic:'请输入大于0的流量值',
rejtraffic:'请输入大于0小于1025的流量值',
rejduration:'请输入大于0的时长值',
rejclient:'请输入大于0的设备数',
idnull:'编辑ID不能为空',

View File

@@ -89,6 +89,7 @@
v-model:value="formState.traffic"
:placeholder="t('page.package.pletraffic')"
:min="1"
:max="1024"
:precision="0"
style="width: 100%"
/>
@@ -502,7 +503,7 @@ const handleOk = async () => {
: 0;
const duration = formState.value.durationEnable
? Math.round(convertTime(formState.value.duration, formState.value.durationUnit, ''))
? Math.round(convertTime(formState.value.duration, formState.value.durationUnit, 'second'))
: 0;
if (isEdit.value) {