后端返回的数据类型为 array[string]类型,因为前端使用dataV插件的轮播表,所以需要转化为array[array]类型的数据
let arr = []
res.data.rows.forEach(item => {
if(item.phone){
item.phone = this.mobileFilter(item.phone)
}
arr.push([item.deptName,item.phone,item.schoolTotal])
});
this.config.data = Object.values(arr)