账户日志的操作类型支持多选
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1d6ebe6388
commit
1bddd30709
|
@ -2,152 +2,66 @@
|
||||||
<div class="log">
|
<div class="log">
|
||||||
<div ref="leftContainer" class="left">
|
<div ref="leftContainer" class="left">
|
||||||
<el-form :inline="true">
|
<el-form :inline="true">
|
||||||
<el-form-item
|
<el-form-item :label="$t('system:loginLog:label:OptType')" prop="OptType">
|
||||||
:label="$t('system:loginLog:label:OptType')"
|
<el-select v-model="searchData.OptTypeList" clearable style="width: 200px" multiple :collapse-tags="true">
|
||||||
prop="OptType"
|
<el-option v-for="item of $d.UserOptType" :key="'UserOptType' + item.label" :value="item.value"
|
||||||
>
|
:label="item.label" />
|
||||||
<el-select
|
|
||||||
v-model="searchData.OptType"
|
|
||||||
clearable
|
|
||||||
style="width: 120px"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of $d.UserOptType"
|
|
||||||
:key="'UserOptType' + item.label"
|
|
||||||
:value="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="IP" prop="IP">
|
<el-form-item label="IP" prop="IP">
|
||||||
<el-input
|
<el-input v-model="searchData.IP" size="small" clearable style="width: 120px" />
|
||||||
v-model="searchData.IP"
|
|
||||||
size="small"
|
|
||||||
clearable
|
|
||||||
style="width: 120px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item :label="$t('system:loginLog:label:LoginFaildName')" prop="LoginFaildName">
|
||||||
:label="$t('system:loginLog:label:LoginFaildName')"
|
<el-input v-model="searchData.LoginFaildName" size="small" clearable style="width: 120px" />
|
||||||
prop="LoginFaildName"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
v-model="searchData.LoginFaildName"
|
|
||||||
size="small"
|
|
||||||
clearable
|
|
||||||
style="width: 120px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item :label="$t('system:loginLog:table:LoginUserName')" prop="LoginFaildName">
|
||||||
:label="$t('system:loginLog:table:LoginUserName')"
|
<el-input v-model="searchData.LoginUserName" size="small" clearable style="width: 120px" />
|
||||||
prop="LoginFaildName"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
v-model="searchData.LoginUserName"
|
|
||||||
size="small"
|
|
||||||
clearable
|
|
||||||
style="width: 120px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item :label="$t('system:loginLog:table:LoginUserType')" prop="LoginUserTypeEnum">
|
||||||
:label="$t('system:loginLog:table:LoginUserType')"
|
<el-select v-model="searchData.LoginUserTypeEnum" clearable style="width: 120px">
|
||||||
prop="LoginUserTypeEnum"
|
<el-option v-for="item of $d.UserType" :key="'UserType' + item.label" :value="item.value"
|
||||||
>
|
:label="item.label" />
|
||||||
<el-select
|
|
||||||
v-model="searchData.LoginUserTypeEnum"
|
|
||||||
clearable
|
|
||||||
style="width: 120px"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of $d.UserType"
|
|
||||||
:key="'UserType' + item.label"
|
|
||||||
:value="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('system:loginLog:label:CreateTime')">
|
<el-form-item :label="$t('system:loginLog:label:CreateTime')">
|
||||||
<el-date-picker
|
<el-date-picker v-model="datetimerange" type="datetimerange" value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
v-model="datetimerange"
|
:default-time="['00:00:00', '23:59:59']" @change="handleDatetimeChange" style="width: 380px" />
|
||||||
type="datetimerange"
|
|
||||||
value-format="yyyy-MM-dd HH:mm:ss"
|
|
||||||
:default-time="['00:00:00', '23:59:59']"
|
|
||||||
@change="handleDatetimeChange"
|
|
||||||
style="width: 380px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="getList">
|
<el-button type="primary" icon="el-icon-search" @click="getList">
|
||||||
{{ $t('common:button:search') }}
|
{{ $t('common:button:search') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
||||||
type="primary"
|
|
||||||
icon="el-icon-refresh-left"
|
|
||||||
@click="handleReset"
|
|
||||||
>
|
|
||||||
{{ $t('common:button:reset') }}
|
{{ $t('common:button:reset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table
|
<el-table v-loading="loading" v-adaptive="{ bottomOffset: 45 }" height="100" :data="list" class="table"
|
||||||
v-loading="loading"
|
@sort-change="handleSortByColumn">
|
||||||
v-adaptive="{ bottomOffset: 45 }"
|
|
||||||
height="100"
|
|
||||||
:data="list"
|
|
||||||
class="table"
|
|
||||||
@sort-change="handleSortByColumn"
|
|
||||||
>
|
|
||||||
<el-table-column type="index" width="50">
|
<el-table-column type="index" width="50">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span
|
<span style="
|
||||||
style="
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
"
|
">
|
||||||
>
|
<el-tooltip class="item" effect="dark" :content="$t('system:loginLog:label:IsLoginUncommonly')"
|
||||||
<el-tooltip
|
placement="top" style="margin-right: 3px" v-if="scope.row.IsLoginUncommonly">
|
||||||
class="item"
|
<i v-if="scope.row.IsLoginUncommonly" class="el-icon-warning icon-i"></i>
|
||||||
effect="dark"
|
|
||||||
:content="$t('system:loginLog:label:IsLoginUncommonly')"
|
|
||||||
placement="top"
|
|
||||||
style="margin-right: 3px"
|
|
||||||
v-if="scope.row.IsLoginUncommonly"
|
|
||||||
>
|
|
||||||
<i
|
|
||||||
v-if="scope.row.IsLoginUncommonly"
|
|
||||||
class="el-icon-warning icon-i"
|
|
||||||
></i>
|
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<span>{{ scope.$index + 1 }}</span>
|
<span>{{ scope.$index + 1 }}</span>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column :label="$t('system:loginLog:table:OptType')" prop="OptType" min-width="150"
|
||||||
:label="$t('system:loginLog:table:OptType')"
|
show-overflow-tooltip sortable="custom">
|
||||||
prop="OptType"
|
|
||||||
min-width="150"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable="custom"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ $fd('UserOptType', scope.row.OptType) }}
|
{{ $fd('UserOptType', scope.row.OptType) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="IP" prop="IP" min-width="150" sortable="custom" show-overflow-tooltip />
|
||||||
label="IP"
|
<el-table-column :label="$t('trials:loginLog:table:IPRegion')" prop="IPRegion" min-width="120"
|
||||||
prop="IP"
|
show-overflow-tooltip sortable="custom" />
|
||||||
min-width="150"
|
|
||||||
sortable="custom"
|
|
||||||
show-overflow-tooltip
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
:label="$t('trials:loginLog:table:IPRegion')"
|
|
||||||
prop="IPRegion"
|
|
||||||
min-width="120"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable="custom"
|
|
||||||
/>
|
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
:label="$t('system:loginLog:table:LoginFaildName')"
|
:label="$t('system:loginLog:table:LoginFaildName')"
|
||||||
prop="LoginFaildName"
|
prop="LoginFaildName"
|
||||||
|
@ -155,20 +69,10 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/> -->
|
/> -->
|
||||||
<el-table-column
|
<el-table-column :label="$t('system:loginLog:table:LoginUserName')" prop="ActionUserName" min-width="140"
|
||||||
:label="$t('system:loginLog:table:LoginUserName')"
|
show-overflow-tooltip sortable="custom" />
|
||||||
prop="ActionUserName"
|
<el-table-column :label="$t('system:loginLog:table:Aetionlserlype')" prop="ActionUserType" min-width="100"
|
||||||
min-width="140"
|
show-overflow-tooltip sortable="custom" />
|
||||||
show-overflow-tooltip
|
|
||||||
sortable="custom"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
:label="$t('system:loginLog:table:Aetionlserlype')"
|
|
||||||
prop="ActionUserType"
|
|
||||||
min-width="100"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable="custom"
|
|
||||||
/>
|
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
:label="$t('system:loginLog:table:LoginUserType')"
|
:label="$t('system:loginLog:table:LoginUserType')"
|
||||||
prop="LoginUserTypeEnum"
|
prop="LoginUserTypeEnum"
|
||||||
|
@ -180,13 +84,8 @@
|
||||||
{{ $fd("UserType", scope.row.LoginUserTypeEnum) }}
|
{{ $fd("UserType", scope.row.LoginUserTypeEnum) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<el-table-column
|
<el-table-column :label="$t('system:loginLog:table:OptUserName')" prop="TargetIdentityUserName" min-width="200"
|
||||||
:label="$t('system:loginLog:table:OptUserName')"
|
sortable="custom" show-overflow-tooltip />
|
||||||
prop="TargetIdentityUserName"
|
|
||||||
min-width="200"
|
|
||||||
sortable="custom"
|
|
||||||
show-overflow-tooltip
|
|
||||||
/>
|
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
:label="$t('system:loginLog:table:OptUserType')"
|
:label="$t('system:loginLog:table:OptUserType')"
|
||||||
prop="OptUserTypeEnum"
|
prop="OptUserTypeEnum"
|
||||||
|
@ -198,36 +97,19 @@
|
||||||
{{ $fd("UserType", scope.row.OptUserTypeEnum) }}
|
{{ $fd("UserType", scope.row.OptUserTypeEnum) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<el-table-column
|
<el-table-column :label="$t('system:loginLog:table:detail')" min-width="120" show-overflow-tooltip>
|
||||||
:label="$t('system:loginLog:table:detail')"
|
|
||||||
min-width="120"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button v-if="scope.row.JsonObj" type="text" @click="handleOpenDialog(scope.row)">
|
||||||
v-if="scope.row.JsonObj"
|
|
||||||
type="text"
|
|
||||||
@click="handleOpenDialog(scope.row)"
|
|
||||||
>
|
|
||||||
<span>{{ $t('system:loginLog:message:detail') }}</span>
|
<span>{{ $t('system:loginLog:message:detail') }}</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column :label="$t('system:loginLog:table:CreateTime')" prop="CreateTime" min-width="180"
|
||||||
:label="$t('system:loginLog:table:CreateTime')"
|
sortable="custom" show-overflow-tooltip />
|
||||||
prop="CreateTime"
|
|
||||||
min-width="180"
|
|
||||||
sortable="custom"
|
|
||||||
show-overflow-tooltip
|
|
||||||
/>
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="pagination" style="text-align: right; margin-top: 5px">
|
<div class="pagination" style="text-align: right; margin-top: 5px">
|
||||||
<pagination
|
<pagination :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize"
|
||||||
:total="total"
|
@pagination="getList" />
|
||||||
:page.sync="searchData.PageIndex"
|
|
||||||
:limit.sync="searchData.PageSize"
|
|
||||||
@pagination="getList"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<detail :config="config" :JsonObj="JsonObj" />
|
<detail :config="config" :JsonObj="JsonObj" />
|
||||||
|
@ -241,6 +123,7 @@ import moment from 'moment'
|
||||||
const searchDataDefault = () => {
|
const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
OptType: null,
|
OptType: null,
|
||||||
|
OptTypeList: [],
|
||||||
Ip: '',
|
Ip: '',
|
||||||
LoginFaildName: '',
|
LoginFaildName: '',
|
||||||
LoginUserName: '',
|
LoginUserName: '',
|
||||||
|
@ -334,25 +217,30 @@ export default {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 0;
|
width: 0;
|
||||||
flex-grow: 4;
|
flex-grow: 4;
|
||||||
|
|
||||||
// border-right: 1px solid #ccc;
|
// border-right: 1px solid #ccc;
|
||||||
.filter-container {
|
.filter-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.data-table {
|
.data-table {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 5px 0px;
|
padding: 5px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination-container {
|
.pagination-container {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-i {
|
.icon-i {
|
||||||
color: #f56c6c;
|
color: #f56c6c;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -2,31 +2,14 @@
|
||||||
<BaseContainer>
|
<BaseContainer>
|
||||||
<template slot="search-container">
|
<template slot="search-container">
|
||||||
<el-form :inline="true">
|
<el-form :inline="true">
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:loginLog:table:optType')" prop="OptType">
|
||||||
:label="$t('trials:loginLog:table:optType')"
|
<el-select v-model="searchData.OptTypeList" clearable multiple :collapse-tags="true" style="width: 200px">
|
||||||
prop="OptType"
|
<el-option v-for="item of $d.UserOptType" v-show="item.value !== 3 && item.value !== 10 && item.value !== 9"
|
||||||
>
|
:key="'UserOptType' + item.label" :value="item.value" :label="item.label" />
|
||||||
<el-select
|
|
||||||
v-model="searchData.OptType"
|
|
||||||
clearable
|
|
||||||
style="width: 120px"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of $d.UserOptType"
|
|
||||||
v-show="item.value !== 3 && item.value !== 10 && item.value !== 9"
|
|
||||||
:key="'UserOptType' + item.label"
|
|
||||||
:value="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="IP" prop="IP">
|
<el-form-item label="IP" prop="IP">
|
||||||
<el-input
|
<el-input v-model="searchData.IP" size="small" clearable style="width: 120px" />
|
||||||
v-model="searchData.IP"
|
|
||||||
size="small"
|
|
||||||
clearable
|
|
||||||
style="width: 120px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item
|
<!-- <el-form-item
|
||||||
:label="$t('trials:loginLog:table:incorrectUserName')"
|
:label="$t('trials:loginLog:table:incorrectUserName')"
|
||||||
|
@ -40,108 +23,52 @@
|
||||||
style="width: 120px"
|
style="width: 120px"
|
||||||
/>
|
/>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:loginLog:table:userName')" prop="LoginUserName" v-if="!isMine">
|
||||||
:label="$t('trials:loginLog:table:userName')"
|
|
||||||
prop="LoginUserName"
|
|
||||||
v-if="!isMine"
|
|
||||||
>
|
|
||||||
<el-select v-model="searchData.IdentityUserId" clearable style="width: 120px">
|
<el-select v-model="searchData.IdentityUserId" clearable style="width: 120px">
|
||||||
<el-option
|
<el-option v-for="item of trialUserList" :key="item.IdentityUserId" :value="item.IdentityUserId"
|
||||||
v-for="item of trialUserList"
|
:label="item.UserName" />
|
||||||
:key="item.IdentityUserId"
|
|
||||||
:value="item.IdentityUserId"
|
|
||||||
:label="item.UserName"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:loginLog:table:optUserName')" prop="TargetIdentityUserId" v-if="!isMine">
|
||||||
:label="$t('trials:loginLog:table:optUserName')"
|
|
||||||
prop="TargetIdentityUserId"
|
|
||||||
v-if="!isMine"
|
|
||||||
>
|
|
||||||
<el-select v-model="searchData.TargetIdentityUserId" clearable style="width: 120px">
|
<el-select v-model="searchData.TargetIdentityUserId" clearable style="width: 120px">
|
||||||
<el-option
|
<el-option v-for="item of trialUserList" :key="item.IdentityUserId" :value="item.IdentityUserId"
|
||||||
v-for="item of trialUserList"
|
:label="item.UserName" />
|
||||||
:key="item.IdentityUserId"
|
|
||||||
:value="item.IdentityUserId"
|
|
||||||
:label="item.UserName"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:loginLog:table:userType')" prop="OptType" v-if="!isMine">
|
||||||
:label="$t('trials:loginLog:table:userType')"
|
<el-select v-model="searchData.LoginUserType" clearable style="width: 120px">
|
||||||
prop="OptType"
|
<el-option v-for="item of $d.UserType" v-show="item.value !== 7 && item.value !== 8"
|
||||||
v-if="!isMine"
|
:key="'UserType' + item.label" :value="item.label" :label="item.label" />
|
||||||
>
|
|
||||||
<el-select
|
|
||||||
v-model="searchData.LoginUserType"
|
|
||||||
clearable
|
|
||||||
style="width: 120px"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of $d.UserType"
|
|
||||||
v-show="item.value !== 7 && item.value !== 8"
|
|
||||||
:key="'UserType' + item.label"
|
|
||||||
:value="item.label"
|
|
||||||
:label="item.label"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('trials:loginLog:table:createTime')">
|
<el-form-item :label="$t('trials:loginLog:table:createTime')">
|
||||||
<el-date-picker
|
<el-date-picker v-model="datetimerange" type="datetimerange" :default-time="['00:00:00', '23:59:59']"
|
||||||
v-model="datetimerange"
|
|
||||||
type="datetimerange"
|
|
||||||
:default-time="['00:00:00', '23:59:59']"
|
|
||||||
:start-placeholder="$t('trials:loginLog:table:beginTime')"
|
:start-placeholder="$t('trials:loginLog:table:beginTime')"
|
||||||
:end-placeholder="$t('trials:loginLog:table:endTime')"
|
:end-placeholder="$t('trials:loginLog:table:endTime')" value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
value-format="yyyy-MM-dd HH:mm:ss"
|
@change="handleDatetimeChange" />
|
||||||
@change="handleDatetimeChange"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||||
{{ $t('common:button:search') }}
|
{{ $t('common:button:search') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 重置 -->
|
<!-- 重置 -->
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
||||||
type="primary"
|
|
||||||
icon="el-icon-refresh-left"
|
|
||||||
@click="handleReset"
|
|
||||||
>
|
|
||||||
{{ $t('common:button:reset') }}
|
{{ $t('common:button:reset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<template slot="main-container">
|
<template slot="main-container">
|
||||||
<el-table
|
<el-table v-loading="loading" v-adaptive="{ bottomOffset: isMine ? 80 : 60 }" height="100" :data="list"
|
||||||
v-loading="loading"
|
class="table" @sort-change="handleSortByColumn" :default-sort="{ prop: 'CreateTime', order: 'descending' }">
|
||||||
v-adaptive="{ bottomOffset: isMine ? 80 : 60 }"
|
|
||||||
height="100"
|
|
||||||
:data="list"
|
|
||||||
class="table"
|
|
||||||
@sort-change="handleSortByColumn"
|
|
||||||
:default-sort="{ prop: 'CreateTime', order: 'descending' }"
|
|
||||||
>
|
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
<el-table-column
|
<el-table-column :label="$t('trials:loginLog:table:optType')" prop="OptType" min-width="90"
|
||||||
:label="$t('trials:loginLog:table:optType')"
|
show-overflow-tooltip sortable="custom">
|
||||||
prop="OptType"
|
|
||||||
min-width="90"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable="custom"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ $fd('UserOptType', scope.row.OptType) }}
|
{{ $fd('UserOptType', scope.row.OptType) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="IP" prop="IP" min-width="90" show-overflow-tooltip sortable="custom" />
|
||||||
label="IP"
|
|
||||||
prop="IP"
|
|
||||||
min-width="90"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable="custom"
|
|
||||||
/>
|
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
:label="$t('trials:loginLog:table:IPRegion')"
|
:label="$t('trials:loginLog:table:IPRegion')"
|
||||||
prop="IPRegion"
|
prop="IPRegion"
|
||||||
|
@ -157,20 +84,10 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/> -->
|
/> -->
|
||||||
<el-table-column
|
<el-table-column :label="$t('trials:loginLog:table:userName')" prop="ActionUserName" min-width="90"
|
||||||
:label="$t('trials:loginLog:table:userName')"
|
show-overflow-tooltip sortable="custom" />
|
||||||
prop="ActionUserName"
|
<el-table-column :label="$t('trials:loginLog:table:Aetionlserlype')" prop="ActionUserType" min-width="100"
|
||||||
min-width="90"
|
show-overflow-tooltip sortable="custom" />
|
||||||
show-overflow-tooltip
|
|
||||||
sortable="custom"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
:label="$t('trials:loginLog:table:Aetionlserlype')"
|
|
||||||
prop="ActionUserType"
|
|
||||||
min-width="100"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable="custom"
|
|
||||||
/>
|
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
:label="$t('trials:loginLog:table:userType')"
|
:label="$t('trials:loginLog:table:userType')"
|
||||||
prop="LoginUserTypeEnum"
|
prop="LoginUserTypeEnum"
|
||||||
|
@ -182,14 +99,8 @@
|
||||||
{{ $fd('UserType', scope.row.LoginUserTypeEnum) }}
|
{{ $fd('UserType', scope.row.LoginUserTypeEnum) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<el-table-column
|
<el-table-column v-if="!isMine" :label="$t('trials:loginLog:table:optUserName')" prop="TargetIdentityUserName"
|
||||||
v-if="!isMine"
|
min-width="120" show-overflow-tooltip sortable="custom" />
|
||||||
:label="$t('trials:loginLog:table:optUserName')"
|
|
||||||
prop="TargetIdentityUserName"
|
|
||||||
min-width="120"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable="custom"
|
|
||||||
/>
|
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
v-if="!isMine"
|
v-if="!isMine"
|
||||||
:label="$t('trials:loginLog:table:optUserType')"
|
:label="$t('trials:loginLog:table:optUserType')"
|
||||||
|
@ -202,37 +113,19 @@
|
||||||
{{ $fd('UserType', scope.row.OptUserTypeEnum) }}
|
{{ $fd('UserType', scope.row.OptUserTypeEnum) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<el-table-column
|
<el-table-column :label="$t('trials:loginLog:table:detail')" min-width="80" show-overflow-tooltip>
|
||||||
:label="$t('trials:loginLog:table:detail')"
|
|
||||||
min-width="80"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button v-if="scope.row.JsonObj" type="text" @click="handleOpenDialog(scope.row)">
|
||||||
v-if="scope.row.JsonObj"
|
|
||||||
type="text"
|
|
||||||
@click="handleOpenDialog(scope.row)"
|
|
||||||
>
|
|
||||||
<span>{{ $t('trials:loginLog:message:detail') }}</span>
|
<span>{{ $t('trials:loginLog:message:detail') }}</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column :label="$t('trials:loginLog:table:createTime')" prop="CreateTime" min-width="90"
|
||||||
:label="$t('trials:loginLog:table:createTime')"
|
show-overflow-tooltip sortable="custom" />
|
||||||
prop="CreateTime"
|
|
||||||
min-width="90"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable="custom"
|
|
||||||
/>
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<!-- 分页组件 -->
|
<!-- 分页组件 -->
|
||||||
<pagination
|
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize"
|
||||||
class="page"
|
@pagination="getList" />
|
||||||
:total="total"
|
|
||||||
:page.sync="searchData.PageIndex"
|
|
||||||
:limit.sync="searchData.PageSize"
|
|
||||||
@pagination="getList"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
<detail :config="config" :JsonObj="JsonObj" />
|
<detail :config="config" :JsonObj="JsonObj" />
|
||||||
</BaseContainer>
|
</BaseContainer>
|
||||||
|
@ -247,6 +140,7 @@ const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
TrialId: '',
|
TrialId: '',
|
||||||
OptType: null,
|
OptType: null,
|
||||||
|
OptTypeList: [],
|
||||||
Ip: '',
|
Ip: '',
|
||||||
LoginFaildName: '',
|
LoginFaildName: '',
|
||||||
LoginUserName: '',
|
LoginUserName: '',
|
||||||
|
|
Loading…
Reference in New Issue