fix: message obj
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="accessLogManagement-container">
|
<div class="accessLogManagement-container">
|
||||||
|
<el-tabs v-model="queryForm.appId" type="card" @tab-click="handleTabClick">
|
||||||
|
<el-tab-pane v-for="item in applicationList" :key="item.id" :label="item.name" :name="item.id" />
|
||||||
|
</el-tabs>
|
||||||
|
|
||||||
<vab-query-form>
|
<vab-query-form>
|
||||||
<vab-query-form-right-panel :span="12">
|
<vab-query-form-right-panel :span="12">
|
||||||
<el-form :inline="true" :model="queryForm" @submit.native.prevent>
|
<el-form :inline="true" :model="queryForm" @submit.native.prevent>
|
||||||
@@ -61,6 +65,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getList } from '@/api/accessLogManagement'
|
import { getList } from '@/api/accessLogManagement'
|
||||||
|
import { getList as getApplicationList } from '@/api/appManagement'
|
||||||
import { formatTime } from '@/utils'
|
import { formatTime } from '@/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -74,15 +79,17 @@
|
|||||||
selectRows: '',
|
selectRows: '',
|
||||||
elementLoadingText: '正在加载...',
|
elementLoadingText: '正在加载...',
|
||||||
queryForm: {
|
queryForm: {
|
||||||
appId: '69665538a49b8ae3be50fe5d',
|
appId: '',
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
permission: '',
|
permission: '',
|
||||||
},
|
},
|
||||||
|
applicationList: [],
|
||||||
timeOutID: null,
|
timeOutID: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.fetchApplicationList()
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -90,6 +97,13 @@
|
|||||||
clearTimeout(this.timeOutID)
|
clearTimeout(this.timeOutID)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async fetchApplicationList() {
|
||||||
|
const { data } = await getApplicationList({ pageNo: 1, pageSize: 100 })
|
||||||
|
this.applicationList = data.list
|
||||||
|
},
|
||||||
|
handleTabClick() {
|
||||||
|
this.queryData()
|
||||||
|
},
|
||||||
formatTime,
|
formatTime,
|
||||||
setSelectRows(val) {
|
setSelectRows(val) {
|
||||||
this.selectRows = val
|
this.selectRows = val
|
||||||
|
|||||||
Reference in New Issue
Block a user