效果图代码部分
:disabled="scope.row.status == '审核通过' ? true : false"代码应用
<el-table-column prop="status" label="状态" width="160"> </el-table-column> <el-table-column fixed="right" label="操作"> <template slot-scope="scope"> <el-button @click="dlt(scope.row)" type="text" size="small" >删除</el-button > <el-button @click="Examine(scope.row.id)" type="text" size="small" :disabled="scope.row.status == '审核通过' ? true : false" >审核通过</el-button > <el-button @click="reExamine(scope.row.id)" type="text" size="small" :disabled="scope.row.status == '审核不通过' ? true : false" >审核不通过</el-button >