teddyhuang 5 роки тому
джерело
коміт
68d3b01dc1
3 змінених файлів з 8 додано та 8 видалено
  1. +4
    -4
      app/src/components/Inventory.vue
  2. +2
    -2
      app/src/components/Search.vue
  3. +2
    -2
      src/main/resources/application.properties

+ 4
- 4
app/src/components/Inventory.vue Переглянути файл

@@ -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;


+ 2
- 2
app/src/components/Search.vue Переглянути файл

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


+ 2
- 2
src/main/resources/application.properties Переглянути файл

@@ -1,5 +1,5 @@
spring.profiles.active=dev
#spring.profiles.active=pro
#spring.profiles.active=dev
spring.profiles.active=pro

server.servlet.context-path=/rms
spring.servlet.multipart.max-file-size=100MB


Завантаження…
Відмінити
Зберегти