el-table 表格保留小数 一、使用template 获取row,加上toFixed方法,方便保留小数以及拼接字符等 一、使用template 获取row,加上toFixed方法,方便保留小数以及拼接字符等 <el-table-column align="center" label='推荐度' > <template slot-scope="scope"> {{scope.row.recommend.toFixed(2) }} </template> </el-table-column>