fix: 调整user编辑逻辑OA用户只能修改角色

This commit is contained in:
lilinyuan
2024-03-29 15:19:17 +08:00
parent b1b039a897
commit c28b0e306d
3 changed files with 51 additions and 39 deletions

View File

@@ -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
}
})
}