chunk-2d22ca54.91a13752.js 2.8 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d22ca54"],{f3b3:function(e,t,r){"use strict";r.r(t);var o=r("2f62"),n=r("2ef0");function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(r,!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={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:a({},Object(o.e)("admin/log",["log"])),methods:a({},Object(o.d)("admin/log",["clean"]),{get:n.get,handleMore:function(e){this.$Notice.info({title:"提示",desc:"请在浏览器控制台查看完整日志"}),this.$log.capsule("iView Admin","完整日志内容","primary")}})},l=r("2877"),u=Object(l.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"i-table-no-border"},[r("Card",{attrs:{bordered:!1,"dis-hover":""}},[r("div",{attrs:{slot:"title"},slot:"title"},[r("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"}}),r("span",{staticClass:"ivu-pl-8"},[e._v("前端日志")])],1),r("div",{attrs:{slot:"extra"},slot:"extra"},[r("Tooltip",{attrs:{content:"清空日志",placement:"top"}},[r("Button",{attrs:{type:"text"},on:{click:e.clean}},[r("Icon",{attrs:{type:"md-trash",size:"16"}})],1)],1)],1),r("Table",{attrs:{columns:e.columns,data:e.log},scopedSlots:e._u([{key:"page",fn:function(t){var r=t.row;return[e._v("\n "+e._s(e.get(r,"meta.url"))+"\n ")]}},{key:"type",fn:function(t){var o=t.row;return["info"===o.type?r("Tag",{attrs:{color:"blue",size:"medium"}},[e._v("info")]):e._e(),"success"===o.type?r("Tag",{attrs:{color:"green",size:"medium"}},[e._v("success")]):e._e(),"warning"===o.type?r("Tag",{attrs:{color:"orange",size:"medium"}},[e._v("warning")]):e._e(),"error"===o.type?r("Tag",{attrs:{color:"red",size:"medium"}},[e._v("error")]):e._e()]}},{key:"more",fn:function(t){var o=t.row;return[r("Button",{attrs:{type:"primary"},on:{click:function(t){return e.handleMore(o)}}},[e._v("查看")])]}}])})],1)],1)}),[],!1,null,null,null);t.default=u.exports}}]);