<el-table-column prop="capacity" label="操作" min-width="90" align="center">
<template slot-scope="scope">
<el-button @click="printIndex(scope.$index)">查看Index</el-button>
</template>
</el-table-column>

效果图
el-table在每一行拿到对应的index(scope.$index)

 

 

相关文章: