foreEach多次执行回调函数,回调函数中使用return(我们的代码都在回调中)没法直接终止foreEach,只能终止单次的回调
typeFormatter: function (row, column, cellValue){
var temp="其他"
this.typeValues.forEach( item => {
if(item.value===cellValue){
temp=item.label;
}
})
return temp
},