Vue中针对某些列进行搜索(对列转换大小写)
getSearchInfo() { let search = this.search if (search) { this.currpage = 1 this.currentPage = 1 return this.tableData.filter(data => { return Object.keys(data).some(key => { if (['name','value'].includes(key)) { return data[key].toLowerCase().indexOf(search.toLowerCase()) > -1 } }) }) } return this.tableData },