chunk-04621586.23d8cd1b.js 9.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04621586"],{"04d1":function(e,t,n){var a=n("342f"),r=a.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},"4e82":function(e,t,n){"use strict";var a=n("23e7"),r=n("e330"),o=n("59ed"),i=n("7b0b"),l=n("07fa"),s=n("083a"),c=n("577e"),u=n("d039"),d=n("addb"),m=n("a640"),h=n("04d1"),p=n("d998"),f=n("2d00"),g=n("512ce"),v=[],y=r(v.sort),b=r(v.push),w=u((function(){v.sort(void 0)})),k=u((function(){v.sort(null)})),x=m("sort"),S=!u((function(){if(f)return f<70;if(!(h&&h>3)){if(p)return!0;if(g)return g<603;var e,t,n,a,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(a=0;a<47;a++)v.push({k:t+a,v:n})}for(v.sort((function(e,t){return t.v-e.v})),a=0;a<v.length;a++)t=v[a].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}})),P=w||!k||!x||!S,q=function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}};a({target:"Array",proto:!0,forced:P},{sort:function(e){void 0!==e&&o(e);var t=i(this);if(S)return void 0===e?y(t):y(t,e);var n,a,r=[],c=l(t);for(a=0;a<c;a++)a in t&&b(r,t[a]);d(r,q(e)),n=l(r),a=0;while(a<n)t[a]=r[a++];while(a<c)s(t,a++);return t}})},"512ce":function(e,t,n){var a=n("342f"),r=a.match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},"67ef":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"登录地址",prop:"ipaddr"}},[n("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入登录地址",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.ipaddr,callback:function(t){e.$set(e.queryParams,"ipaddr",t)},expression:"queryParams.ipaddr"}})],1),n("el-form-item",{attrs:{label:"用户名称",prop:"userName"}},[n("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入用户名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.userName,callback:function(t){e.$set(e.queryParams,"userName",t)},expression:"queryParams.userName"}})],1),n("el-form-item",{attrs:{label:"状态",prop:"status"}},[n("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"登录状态",clearable:""},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.dict.type.sys_common_status,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),n("el-form-item",{attrs:{label:"登录时间"}},[n("el-date-picker",{staticStyle:{width:"240px"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),n("el-row",{staticClass:"mb8",attrs:{gutter:10}},[n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:logininfor:remove"],expression:"['monitor:logininfor:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:logininfor:remove"],expression:"['monitor:logininfor:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini"},on:{click:e.handleClean}},[e._v("清空")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:logininfor:unlock"],expression:"['monitor:logininfor:unlock']"}],attrs:{type:"primary",plain:"",icon:"el-icon-unlock",size:"mini",disabled:e.single},on:{click:e.handleUnlock}},[e._v("解锁")])],1),n("el-col",{attrs:{span:1.5}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:logininfor:export"],expression:"['monitor:logininfor:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),n("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tables",attrs:{data:e.list,"default-sort":e.defaultSort},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},[n("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),n("el-table-column",{attrs:{label:"访问编号",align:"center",prop:"infoId"}}),n("el-table-column",{attrs:{label:"用户名称",align:"center",prop:"userName","show-overflow-tooltip":!0,sortable:"custom","sort-orders":["descending","ascending"]}}),n("el-table-column",{attrs:{label:"登录地址",align:"center",prop:"ipaddr",width:"130","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"登录地点",align:"center",prop:"loginLocation","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"浏览器",align:"center",prop:"browser","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"操作系统",align:"center",prop:"os"}}),n("el-table-column",{attrs:{label:"登录状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("dict-tag",{attrs:{options:e.dict.type.sys_common_status,value:t.row.status}})]}}])}),n("el-table-column",{attrs:{label:"操作信息",align:"center",prop:"msg","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{label:"登录日期",align:"center",prop:"loginTime",sortable:"custom","sort-orders":["descending","ascending"],width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.parseTime(t.row.loginTime)))])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})],1)},r=[],o=n("5530"),i=(n("d81d"),n("4e82"),n("b775"));function l(e){return Object(i["a"])({url:"/monitor/logininfor/list",method:"get",params:e})}function s(e){return Object(i["a"])({url:"/monitor/logininfor/"+e,method:"delete"})}function c(e){return Object(i["a"])({url:"/monitor/logininfor/unlock/"+e,method:"get"})}function u(){return Object(i["a"])({url:"/monitor/logininfor/clean",method:"delete"})}var d={name:"Logininfor",dicts:["sys_common_status"],data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,selectName:"",showSearch:!0,total:0,list:[],dateRange:[],defaultSort:{prop:"loginTime",order:"descending"},queryParams:{pageNum:1,pageSize:10,ipaddr:void 0,userName:void 0,status:void 0}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,l(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.list=t.rows,e.total=t.total,e.loading=!1}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.queryParams.pageNum=1,this.$refs.tables.sort(this.defaultSort.prop,this.defaultSort.order)},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.infoId})),this.single=1!=e.length,this.multiple=!e.length,this.selectName=e.map((function(e){return e.userName}))},handleSortChange:function(e,t,n){this.queryParams.orderByColumn=e.prop,this.queryParams.isAsc=e.order,this.getList()},handleDelete:function(e){var t=this,n=e.infoId||this.ids;this.$modal.confirm('是否确认删除访问编号为"'+n+'"的数据项?').then((function(){return s(n)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))},handleClean:function(){var e=this;this.$modal.confirm("是否确认清空所有登录日志数据项?").then((function(){return u()})).then((function(){e.getList(),e.$modal.msgSuccess("清空成功")})).catch((function(){}))},handleUnlock:function(){var e=this,t=this.selectName;this.$modal.confirm('是否确认解锁用户"'+t+'"数据项?').then((function(){return c(t)})).then((function(){e.$modal.msgSuccess("用户"+t+"解锁成功")})).catch((function(){}))},handleExport:function(){this.download("monitor/logininfor/export",Object(o["a"])({},this.queryParams),"logininfor_".concat((new Date).getTime(),".xlsx"))}}},m=d,h=n("2877"),p=Object(h["a"])(m,a,r,!1,null,null,null);t["default"]=p.exports},addb:function(e,t,n){var a=n("4dae"),r=Math.floor,o=function(e,t){var n=e.length,s=r(n/2);return n<8?i(e,t):l(e,o(a(e,0,s),t),o(a(e,s),t),t)},i=function(e,t){var n,a,r=e.length,o=1;while(o<r){a=o,n=e[o];while(a&&t(e[a-1],n)>0)e[a]=e[--a];a!==o++&&(e[a]=n)}return e},l=function(e,t,n,a){var r=t.length,o=n.length,i=0,l=0;while(i<r||l<o)e[i+l]=i<r&&l<o?a(t[i],n[l])<=0?t[i++]:n[l++]:i<r?t[i++]:n[l++];return e};e.exports=o},d998:function(e,t,n){var a=n("342f");e.exports=/MSIE|Trident/.test(a)}}]);