(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3b233999"],{"01de":function(e,t,a){},"37e5":function(e,t,a){"use strict";a("01de")},e32b:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"logs"},[a("page-header",[e._v(" 日志管理 ")]),a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.query,size:"small"}},[a("el-form-item",{attrs:{label:"类型"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.query.type,callback:function(t){e.$set(e.query,"type",t)},expression:"query.type"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"操作人"}},[a("el-input",{attrs:{placeholder:"请输入操作人"},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1),a("el-form-item",{attrs:{label:"信息"}},[a("el-input",{attrs:{placeholder:"请输入信息"},model:{value:e.query.title,callback:function(t){e.$set(e.query,"title",t)},expression:"query.title"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("查询")])],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.logs,"row-key":"id",border:"",lazy:"",load:e.load,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{type:"index",width:"50"}}),a("el-table-column",{attrs:{label:"时间",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("date")(t.row.createTime))+" ")]}}])}),a("el-table-column",{attrs:{prop:"createBy",label:"操作人",width:"200"}}),a("el-table-column",{attrs:{prop:"type",label:"类型",width:"200"}}),a("el-table-column",{attrs:{prop:"title",label:"信息"}}),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"default"},on:{click:function(a){return e.handlerDetail(t.$index,t.row)}}},[e._v("详情")])]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.pager.total,"page-size":12},on:{"current-change":e.pagerChanged}}),a("el-dialog",{attrs:{title:"日志详情",visible:e.visible,width:"30%"},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{attrs:{"label-width":"100px","label-suffix":"："}},[a("el-form-item",{attrs:{label:"操作时间"}},[e._v(" "+e._s(e._f("date")(e.detailData.createTime))+" ")]),a("el-form-item",{attrs:{label:"操作人"}},[e._v(" "+e._s(e.detailData.createBy)+" ")]),a("el-form-item",{attrs:{label:"服务模块"}},[e._v(" "+e._s(e.detailData.type)+" ")]),a("el-form-item",{attrs:{label:"服务接口"}},[e._v(" "+e._s(e.detailData.requestUri)+" ")]),a("el-form-item",{attrs:{label:"来访地址"}},[e._v(" "+e._s(e.detailData.remoteAddr)+" ")]),a("el-form-item",{attrs:{label:"详情信息"}},[e._v(" "+e._s(e.detailData.title)+" ")])],1)],1)],1)},r=[],i=a("d232"),n="/usercenter";function o(e){return i["post"]("".concat(n,"/log/page"),e)}var s={components:{},data:function(){return{query:{type:"",name:"",pageSize:12,pageNum:1,title:""},pager:{total:0},typeOptions:[{label:"消息日志",value:"liankong-service-message"},{label:"用户日志",value:"liankong-user-service"},{label:"文档日志",value:"liankong-service-document"},{label:"分享日志",value:"liankong-service-share"},{label:"用户登录/退出日志",value:"liankong-user-auth"}],logs:[],visible:!1,detailData:{}}},computed:{},watch:{},methods:{load:function(){var e=this;o(this.query).then((function(t){var a=t.code,l=t.data;t.message;0==a&&(e.pager.total=l.total,e.logs=l.records,console.log(e.logs))}))},doSearch:function(){var e=this;o(this.query).then((function(t){var a=t.code,l=t.data,r=t.message;0==a?(e.pager.total=l.total,e.logs=l.records):alert(r)}))},pagerChanged:function(e){this.query.pageNum=e,this.load()},handlerDetail:function(e,t){this.visible=!0,this.detailData=t}},created:function(){this.load()},mounted:function(){}},u=s,c=(a("37e5"),a("2877")),d=Object(c["a"])(u,l,r,!1,null,"760a31f6",null);t["default"]=d.exports}}]);
//# sourceMappingURL=chunk-3b233999.82fc5922.js.map