From 289230b72cc4f84f8458042708a89944dba1f5d9 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 14 May 2024 15:10:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=97=A5=E5=BF=97=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=89=80=E5=9C=A8=E5=9C=B0=EF=BC=8C=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.js | 9 + src/store/modules/user.js | 2 +- src/views/system/login-log/index.vue | 170 +++++++++--------- src/views/trials/trials-myinfo/index.vue | 2 +- .../trial-summary/login-log/index.vue | 51 ++++-- 5 files changed, 137 insertions(+), 97 deletions(-) diff --git a/src/api/user.js b/src/api/user.js index aa9354c5..d1417821 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -157,3 +157,12 @@ export function getUserLogList(params) { data: params }) } + +// 获取登录用户 +export function getTrialUserList(params) { + return request({ + url: `/TrialMaintenance/getTrialUserList`, + method: 'get', + params + }) +} diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 4055495a..3fc0a4eb 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -181,12 +181,12 @@ const actions = { // user logout async logout({ commit, state }) { try{ - await loginOut() removeToken() // must remove token first resetRouter() removeName() zzSessionStorage.clear() commit('RESET_STATE') + await loginOut() }catch(e){ console.log(e) } diff --git a/src/views/system/login-log/index.vue b/src/views/system/login-log/index.vue index 3d66804d..9d96ecb7 100644 --- a/src/views/system/login-log/index.vue +++ b/src/views/system/login-log/index.vue @@ -6,7 +6,11 @@ :label="$t('system:loginLog:label:OptType')" prop="OptType" > - + - + - + - {{ $t('common:button:search') }} + {{ $t("common:button:search") }} - + + - + diff --git a/src/views/trials/trials-myinfo/index.vue b/src/views/trials/trials-myinfo/index.vue index f95be96c..079ad2d6 100644 --- a/src/views/trials/trials-myinfo/index.vue +++ b/src/views/trials/trials-myinfo/index.vue @@ -29,7 +29,7 @@ :IsCanConnectInternet="IsCanConnectInternet" v-if="activeIndex === '2'" /> - + diff --git a/src/views/trials/trials-panel/trial-summary/login-log/index.vue b/src/views/trials/trials-panel/trial-summary/login-log/index.vue index 5087e0b4..68db8cc2 100644 --- a/src/views/trials/trials-panel/trial-summary/login-log/index.vue +++ b/src/views/trials/trials-panel/trial-summary/login-log/index.vue @@ -45,12 +45,14 @@ prop="LoginUserName" v-if="!isMine" > - + + + + @@ -164,7 +173,7 @@ v-if="!isMine" :label="$t('trials:loginLog:table:optUserType')" prop="OptUserTypeEnum" - min-width="90" + min-width="160" show-overflow-tooltip sortable="custom" > @@ -192,7 +201,7 @@