text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20f3bf"],{b380:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("d2-container",[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.log,size:"mini","empty-text":"暂无日志信息",stripe:""}},[n("el-table-column",{attrs:{prop:"time",label:"Time",width:"140"}}),n("el-table-column",{attrs:{prop:"message",label:"Message"}}),n("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"))+" ")]}}])}),n("el-table-column",{attrs:{label:"Tag",align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.get(e.row,"meta.instance.$vnode.componentOptions.tag")?n("el-tag",{attrs:{type:"info",size:"mini"}},[t._v(" <"+t._s(t.get(e.row,"meta.instance.$vnode.componentOptions.tag"))+"> ")]):t._e()]}}])}),n("el-table-column",{attrs:{fixed:"right",align:"center",label:"More",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(n){return t.handleShowMore(e.row)}}},[n("d2-icon",{attrs:{name:"eye"}})],1)]}}])})],1),n("el-button",{attrs:{slot:"footer",type:"primary",size:"mini",loading:t.uploading},on:{click:t.handleUpload},slot:"footer"},[n("d2-icon",{attrs:{name:"cloud-upload"}}),t._v(" Upload "+t._s(t.log.length)+" log data ")],1)],1)},l=[],a=n("fd6a"),i=n("7736"),s=n("7c98"),r={data:function(){return{uploading:!1}},computed:Object(a["a"])({},Object(i["e"])("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("cba8"),d=Object(u["a"])(c,o,l,!1,null,null,null);e["default"]=d.exports}}]);