|
|
@@ -520,7 +520,9 @@ |
|
|
this.searchItem.tablename = this.tablename; |
|
|
this.searchItem.tablename = this.tablename; |
|
|
// const pattern = new RegExp('[[\\]"\';]'); |
|
|
// const pattern = new RegExp('[[\\]"\';]'); |
|
|
Object.keys(this.searchItem).forEach((key) => { |
|
|
Object.keys(this.searchItem).forEach((key) => { |
|
|
|
|
|
if (this.searchItem[key] !== null) { |
|
|
this.searchItem[key] = this.searchItem[key].replaceAll('"', '').replaceAll('\'', '').replaceAll(';', '').replaceAll('\\', ''); |
|
|
this.searchItem[key] = this.searchItem[key].replaceAll('"', '').replaceAll('\'', '').replaceAll(';', '').replaceAll('\\', ''); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
this.$axios.post(`/search`, this.searchItem).then((resp) => { |
|
|
this.$axios.post(`/search`, this.searchItem).then((resp) => { |
|
|
delete this.searchItem.tablename; |
|
|
delete this.searchItem.tablename; |
|
|
@@ -538,6 +540,7 @@ |
|
|
this.haveSearch = true; |
|
|
this.haveSearch = true; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.getInventories(); |
|
|
this.getInventories(); |
|
|
}, |
|
|
}, |
|
|
async clearSearchItem() { |
|
|
async clearSearchItem() { |
|
|
@@ -545,6 +548,7 @@ |
|
|
Object.keys(this.searchItem).forEach(function(key){ |
|
|
Object.keys(this.searchItem).forEach(function(key){ |
|
|
self.searchItem[key] = null; |
|
|
self.searchItem[key] = null; |
|
|
}); |
|
|
}); |
|
|
|
|
|
console.log(this.searchItem); |
|
|
this.getInventories(); |
|
|
this.getInventories(); |
|
|
this.haveSearch = false; |
|
|
this.haveSearch = false; |
|
|
}, |
|
|
}, |
|
|
|