分配角色
+
+ 解冻
+
删除
@@ -226,6 +229,9 @@ const handleCommand = (command: string, row: UserApi.UserVO) => {
case 'handleRole':
handleRole(row)
break
+ case 'handleFree':
+ handleFree(row.id)
+ break
default:
break
}
@@ -243,7 +249,16 @@ const handleDelete = async (id: number) => {
await getList()
} catch { }
}
-
+/** 解冻按钮操作 */
+const handleFree = async (id: number) => {
+ try {
+ // 发起删除
+ await UserApi.unLockUser(id)
+ message.success(t('common.unLockSuccess'))
+ // 刷新列表
+ await getList()
+ } catch { }
+}
/** 重置密码 */
const handleResetPwd = async (row: UserApi.UserVO) => {
try {