<Table border :columns='myMissionColumns' :data=data></Table>
export default {
name: 'highFrequencyCall',
data () {
return {
data: [],
myMissionColumns: [
{ title: '任务类型',
key: 'taskType',
render: (h, params) => {
switch (params.row.taskType) {
case '1':
return h('span', '同一号码来电');
break;
case '2':
return h('span', '指定号段');
break;
case '3':
return h('span', '关注号段');
break;
}
}
},
{ title: '任务号', key: 'taskId' },
{ title: '处理方法',
render (h, params) => {
return h('a', {
style: { textDecoration: 'underline' },
on: {click: (e) => {
console.log('点击事件')
}}
}, params.row.signRisk == 'Y' ? '存在风险' : (params.row.signRisk == 'N' ? '不存在风险' : '未处理'))
})
}
]
}
}
}