status: {
title: '状态',
align: 'center',
minWidth: 80,
key: 'status',
render: (h, params) => {
let value = params.row.status
if (typeof value === 'undefined' || value === null || value === '') {
value = '--'
}
return h(
'Tag',
{
props: {
color: value === 1 ? 'error' : 'success'
},
style: {
cursor: 'pointer'
// marginRight: '10px'
},
on: {
click: () => {}
}
},
value === 1 ? '停用' : '启用'
)
}
},