接口传值
前端完成页面
代码
render: (text, record, index) => {
if (record.confirmRate == null) {
return '0%'
} else {
let str = (Number(record.confirmRate) * 100).toFixed(2)
let confirmRate = ''
confirmRate = str + '%'
return (record.confirmRate = confirmRate)
}
},