fix: 调整user编辑逻辑OA用户只能修改角色
This commit is contained in:
@@ -119,14 +119,8 @@ const tableConfig = reactive({
|
||||
currentRender: ({row, index}) => {
|
||||
return (
|
||||
<div>
|
||||
{
|
||||
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>
|
||||
}
|
||||
<el-button type="primary" link onClick={()=>handleEdit(row)}>编辑</el-button>
|
||||
<el-button type="danger" link onClick={()=>handleDel(row)}>删除</el-button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -171,7 +165,8 @@ const handleEdit = (row) => {
|
||||
router.push({
|
||||
path: '/system/useredit',
|
||||
query: {
|
||||
id: row.userId
|
||||
id: row.userId,
|
||||
userType: row.userType
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user