(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2375be"],{fb7c:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("d2-container",[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.log,size:"mini","empty-text":"暂无日志信息",stripe:""}},[e("el-table-column",{attrs:{prop:"time",label:"Time",width:"140"}}),e("el-table-column",{attrs:{prop:"message",label:"Message"}}),e("el-table-column",{attrs:{label:"Url",align:"center","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.get(e.row,"meta.url"))+" ")]}}])}),e("el-table-column",{attrs:{label:"Tag",align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[t.get(n.row,"meta.instance.$vnode.componentOptions.tag")?e("el-tag",{attrs:{type:"info",size:"mini"}},[t._v(" <"+t._s(t.get(n.row,"meta.instance.$vnode.componentOptions.tag"))+"> ")]):t._e()]}}])}),e("el-table-column",{attrs:{fixed:"right",align:"center",label:"More",width:"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleShowMore(n.row)}}},[e("d2-icon",{attrs:{name:"eye"}})],1)]}}])})],1),e("el-button",{attrs:{slot:"footer",type:"primary",size:"mini",loading:t.uploading},on:{click:t.handleUpload},slot:"footer"},[e("d2-icon",{attrs:{name:"cloud-upload"}}),t._v(" Upload "+t._s(t.log.length)+" log data ")],1)],1)},l=[],a=n("5530"),i=n("5880"),s=n("60bb"),r={data:function(){return{uploading:!1}},computed:Object(a["a"])({},Object(i["mapState"])("d2admin/log",["log"])),methods:{get:s["get"],handleShowMore:function(t){this.$notify({type:"info",title:"日志详情",message:"完整的日志内容已经打印到控制台"}),this.$log.capsule("D2Admin","handleShowMore","primary"),console.group(t.message),console.log("time: ",t.time),console.log("type: ",t.type),console.log(t.meta),console.groupEnd()},handleUpload:function(){var t=this;this.uploading=!0,this.$notify({type:"info",title:"日志上传",message:"开始上传".concat(this.log.length,"条日志")}),setTimeout((function(){t.uploading=!1,t.$notify({type:"success",title:"日志上传",message:"上传成功"})}),3e3)}}},c=r,u=n("2877"),d=Object(u["a"])(c,o,l,!1,null,null,null);e["default"]=d.exports}}]);