You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm/static/js/chunk-d60c.77f2ad28.js

1 line
6.5 KiB

4 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d60c"],{"2f65":function(e,t,n){},"7mY3":function(e,t,n){"use strict";var a=n("2f65");n.n(a).a},"9GgJ":function(e,t,n){"use strict";var a={name:"XrHeader",components:{},props:{iconClass:[String,Array],iconColor:String,label:String,showSearch:{type:Boolean,default:!1},searchIconType:{type:String,default:"text"},placeholder:{type:String,default:"请输入内容"},ftTop:{type:String,default:"15px"},content:[String,Number],inputAttr:{type:Object,default:function(){}}},data:function(){return{search:""}},computed:{},watch:{content:{handler:function(){this.search!=this.content&&(this.search=this.content)},immediate:!0}},mounted:function(){},beforeDestroy:function(){},methods:{inputChange:function(){this.$emit("update:content",this.search)},searchClick:function(){this.$emit("search",this.search)}}},i=(n("7mY3"),n("KHd+")),r=Object(i.a)(a,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("flexbox",{staticClass:"xr-header"},[e.iconClass?n("div",{staticClass:"xr-header__icon",style:{backgroundColor:e.iconColor}},[n("i",{class:e.iconClass})]):e._e(),e._v(" "),n("div",{staticClass:"xr-header__label"},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2),e._v(" "),e.showSearch?n("el-input",e._b({staticClass:"xr-header__search",class:{"is-text":"text"===e.searchIconType},style:{"margin-top":e.ftTop},attrs:{placeholder:e.placeholder},on:{input:e.inputChange},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchClick(t):null}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},"el-input",e.inputAttr,!1),["text"===e.searchIconType?n("el-button",{attrs:{slot:"append",type:"primary"},nativeOn:{click:function(t){return e.searchClick(t)}},slot:"append"},[e._v("搜索")]):n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchClick(t)}},slot:"append"})],1):e._e(),e._v(" "),n("div",{staticClass:"xr-header__ft",style:{top:e.ftTop}},[e._t("ft")],2)],1)},[],!1,null,"acb6d756",null);r.options.__file="index.vue";t.a=r.exports},"9wY2":function(e,t,n){"use strict";n.r(t);var a=n("QbLZ"),i=n.n(a),r=n("ooIi"),s=n("9GgJ"),o=n("HHBN"),l=n("XJYT"),c=n("7Qib"),u={name:"LoginLog",components:{XrHeader:s.a,XhUserCell:o.a},mixins:[],data:function(){return{loading:!1,tableHeight:document.documentElement.clientHeight-240,dateTime:[],userList:[],list:[],fieldList:[{prop:"username",label:"用户",width:100},{prop:"create_time",label:"登录时间",width:150},{prop:"ip",label:"IP地址",width:100},{prop:"address",label:"登录地点",width:150},{prop:"remark",label:"设备类型",width:150},{prop:"browser",label:"终端内核",width:150},{prop:"os",label:"平台",width:100},{prop:"type",label:"认证结果",width:100}],currentPage:1,pageSize:10,pageSizes:[10,20,30,40],total:0,postParams:{}}},computed:{},mounted:function(){window.onresize=function(){self.tableHeight=document.documentElement.clientHeight-240},this.getList()},methods:{userChange:function(e){this.userList=e.value||[]},refreshList:function(){this.currentPage=1,this.getList()},getList:function(){var e=this;this.loading=!0;var t={page:this.currentPage,limit:this.pageSize};this.userList&&this.userList.length&&(t.userIds=this.userList.map(function(e){return e.id})),this.dateTime&&this.dateTime.length&&(t.startTime=this.dateTime[0],t.endTime=this.dateTime[1]),this.postParams=t,Object(r.b)(t).then(function(t){var n=t.data.list||[];e.list=n,e.total=t.data.dataCount,e.loading=!1}).catch(function(){e.loading=!1})},cellClassName:function(e){e.row;var t=e.column;e.rowIndex,e.columnIndex;return"name"===t.property?"can-visit--underline":""},exportClick:function(){var e=l.Loading.service({fullscreen:!0,text:"导出中..."});Object(r.d)(i()({},this.postParams,{action:"getLoginRecord"})).then(function(t){Object(c.c)(t),e.close()}).catch(function(){e.close()})},handleSizeChange:function(e){this.pageSize=e,this.getList()},handleCurrentChange:function(e){this.currentPage=e,this.getList()}}},d=(n("vOif"),n("KHd+")),p=Object(d.a)(u,