(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d22ca54"],{f3b3:function(t,e,r){"use strict";r.r(e);var o=r("2f62"),n=r("2ef0");function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s={name:"log",data:function(){return{columns:[{title:"时间",key:"time",width:180},{title:"信息",key:"message",minWidth:300},{title:"触发页面",slot:"page",minWidth:300},{title:"类型",width:100,slot:"type"},{title:"详细信息",width:100,slot:"more"}]}},computed:c({},Object(o.e)("admin/log",["log"])),methods:c(c({},Object(o.d)("admin/log",["clean"])),{},{get:n.get,handleMore:function(t){this.$Notice.info({title:"提示",desc:"请在浏览器控制台查看完整日志"}),this.$log.capsule("iView Admin","完整日志内容","primary")}})},u=r("2877"),f=Object(u.a)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"i-table-no-border"},[e("Card",{attrs:{bordered:!1,"dis-hover":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#2f54eb",expression:"'#2f54eb'"},{name:"bg-color",rawName:"v-bg-color",value:"#f0f5ff",expression:"'#f0f5ff'"}],attrs:{icon:"md-locate",size:"small"}}),e("span",{staticClass:"ivu-pl-8"},[t._v("前端日志")])],1),e("div",{attrs:{slot:"extra"},slot:"extra"},[e("Tooltip",{attrs:{content:"清空日志",placement:"top"}},[e("Button",{attrs:{type:"text"},on:{click:t.clean}},[e("Icon",{attrs:{type:"md-trash",size:"16"}})],1)],1)],1),e("Table",{attrs:{columns:t.columns,data:t.log},scopedSlots:t._u([{key:"page",fn:function(e){var r=e.row;return[t._v("\n                "+t._s(t.get(r,"meta.url"))+"\n            ")]}},{key:"type",fn:function(r){var o=r.row;return["info"===o.type?e("Tag",{attrs:{color:"blue",size:"medium"}},[t._v("info")]):t._e(),"success"===o.type?e("Tag",{attrs:{color:"green",size:"medium"}},[t._v("success")]):t._e(),"warning"===o.type?e("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("warning")]):t._e(),"error"===o.type?e("Tag",{attrs:{color:"red",size:"medium"}},[t._v("error")]):t._e()]}},{key:"more",fn:function(r){var o=r.row;return[e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.handleMore(o)}}},[t._v("查看")])]}}])})],1)],1)}),[],!1,null,null,null);e.default=f.exports}}]);