Ver código fonte

202104081703

master
teddyhuang 5 anos atrás
pai
commit
d391afdf48
2 arquivos alterados com 6 adições e 0 exclusões
  1. +4
    -0
      app/src/components/Inventory.vue
  2. +2
    -0
      app/src/components/Search.vue

+ 4
- 0
app/src/components/Inventory.vue Ver arquivo

@@ -518,6 +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, '');
// });
this.$axios.post(`/search`, this.searchItem).then((resp) => {
delete this.searchItem.tablename;
this.items = resp.data.data;


+ 2
- 0
app/src/components/Search.vue Ver arquivo

@@ -148,6 +148,8 @@
},
search() {
this.progress = true;
// const pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");
// this.text = this.text.replace(pattern, '');
this.$axios.get(`/search/search?text=${this.text}`).then((resp) => {
Object.keys(resp.data.data).forEach(async (key) => {
await this.getHeaders(key);


Carregando…
Cancelar
Salvar