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