- 输入框搜索匹配
// noTreeList:是请求到的数组 inputValue:搜索的字段 item.name:要匹配的字段
const arr = this.noTreeList.filter(item=>{
let inputValue=new RegExp(`(.*)(${this.searchValue.split('').join(')(.*)(')})(.*)`, 'i');
return item.name.match(inputValue)
})