1,html
<el-table-column prop="drugRate" label="药占比" width="auto">
<template slot-scope="scope">
{{ towNumber(scope.row.drugRate*100) }}%
</template>
</el-table-column>
2,js
towNumber(val) {
return Number(val).toFixed(2);
},
网友评论