2 lines
7.9 KiB
JavaScript
2 lines
7.9 KiB
JavaScript
|
webpackJsonp([6],{"3cEi":function(e,t){},"U+jS":function(e,t){},ZG6o:function(e,t){},zX1F:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("mvHQ"),n=o.n(a),l={data:function(){return{queryInfo:{operation:"",ip:"",createTime:"",pageNum:1,pageSize:10},logList:[],currpage:1,total:0,loading:!1}},mounted:function(){},created:function(){this.getLogList()},methods:{selectLogList:function(){this.queryInfo.pageNum=1,this.total=0,this.getLogList()},getLogList:function(){var e=this;this.loading=!0,null==this.queryInfo.createTime&&(this.queryInfo.createTime=""),this.$api.log.queryAllLogInfo(n()(this.queryInfo)).then(function(t){e.loading=!1,e.logList=t.data.data,e.total=t.data.count,e.queryInfo.pageNum=1}).catch(function(){e.loading=!1})},handleSizeChange:function(e){this.queryInfo.pageSize=e,this.getLogList()},handleCurrentChange:function(e){this.queryInfo.pageNum=e,this.getLogList()}}},r={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"sys-log-box"},[o("el-form",{staticClass:"item-form-inline",attrs:{inline:!0}},[o("el-form-item",{attrs:{label:"操作内容"}},[o("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入操作内容",clearable:""},model:{value:e.queryInfo.operation,callback:function(t){e.$set(e.queryInfo,"operation",t)},expression:"queryInfo.operation"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"操作IP"}},[o("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入IP地址",clearable:""},model:{value:e.queryInfo.ip,callback:function(t){e.$set(e.queryInfo,"ip",t)},expression:"queryInfo.ip"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"操作时间"}},[[o("div",{staticClass:"block"},[o("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期时间"},model:{value:e.queryInfo.createTime,callback:function(t){e.$set(e.queryInfo,"createTime",t)},expression:"queryInfo.createTime"}})],1)]],2),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.selectLogList}},[e._v("查询")])],1)],1),e._v(" "),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.logList.slice((e.currpage-1)*e.queryInfo.pageSize,e.currpage*e.queryInfo.pageSize),border:"",fit:!0}},[o("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"80"}}),e._v(" "),o("el-table-column",{attrs:{label:"操作内容",prop:"operation",width:"260"}}),e._v(" "),o("el-table-column",{attrs:{label:"方法名",prop:"method",width:"200","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{label:"参数",prop:"params",width:"200","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{label:"耗时",prop:"time",width:"100"}}),e._v(" "),o("el-table-column",{attrs:{label:"IP地址",prop:"ip"}}),e._v(" "),o("el-table-column",{attrs:{label:"操作时间",prop:"createTime",width:"180"}}),e._v(" "),o("el-table-column",{attrs:{label:"请求类型",prop:"requestType",width:"120"}}),e._v(" "),o("el-table-column",{attrs:{label:"接口地址",prop:"interfacePath",width:"300","show-overflow-tooltip":""}})],1),e._v(" "),o("el-pagination",{attrs:{"current-page":e.currpage,"page-sizes":[5,10,20,30],"page-size":e.queryInfo.pageSize,layout:"prev, pager, next, sizes, total, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)},staticRenderFns:[]};var i={data:function(){return{websocket:"",queryInfo:{ip:window.location.hostname,port:"localhost"==window.location.hostname?"9527":"19527",logType:"",logNum:"",logKeyword:""},queryInfoRules:{logType:[{required:!0,message:"请选择日志类型",trigger:"blur"}],logNum:[{required:!0,message:"请输入日志行数",trigger:"blur"},{validator:function(e,t,o){if(/^(?!0)(?:[0-9]{1,4}|10000)$/.test(t))return o();o(new Error("请输入1~10000之间的整数"))},trigger:"blur",max:10}],logKeyword:[{required:!1,message:"请输入关键字",trigger:"blur"}]},loadingShowFlag:!1}},mounted:function(){}
|
||
|
//# sourceMappingURL=6.ecbd846d8b8a22d497cb.js.map
|