**实现二维数组的搜索功能 **
computed: {
...mapState(['login']),
filteredhelps:function(){//实时搜索
let newArr = [];
//JSON.parse(JSON.stringify(obj))实现深拷贝,避免改变原数组
this.deviceAllDataCopy=JSON.parse(JSON.stringify(this.deviceAllData));
this.deviceAllDataCopy.map((item,index) => {
newArr[index] = item;
newArr[index].devices = item.devices.filter(
items => items.imei.match(this.keyword))
})
return newArr
},
},