diff --git a/src/service/api/monitor/login-infor.ts b/src/service/api/monitor/login-infor.ts index cbe4dc85..532584e9 100644 --- a/src/service/api/monitor/login-infor.ts +++ b/src/service/api/monitor/login-infor.ts @@ -16,3 +16,19 @@ export function fetchBatchDeleteLoginInfor(infoIds: CommonType.IdType[]) { method: 'delete' }); } + +/** 解锁系统访问记录 */ +export function fetchUnlockLoginInfor(username: string) { + return request({ + url: `/monitor/logininfor/unlock/${username}`, + method: 'get' + }); +} + +/** 清空系统访问记录 */ +export function fetchCleanLoginInfor() { + return request({ + url: '/monitor/logininfor/clean', + method: 'delete' + }); +} diff --git a/src/typings/components.d.ts b/src/typings/components.d.ts index 16a98c67..65e48791 100644 --- a/src/typings/components.d.ts +++ b/src/typings/components.d.ts @@ -47,6 +47,7 @@ declare module 'vue' { 'IconMaterialSymbols:downloadRounded': typeof import('~icons/material-symbols/download-rounded')['default'] 'IconMaterialSymbols:expandAllRounded': typeof import('~icons/material-symbols/expand-all-rounded')['default'] 'IconMaterialSymbols:imageOutline': typeof import('~icons/material-symbols/image-outline')['default'] + 'IconMaterialSymbols:lockOpenOutlineRounded': typeof import('~icons/material-symbols/lock-open-outline-rounded')['default'] 'IconMaterialSymbols:refreshRounded': typeof import('~icons/material-symbols/refresh-rounded')['default'] 'IconMaterialSymbols:settingsOutlineRounded': typeof import('~icons/material-symbols/settings-outline-rounded')['default'] 'IconMaterialSymbols:syncOutline': typeof import('~icons/material-symbols/sync-outline')['default'] diff --git a/src/views/monitor/login-infor/index.vue b/src/views/monitor/login-infor/index.vue index e9954aa0..b2c30e5a 100644 --- a/src/views/monitor/login-infor/index.vue +++ b/src/views/monitor/login-infor/index.vue @@ -1,5 +1,11 @@