From 1965abc9fda12987dd7f57c814e1db288c2965b7 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 10 Apr 2025 15:41:13 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E5=BC=82=E5=9C=B0=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.js | 8 ++++++ src/views/system/login-log/index.vue | 41 ++++++++++++++++++++++++++-- 2 files changed, 46 insertions(+), 3 deletions(-) diff --git a/src/api/user.js b/src/api/user.js index 7aa40313..bfcbe125 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -209,3 +209,11 @@ export function loginSelectUserRole(params) { params, }) } +// 忽略异地登录 +export function setIsIgnoreUncommonly(data) { + return request({ + url: `/User/setIsIgnoreUncommonly`, + method: 'post', + data, + }) +} diff --git a/src/views/system/login-log/index.vue b/src/views/system/login-log/index.vue index 97bca316..6cb78be9 100644 --- a/src/views/system/login-log/index.vue +++ b/src/views/system/login-log/index.vue @@ -23,6 +23,11 @@ :label="item.label" /> + + + + + @@ -46,8 +51,13 @@ justify-content: flex-end; "> - + placement="top" style="margin-right: 3px" v-if="scope.row.IsIgnoreUncommonly"> + + + + {{ scope.$index + 1 }} @@ -116,7 +126,7 @@