webpackJsonp([12],{jkNV:function(t,e){},mF9P:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={components:{},data:function(){return{fullHeight:document.documentElement.clientHeight-116,input:"",input1:"",value1:"",startTime:"",endTime:"",tableData:[],loading:!1,page:1,tableSum:0,dialogVisible:!1,objData:{}}},computed:{},watch:{fullHeight:function(t){if(!this.timer){this.fullHeight=t,this.timer=!0;var e=this;setTimeout(function(){e.timer=!1},400)}}},methods:{get_boderHeight:function(){var t=this;window.onresize=function(){return window.fullHeight=document.documentElement.clientHeight,void(t.fullHeight=window.fullHeight)}},newPage:function(t){this.page=t,this.loading=!0,this.tableData=[],this.tableList()},detailsFunc:function(t){this.objData=t,this.dialogVisible=!0},tableList:function(){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=log.szmg_log.operation_log_list",data:this.qs.stringify({page:this.page,page_item:"20",user_name:this.input,role_name:this.input1,start_time:this.startTime,end_time:this.endTime})}).then(function(e){0!==e.data.data.total_item?(t.tableData=e.data.data.page_list,t.tableSum=e.data.data.total_item):(t.tableData=[],t.tableSum=0),t.loading=!1}).catch(function(e){t.loading=!1})},searchData:function(){this.value1?(this.startTime=this.formatTime(this.value1[0],"yyyy-MM-dd"),this.endTime=this.formatTime(this.value1[1],"yyyy-MM-dd")):(this.startTime="",this.endTime=""),this.tableList()},reset:function(){this.value1="",this.input="",this.input1="",this.startTime="",this.endTime="",this.tableList()}},created:function(){},mounted:function(){this.loading=!0,this.tableList()},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dayRecord_box"},[a("el-row",[a("el-col",[a("div",{staticClass:"search_box"},[a("el-input",{attrs:{size:"mini",placeholder:"请输入操作人员",clearable:""},on:{change:t.searchData},model:{value:t.input,callback:function(e){t.input="string"==typeof e?e.trim():e},expression:"input"}}),t._v(" "),a("el-input",{attrs:{size:"mini",placeholder:"请输入操作角色",clearable:""},on:{change:t.searchData},model:{value:t.input1,callback:function(e){t.input1="string"==typeof e?e.trim():e},expression:"input1"}}),t._v(" "),a("el-date-picker",{attrs:{size:"mini",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right",editable:!1},on:{change:t.searchData},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),t._v(" "),a("div",{staticClass:"btn_box"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.searchData}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.reset}},[t._v("重置")])],1)],1)])],1),t._v(" "),a("el-card",{staticStyle:{"margin-top":"15px"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%","overflow-y":"auto"},attrs:{data:t.tableData,stripe:"",height:624}},[a("el-table-column",{attrs:{prop:"id",label:"序号",width:"180"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"操作时间",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{"show-overflow-tooltip":!0,prop:"user_name",label:"操作人员",width:"280"}}),t._v(" "),a("el-table-column",{attrs:{"show-overflow-tooltip":!0,prop:"role_name",label:"操作账号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"ip",label:"IP"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("a",{staticClass:"reset",attrs:{href:"javascript:;"},on:{click:function(a){return t.detailsFunc(e.row)}}},[t._v("详情")])]}}])})],1),t._v(" "),t.tableData.length>0?a("el-pagination",{staticStyle:{margin:"60px 0 0 0"},attrs:{"page-size":20,"current-page":t.page,background:"",layout:"prev, pager, next, jumper",total:t.tableSum},on:{"current-change":t.newPage}}):t._e()],1),t._v(" "),a("el-dialog",{attrs:{title:"动作详情",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",[a("span",[t._v(t._s(t.objData.action)+"：")]),t._v(" "),a("span",[t._v(t._s(t.objData.op_details))])])])],1)},staticRenderFns:[]};var l=a("VU/8")(i,n,!1,function(t){a("jkNV")},"data-v-49b6ae8a",null);e.default=l.exports}});
//# sourceMappingURL=12.e6ebe87f44cd8d91c220.js.map