fix: 调整user列表编辑删除按钮显示
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user