yifengyide/public/dist/assets/operate-76781e0d.js

2 lines
1.3 KiB
JavaScript

import{n}from"./index-2b234fd0.js";const o={data(){return{list:[],pagination:{page:1,size:10,total:0},columns:[{colKey:"id",title:"ID"},{colKey:"username",title:"操作帐号"},{colKey:"ip",title:"操作IP"},{colKey:"createtime",title:"操作时间"},{colKey:"title",title:"操作内容"},{colKey:"url",title:"操作URL",width:200}]}},mounted(){this.getList()},methods:{getList(){this.$request.post("/index/backendLog",{page:this.pagination.page,size:this.pagination.size}).then(t=>{console.log(t),t.code==1&&(this.list=t.data.data,this.pagination.total=t.data.count)}).catch(t=>{console.log(t)})},onCurrentChange(t){this.pagination.page=t,this.getList()}}};var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("t-card",{attrs:{title:"操作日志列表",bordered:!1}},[e("div",{staticClass:"form-step-container"},[e("t-table",{attrs:{rowKey:"index",data:t.list,columns:t.columns,stripe:!1,bordered:!1,hover:!0,size:"large","table-layout":"auto",cellEmptyContent:"-"}}),e("div",{staticStyle:{"margin-top":"30px"}},[e("t-pagination",{attrs:{total:t.pagination.total,"page-size":t.pagination.size,showPageSize:!1},on:{"current-change":t.onCurrentChange}})],1)],1)])},l=[];const i={};var r=n(o,s,l,!1,c,null,null,null);function c(t){for(let a in i)this[a]=i[a]}const u=function(){return r.exports}();export{u as default};