<el-popconfirm
title="是否禁用该类目"
v-show="startUse"
@confirm="confirm(scope.$index, scope.row)">
<el-button type="text" size="small" slot="reference"
>禁用</el-button>
</el-popconfirm>
//禁用启用确定按钮事件
confirm(index, row) {
console.log(index, row, '2222')
this.startUse = false
},
将全局的启用标识挂到行上,跟据行标识去控制显示隐藏,改动如下