parent
05b6a4784e
commit
39a0859339
@ -0,0 +1,9 @@
|
|||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
export function index(data){
|
||||||
|
return request({
|
||||||
|
method:'post',
|
||||||
|
url:'/api/admin/operate-log/index',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -0,0 +1,75 @@
|
|||||||
|
<template>
|
||||||
|
<div style="padding: 0 20px;">
|
||||||
|
<div ref="lxHeader">
|
||||||
|
<lx-header icon="md-apps" text="系统日志" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
||||||
|
<div slot="content"></div>
|
||||||
|
<slot>
|
||||||
|
</slot>
|
||||||
|
</lx-header>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<xy-table :list="list" :table-item="table">
|
||||||
|
<template v-slot:btns><div></div></template>
|
||||||
|
</xy-table>
|
||||||
|
|
||||||
|
<div style="display: flex;justify-content: flex-end;">
|
||||||
|
<Page :total="total" show-elevator @on-change="pageChange"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {index} from "@/api/system/log"
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
select:{
|
||||||
|
pageIndex:1,
|
||||||
|
pageSize:10,
|
||||||
|
},
|
||||||
|
|
||||||
|
table:[
|
||||||
|
{
|
||||||
|
prop:'name',
|
||||||
|
label:'内容'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop:'admin.name',
|
||||||
|
label:'操作人'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop:'department.name',
|
||||||
|
label:'部门'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop:'created_at',
|
||||||
|
label:'日期'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
list:[],
|
||||||
|
total:0,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async getLog(){
|
||||||
|
const res = await index({
|
||||||
|
page:this.select.pageIndex,
|
||||||
|
page_size:this.select.pageSize
|
||||||
|
})
|
||||||
|
this.list = res.data
|
||||||
|
this.total = res.total
|
||||||
|
},
|
||||||
|
|
||||||
|
pageChange(e){
|
||||||
|
this.select.pageIndex = e
|
||||||
|
this.getLog()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getLog()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
</style>
|
||||||
Loading…
Reference in new issue