parent
b6d7cdad31
commit
e5ac4e32ab
|
@ -1 +1 @@
|
|||
Subproject commit 926510dd4d46ce2534ad659f225392ac1fe4dda8
|
||||
Subproject commit 344bbf808bafa4ee01b97048931e77acd39fe58d
|
|
@ -696,6 +696,16 @@ export default {
|
|||
if (line.length < 3) {
|
||||
return;
|
||||
}
|
||||
let ipRe = new RegExp("^[0-9a-zA-Z,\.]*$");
|
||||
if(!ipRe.test(line[1])){
|
||||
this.$message.warning("ip"+this.$t("commons.formatErr"));
|
||||
return;
|
||||
}
|
||||
let numRe = new RegExp("^[0-9]*$");
|
||||
if(!numRe.test(line[2])){
|
||||
this.$message.warning("Port"+this.$t("commons.type_of_num"));
|
||||
return;
|
||||
}
|
||||
keyValues.push({
|
||||
name: line[0],
|
||||
ip: line[1],
|
||||
|
|
|
@ -113,7 +113,7 @@ export default {
|
|||
}
|
||||
if(val && this.selfQuantity){
|
||||
if(typeof this.selfQuantity!=='number'&&isNaN(parseInt(this.selfQuantity))){
|
||||
this.$warning(this.$t('api_test.request.time')+this.$t('commons.type_of_num'));
|
||||
this.$warning(this.$t('api_test.request.time')+this.$t('commons.type_of_integer'));
|
||||
this.selfChoose = false;
|
||||
return false;
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ export default {
|
|||
return false;
|
||||
}
|
||||
if(Number(this.selfQuantity)>parseInt(this.selfQuantity)){
|
||||
this.$warning(this.$t('api_test.request.time')+this.$t('commons.type_of_num'));
|
||||
this.$warning(this.$t('api_test.request.time')+this.$t('commons.type_of_integer'));
|
||||
this.selfChoose = false;
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -245,7 +245,8 @@ export default {
|
|||
cancel_follow_success: "Cancel Follow Success",
|
||||
generate_test_data: "Generate test data",
|
||||
type: "Type",
|
||||
type_of_num: "Please enter an integer type",
|
||||
type_of_num: "Please enter an number type",
|
||||
type_of_integer: "Please enter an integer type",
|
||||
validity_period: 'Validity Period',
|
||||
please_select_a_deadline: "Please select a deadline",
|
||||
relationship: {
|
||||
|
|
|
@ -245,7 +245,8 @@ export default {
|
|||
follow_success: "关注成功",
|
||||
cancel_follow_success: "取消关注成功",
|
||||
type: "类型",
|
||||
type_of_num: "请输入整数类型",
|
||||
type_of_integer: "请输入整数类型",
|
||||
type_of_num: "请输入数字类型",
|
||||
validity_period: '有效期',
|
||||
please_select_a_deadline: "请选择截止时间",
|
||||
relationship: {
|
||||
|
|
|
@ -245,7 +245,8 @@ export default {
|
|||
follow_success: "關註成功",
|
||||
cancel_follow_success: "取消關註成功",
|
||||
type: "類型",
|
||||
type_of_num:"請輸入整數類型",
|
||||
type_of_integer: "請輸入整數類型",
|
||||
type_of_num:"請輸入數字類型",
|
||||
validity_period:'有效期',
|
||||
please_select_a_deadline: "請選擇截止時間",
|
||||
relationship: {
|
||||
|
|
Loading…
Reference in New Issue