| @@ -518,10 +518,10 @@ | |||||
| }, | }, | ||||
| search() { | search() { | ||||
| this.searchItem.tablename = this.tablename; | 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) => { | this.$axios.post(`/search`, this.searchItem).then((resp) => { | ||||
| delete this.searchItem.tablename; | delete this.searchItem.tablename; | ||||
| this.items = resp.data.data; | this.items = resp.data.data; | ||||
| @@ -148,8 +148,8 @@ | |||||
| }, | }, | ||||
| search() { | search() { | ||||
| this.progress = true; | 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) => { | this.$axios.get(`/search/search?text=${this.text}`).then((resp) => { | ||||
| Object.keys(resp.data.data).forEach(async (key) => { | Object.keys(resp.data.data).forEach(async (key) => { | ||||
| await this.getHeaders(key); | await this.getHeaders(key); | ||||
| @@ -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 | server.servlet.context-path=/rms | ||||
| spring.servlet.multipart.max-file-size=100MB | spring.servlet.multipart.max-file-size=100MB | ||||