|
@@ -21,15 +21,15 @@
|
|
|
<div class="filter-item">
|
|
|
登录地址:
|
|
|
<el-input
|
|
|
- v-model="platformName"
|
|
|
+ v-model="ipaddr"
|
|
|
placeholder="请输入"
|
|
|
style="width: 150px"
|
|
|
></el-input>
|
|
|
</div>
|
|
|
<div class="filter-item">
|
|
|
- 用户名称/账号:
|
|
|
+ 账号:
|
|
|
<el-input
|
|
|
- v-model="platformName"
|
|
|
+ v-model="userName"
|
|
|
placeholder="请输入"
|
|
|
style="width: 150px"
|
|
|
></el-input>
|
|
@@ -42,8 +42,8 @@
|
|
|
style="width: 130px"
|
|
|
clearable
|
|
|
>
|
|
|
- <el-option label="正常" :value="0"></el-option>
|
|
|
- <el-option label="停用" :value="1"></el-option>
|
|
|
+ <el-option label="成功" :value="0"></el-option>
|
|
|
+ <el-option label="失败" :value="1"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
|
|
@@ -60,6 +60,13 @@
|
|
|
></el-date-picker>
|
|
|
</div>
|
|
|
|
|
|
+ <el-button
|
|
|
+ class="search-button"
|
|
|
+ @click=";(ipaddr = ''), (userName = ''),(status = 0), (dateTime = ''),Select()"
|
|
|
+ >
|
|
|
+ 重置
|
|
|
+ </el-button>
|
|
|
+
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
icon="el-icon-search"
|
|
@@ -83,44 +90,56 @@
|
|
|
>
|
|
|
<!-- <el-table-column type="index" label="序号" width="50px"></el-table-column> -->
|
|
|
<el-table-column
|
|
|
- prop="tenantCount"
|
|
|
+ prop="infoId"
|
|
|
label="访问编号"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="tenantCount"
|
|
|
+ prop="nickName"
|
|
|
label="用户名称"
|
|
|
+ width="120px"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="tenantCount"
|
|
|
+ prop="userName"
|
|
|
+ width="120px"
|
|
|
label="账号"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="tenantCount"
|
|
|
+ prop="ipaddr"
|
|
|
label="登录地址"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="tenantCount"
|
|
|
+ prop="loginLocation"
|
|
|
label="登录地点"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="tenantCount"
|
|
|
+ prop="browser"
|
|
|
label="浏览器"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="tenantCount"
|
|
|
+ prop="os"
|
|
|
label="操作系统"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="tenantCount"
|
|
|
+ prop="status"
|
|
|
label="登录状态"
|
|
|
- ></el-table-column>
|
|
|
+ >
|
|
|
+ <template #default="scope">
|
|
|
+ <span
|
|
|
+ :style="{
|
|
|
+ color: scope.row.status == '0' ? '#8DCF6E' : '#FF747B',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ {{ scope.row.status === '0' ? '成功' : '失败' }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="tenantCount"
|
|
|
+ prop="msg"
|
|
|
label="操作信息"
|
|
|
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="createTime"
|
|
|
+ prop="loginTime"
|
|
|
label="登录时间"
|
|
|
width="170px"
|
|
|
></el-table-column>
|
|
@@ -172,7 +191,7 @@
|
|
|
import { useStore } from 'vuex'
|
|
|
import { defineComponent, onMounted, ref } from 'vue'
|
|
|
import DialogComponent from './dialogComponent'
|
|
|
-import * as api from '@/api/platManage/index.js'
|
|
|
+import * as api from '@/api/statisManage/loginLog.js'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
|
|
|
export default defineComponent({
|
|
@@ -191,10 +210,11 @@ export default defineComponent({
|
|
|
const pageSize = ref(15)
|
|
|
const total = ref(0)
|
|
|
|
|
|
- const status = ref(0)
|
|
|
+
|
|
|
const createTime = ref('')
|
|
|
- const platformName = ref('')
|
|
|
- const tenantCount = ref('')
|
|
|
+ const status = ref(0)
|
|
|
+ const ipaddr = ref('')
|
|
|
+ const userName=ref('')
|
|
|
|
|
|
const dateTime = ref('')
|
|
|
const select = ref(1)
|
|
@@ -278,15 +298,14 @@ export default defineComponent({
|
|
|
store.commit('TimeAll_function', dateTime.value)
|
|
|
const time = store.state.Time_Data
|
|
|
api
|
|
|
- .getPlatformList({
|
|
|
+ .getLoginLogList({
|
|
|
size: pageSize.value,
|
|
|
page: currentPage.value,
|
|
|
startTime: time[0] ? time[0] : '',
|
|
|
endTime: time[1] ? time[1] : '',
|
|
|
- // status: status.value,
|
|
|
- // createTime: createTime.value,
|
|
|
- platformName: platformName.value,
|
|
|
- // tenantCount: tenantCount.value,
|
|
|
+ status: status.value,
|
|
|
+ ipaddr: ipaddr.value,
|
|
|
+ userName: userName.value,
|
|
|
})
|
|
|
.then((requset) => {
|
|
|
if (requset.status === 'SUCCESS') {
|
|
@@ -385,8 +404,8 @@ export default defineComponent({
|
|
|
|
|
|
createTime,
|
|
|
tableData,
|
|
|
- platformName,
|
|
|
- tenantCount,
|
|
|
+ ipaddr, userName,
|
|
|
+ // tenantCount,
|
|
|
status,
|
|
|
|
|
|
showDialog,
|