// 给相同的增加rowSpan
function dealWithData(list){
if(!list || !Array.isArray(list) || list.length === 0){
return []
}
list = [...list]
let i = 0, j = 1 , id = list[i].foodId;
for(j; j < list.length; j++){
if(list[j].foodId !== id){
list[i].rowSpan = (j - i)
i = j;
id = list[i].foodId
}
}
return list
}