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