转换方法:
① 在要渲染的位置定义个插槽
<template slot-scope="scope">
类型:{{ formatEmploymentFn(scpope.row.后台给的数据d) }}
</template>
②将包含员工信息的内容引入,将其用reduce方法转为数组。
③在函数里使用
转换方法:
① 在要渲染的位置定义个插槽
<template slot-scope="scope">
类型:{{ formatEmploymentFn(scpope.row.后台给的数据d) }}
</template>
②将包含员工信息的内容引入,将其用reduce方法转为数组。
③在函数里使用