下面id
这一列里面那个删除按钮是根据另一个变量status
来判断显示的
如果1就是删除 2就是恢复 这种情况有办法吗?
<el-table-column align="center" prop="id" width="180" label="操作">
<template slot-scope="scope">
<el-button
size="mini"
type="success"
@click.native.prevent="edit(scope.row.id)">
编辑
</el-button>
<el-button
size="mini"
type="success"
@click.native.prevent="dele(scope.row.id)">
删除
</el-button>
</template>
</el-table-column>