fix:增加流量最大1024限制
This commit is contained in:
@@ -899,7 +899,7 @@ const local: any = {
|
|||||||
delete: 'Delete',
|
delete: 'Delete',
|
||||||
hour: 'Hour',
|
hour: 'Hour',
|
||||||
second:'s',
|
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',
|
rejduration: 'Please enter a duration value greater than 0',
|
||||||
rejclient: 'Please enter a device number greater than 0',
|
rejclient: 'Please enter a device number greater than 0',
|
||||||
idnull: 'Edit ID cannot be empty',
|
idnull: 'Edit ID cannot be empty',
|
||||||
|
|||||||
@@ -899,7 +899,7 @@ const local:any = {
|
|||||||
delete:'删除',
|
delete:'删除',
|
||||||
hour:'小时',
|
hour:'小时',
|
||||||
second:'秒',
|
second:'秒',
|
||||||
rejtraffic:'请输入大于0的流量值',
|
rejtraffic:'请输入大于0小于1025的流量值',
|
||||||
rejduration:'请输入大于0的时长值',
|
rejduration:'请输入大于0的时长值',
|
||||||
rejclient:'请输入大于0的设备数',
|
rejclient:'请输入大于0的设备数',
|
||||||
idnull:'编辑ID不能为空',
|
idnull:'编辑ID不能为空',
|
||||||
|
|||||||
@@ -89,6 +89,7 @@
|
|||||||
v-model:value="formState.traffic"
|
v-model:value="formState.traffic"
|
||||||
:placeholder="t('page.package.pletraffic')"
|
:placeholder="t('page.package.pletraffic')"
|
||||||
:min="1"
|
:min="1"
|
||||||
|
:max="1024"
|
||||||
:precision="0"
|
:precision="0"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
/>
|
/>
|
||||||
@@ -502,7 +503,7 @@ const handleOk = async () => {
|
|||||||
: 0;
|
: 0;
|
||||||
|
|
||||||
const duration = formState.value.durationEnable
|
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;
|
: 0;
|
||||||
|
|
||||||
if (isEdit.value) {
|
if (isEdit.value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user