webpackJsonp([16],{Ow4u:function(e,t){},VVSh:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("F4+m"),o=a("2Hum");var l=a("55us"),i={name:"LogPage",mixins:[r.a],data:function(){return{searchForm:{operateType:"",time:[]},logTypeList:[],modelTypeList:[],tableData:{loading:!1,head:[{name:"操作时间",key:"createTime",sortable:!1,width:"150",fixed:!1},{name:"操作人",key:"createUserName",sortable:!1,width:"100",fixed:!1},{name:"描述",key:"description",sortable:!1,width:"200",fixed:!1},{name:"提交参数",key:"operateParam",sortable:!1,width:"500",fixed:!1},{name:"模块",key:"model",sortable:!1,width:"100",fixed:!1,formatter:this.modelTypeFormatter},{name:"操作类型",key:"operateType",sortable:!1,width:"100",fixed:!1,formatter:this.logTypeFormatter}],body:[],option:[],condition:[]}}},mounted:function(){var e=this;Object(l.a)(["log_type","model_type"]).then(function(t){e.logTypeList=t.log_type||[],e.modelTypeList=t.model_type||[]}),this.search()},methods:{getTableData:function(){var e=this;this.tableData.loading=!0;var t={operateType:this.searchForm.operateType,model:this.searchForm.model,pageNo:this.pageNum,pageSize:this.pageSize};this.searchForm.time&&2===this.searchForm.time.length&&(t.createTime=this.searchForm.time[0]+"_"+this.searchForm.time[1]),function(e){return Object(o.a)({url:"/api/team/log/list",method:"POST",data:e})}(t).then(function(t){201==t.msg?e.dealTableResponse(t):e.$message.error(t.content)})},modelTypeFormatter:function(e,t,a,r){console.log(this.modelTypeList);var o=this.modelTypeList.find(function(e){return e.val===a});return o?o.name:a},logTypeFormatter:function(e,t,a,r){var o=this.logTypeList.find(function(e){return e.val===a});return o?o.name:a}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"main-page"},[a("div",{staticClass:"main-page-header"},[a("p",{staticClass:"title"},[e._v("日志管理")]),e._v(" "),a("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm,size:"small"}},[a("el-form-item",{attrs:{prop:"operateType",label:"操作类型"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择操作类型",clearable:!0},model:{value:e.searchForm.operateType,callback:function(t){e.$set(e.searchForm,"operateType",t)},expression:"searchForm.operateType"}},e._l(e.logTypeList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.val}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"model",label:"模块"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择模块",clearable:!0},model:{value:e.searchForm.model,callback:function(t){e.$set(e.searchForm,"model",t)},expression:"searchForm.model"}},e._l(e.modelTypeList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.val}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"time",label:"时间"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期","prefix-icon":"el-icon-date",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.searchForm.time,callback:function(t){e.$set(e.searchForm,"time",t)},expression:"searchForm.time"}})],1),e._v(" "),a("div",{staticClass:"btns"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.search}},[e._v("查询")]),e._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(t){return e.resetForm("searchForm")}}},[e._v("重置")])],1)],1)],1),e._v(" "),a("div",{staticClass:"main-page-body"},[a("div",{staticClass:"mainContent"},[a("table-mixin",{attrs:{pageSize:e.pageSize,pageNum:e.pageNum,total:e.total,pagination:e.pagination,handleSizeChange:e.handleSizeChange,handleCurrentChange:e.handleCurrentChange}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableData.loading,expression:"tableData.loading"}],attrs:{data:e.tableData.body},on:{"sort-change":e.handleSortChange}},[a("div",{staticClass:"noData",attrs:{slot:"empty"},slot:"empty"}),e._v(" "),a("el-table-column",{attrs:{label:"序号",type:"index","min-width":"50"}}),e._v(" "),e._l(e.tableData.head,function(e,t){return a("el-table-column",{key:t,attrs:{prop:e.key,label:e.name,align:"left",formatter:e.formatter,sortable:e.sortable,fixed:e.fixed,"min-width":e.width,"show-overflow-tooltip":!0}})})],2)],1)],1)])])},staticRenderFns:[]};var n=a("C7Lr")(i,s,!1,function(e){a("Ow4u")},"data-v-2a71a676",null);t.default=n.exports}});
//# sourceMappingURL=16.00506764cc724d14de22.1629880373763.js.map