需求效果图:
bug图(此处0.14*100丢失了精度):
解决代码:
<GTable scrollY="calc(50vh - 100px)" :column="jjfColumns" :data="jjfData" :rowSelection="{toKey: 'deliverTime'}">
<template #bodyCell="{ column ,record,dataIndex}">
<div v-if="dataIndex=='premiumRate'">{{parseFloat((record.premiumRate*100).toFixed(2))}}</div>
</template>
</GTable>
最终实现图: