chunk-2d20f3bf.f346bbec.js 2.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20f3bf"],{b380:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("cl-crud",{on:{load:e.onLoad},scopedSlots:e._u([{key:"slot-clear-btn",fn:function(){return[r("el-button",{attrs:{size:"mini",type:"danger"},on:{click:e.clear}},[e._v("清空")])]},proxy:!0}])})},o=[],c=(r("efce"),r("4634"),r("ed8b"),r("3b46")),i=r("08c1");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){Object(c["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={data:function(){return{crud:null}},computed:l({},Object(i["b"])(["permission"])),methods:{onLoad:function(e){var t=e.ctx,r=e.app;this.crud=r,t.service(this.$service.system.log).set("table",{columns:[{prop:"id",label:"id",align:"center"},{prop:"userId",label:"用户id",align:"center"},{prop:"name",label:"昵称",align:"center"},{prop:"action",label:"请求地址",align:"center",minWidth:"200","show-overflow-tooltip":!0},{prop:"params",label:"参数",align:"center",minWidth:"200","show-overflow-tooltip":!0},{prop:"ip",label:"ip",minWidth:"150",align:"center"},{prop:"ipAddr",label:"ip地址",minWidth:"150",align:"center"},{prop:"createTime",label:"创建时间",minWidth:"150",align:"center",sortable:!0}],op:{visible:!1},props:{"default-sort":{prop:"createTime",order:"descending"}}}).set("search",{key:{placeholder:"请输入请求地址, 参数,ip地址"}}).set("layout",[["refresh-btn","add-btn","slot-clear-btn","flex1","search-key"],["data-table"],["flex1","pagination"]]).done(),r.refresh()},clear:function(){var e=this;this.$confirm("是否要清空日志","提示",{type:"warning"}).then((function(){e.$service.system.log.clear().then((function(){e.$message.success("清空成功"),e.crud.refresh({page:1})})).catch((function(t){e.$message.error(t)}))})).catch((function(){}))}}},p=s,u=r("4e82"),b=Object(u["a"])(p,n,o,!1,null,null,null);t["default"]=b.exports}}]);