<avue-crud :option="optionParent"
:table-loading="treeLoading"
:data="dataParent"
:before-open="treeBeforeOpen"
:permission="permissionTreeList"
:row-style = "rowStyle"
v-model="treeForm">
</avue-crud>
rowStyle(column){
// 根据条件隐藏显示
if(column.row.parentId == "0"){
this.optionParent.editBtn = false;
this.optionParent.delBtn = false;
}else{
this.optionParent.editBtn = true;
this.optionParent.delBtn = true;
}
}
版权声明:本文为wangxueye1996原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。