render: (text, cell) => {
if ((cell.bill_type == 1310 || cell.bill_type == 1318) && cell.info.ladder_coeff && cell.info.ladder_coeff !== []) {
const ladder_coeff = <div>
{
Object.keys(cell.info.ladder_coeff).map((itemKey,item) => {
return <p key={itemKey}>{itemKey + ' : ' + cell.info.ladder_coeff[itemKey].toString()}</p>
})
}
</div>
return (
<div>
{text}
<Popover
content={ladder_coeff || ''}
placement="topRight"
title="阶梯计费成本系数"
overlayStyle={{ width: 170, position: 'fixed', right: 20 }}
>
<Icon
type="zoom-in"
/>
</Popover>
</div>
)
} else {
return text
}
}