|
|
|
@@ -518,10 +518,10 @@ |
|
|
|
}, |
|
|
|
search() { |
|
|
|
this.searchItem.tablename = this.tablename; |
|
|
|
// const pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]"); |
|
|
|
// Object.keys(this.searchItem).forEach((key) => { |
|
|
|
// this.searchItem[key] = this.searchItem[key].replace(pattern, ''); |
|
|
|
// }); |
|
|
|
// const pattern = new RegExp('[[\\]"\';]'); |
|
|
|
Object.keys(this.searchItem).forEach((key) => { |
|
|
|
this.searchItem[key] = this.searchItem[key].replaceAll('"', '').replaceAll('\'', '').replaceAll(';', '').replaceAll('\\', ''); |
|
|
|
}); |
|
|
|
this.$axios.post(`/search`, this.searchItem).then((resp) => { |
|
|
|
delete this.searchItem.tablename; |
|
|
|
this.items = resp.data.data; |
|
|
|
|