fix: 调整user列表编辑删除按钮显示

This commit is contained in:
lilinyuan
2024-03-27 14:20:50 +08:00
parent e1f5c48a6e
commit a22d80710b

View File

@@ -119,8 +119,14 @@ const tableConfig = reactive({
currentRender: ({row, index}) => {
return (
<div>
<el-button type="primary" link onClick={()=>handleEdit(row)}>编辑</el-button>
<el-button type="danger" link onClick={()=>handleDel(row)}>删除</el-button>
{
row.userType == 0 ?
'--' :
<div>
<el-button type="primary" link onClick={()=>handleEdit(row)}>编辑</el-button>
<el-button type="danger" link onClick={()=>handleDel(row)}>删除</el-button>
</div>
}
</div>
)
}