record:从后台获取的数据
this.columns=[
{
title:'发送渠道',
dataIndex:'channel',
key:'channel',
className:'columns',
render:(text,record,index)=>{
let channel='',
if(record.channel=='1'){
channel="邮件"
}
else if (record.channel=='10'){
channel="短信"
} else if (record.channel=='100'){
channel="个推"
}return{
channel
}
}
}
]