vue对table的某一行的数据进行编辑,删除,查看详情操作
效果图在html中需要对button按钮进行template包裹,scope.row就是这一行的数据<el-table-column label="操作"><template slot-scope="scope"><el-button type="primary" @click="editProgram(scope.row)">编辑</el-button&
·
效果图
在html中需要对button按钮进行template包裹,scope.row就是这一行的数据
<el-table-column label="操作">
<template slot-scope="scope">
<el-button type="primary" @click="editProgram(scope.row)">编辑</el-button>
<el-button type="danger" @click="del(scope.row)">删除</el-button>
<el-button type="primary" @click="showDetail(scope.row)">详情</el-button>
</template>
</el-table-column>
更多推荐
已为社区贡献6条内容
所有评论(0)