效果:
:disabled="item(scope.$index, scope.row)"
<el-table-column
label="操作">
<template slot-scope="scope">
<el-button type="text" size="small" @click="handleEdit(scope.$index, scope.row)" :disabled="item(scope.$index, scope.row)">审核</el-button>
<span style="color:#409EFF"> | </span>
<el-button type="text" size="small" @click="preDetails(scope.$index,scope.row)" >详情</el-button>
<span style="color:#409EFF"> | </span>
<el-button type="text" size="small" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
</template>
</el-table-column>
methods:{}
item(index, row){
if (row.result==null) {
return false;
}else{
return true;
}
}
result是审核结果,如果存在返回true