|
|
@ -81,7 +81,7 @@ |
|
|
|
v-hasPermi="['system:permission:assign-user-role']"> |
|
|
|
<Icon icon="ep:circle-check" />分配角色 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" link @click="handleFree(scope.row.id)" v-hasPermi="['system:user:update-password']" v-if="useUserStore().userSelfInfo.userType=='MASTER'"> |
|
|
|
<el-button type="primary" link @click="handleFree(scope.row)" v-hasPermi="['system:user:update-password']" v-if="useUserStore().userSelfInfo.userType=='MASTER'"> |
|
|
|
<Icon icon="ep:edit" />解冻 |
|
|
|
</el-button> |
|
|
|
<el-button type="danger" link @click="handleDelete(scope.row.id)" v-hasPermi="['system:user:delete']"> |
|
|
@ -240,7 +240,7 @@ const handleCommand = (command: string, row: UserApi.UserVO) => { |
|
|
|
handleRole(row) |
|
|
|
break |
|
|
|
case 'handleFree': |
|
|
|
handleFree(row.id) |
|
|
|
handleFree(row) |
|
|
|
break |
|
|
|
default: |
|
|
|
break |
|
|
@ -260,13 +260,18 @@ const handleDelete = async (id: number) => { |
|
|
|
} catch { } |
|
|
|
} |
|
|
|
/** 解冻按钮操作 */ |
|
|
|
const handleFree = async (id: number) => { |
|
|
|
const handleFree = async (row: any) => { |
|
|
|
try { |
|
|
|
debugger |
|
|
|
// 发起删除 |
|
|
|
await UserApi.unLockUser(id) |
|
|
|
message.success(t('common.unLockSuccess')) |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
if(row.frozenStatus=="是"){ |
|
|
|
await UserApi.unLockUser(row.id) |
|
|
|
message.success(t('common.unLockSuccess')) |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
}else{ |
|
|
|
message.error(t('common.unLockFail')) |
|
|
|
} |
|
|
|
} catch { } |
|
|
|
} |
|
|
|
/** 重置密码 */ |
|
|
|