取消正则校验

master
guoshuang 7 months ago
parent be5feb77c7
commit 9bd25616e4

@ -142,7 +142,7 @@ export default class LoginPage extends BasePage {
// console.log('Version////', this.Version);
}
///******************
version = '0.0.154'; //
version = '0.0.155'; //
//version = '0.0.14'; //
//*************** false true ****************
//isTest = true;

@ -694,14 +694,14 @@ export default class PurchaseWHSRM extends BasePage {
});
return;
}
const regex = /^[a-zA-Z0-9.]+$/; //
const inputValue = this.tagsvalue; //
if (!regex.test(inputValue)) {
//
this.tagsvalue = inputValue.replace(/[^a-zA-Z0-9.]/g, '');
} else {
this.tagsvalue = inputValue; //
}
// const regex = /^[a-zA-Z0-9.]+$/; //
// const inputValue = this.tagsvalue; //
// if (!regex.test(inputValue)) {
// //
// this.tagsvalue = inputValue.replace(/[^a-zA-Z0-9.]/g, '');
// } else {
// this.tagsvalue = inputValue; //
// }
console.log(this.tagslist, 'sadasdww');
let a: any = {};
a.value = this.tagsvalue;
@ -2160,15 +2160,15 @@ export default class PurchaseWHSRM extends BasePage {
this.formdata.quality = event;
}
changeInputtags(event) {
// this.tagsvalue = event;
const regex = /^[a-zA-Z0-9.]+$/; //
const inputValue = event; //
if (!regex.test(inputValue)) {
//
this.tagsvalue = inputValue.replace(/[^a-zA-Z0-9.]/g, '');
} else {
this.tagsvalue = inputValue; //
}
this.tagsvalue = event;
// const regex = /^[a-zA-Z0-9.]+$/; //
// const inputValue = event; //
// if (!regex.test(inputValue)) {
// //
// this.tagsvalue = inputValue.replace(/[^a-zA-Z0-9.]/g, '');
// } else {
// this.tagsvalue = inputValue; //
// }
}
//
validateInputtags(event) {

Loading…
Cancel
Save