WangHan
2025-04-03 a1b85ef72062ca80db35546e4216dd564f3e0f57
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d23e54f"],{"433d":function(t,e,n){"use strict";var r=n("c559"),a={ftpUrl:r["a"].ftpUrl,apiBaseURL:r["a"].apiBaseURL};e["a"]=a},"6f7e":function(t,e,n){"use strict";function r(t){if(null==t||void 0==t||""==t||"null"==t||"undefined"==t)return!0;var e=t.toString().replace(/\s/g,"").replace(/-/g,"").replace(/:/g,"");return e}function a(t){return("00"+t).substr(t.length)}function i(t){if(null==t||void 0==t||""==t||"null"==t||"undefined"==t)return!0;var e=t.toString(),n=e.slice(0,4),r=e.slice(4,6),a=e.slice(6,8),i=e.slice(8,10),s=e.slice(10,12),l=e.slice(12,14),o=n+"-"+r+"-"+a+" "+i+":"+s+":"+l;return o}function s(t){if(null==t||void 0==t||""==t||"null"==t||"undefined"==t)return!0;var e=t.toString(),n=e.slice(0,4),r=e.slice(4,6),a=e.slice(6,8),i=n+"-"+r+"-"+a;return i}function l(t,e){try{t instanceof Date||(t=new Date(t)),void 0!=e&&""!=e||(e="yyyy-MM-dd hh:mm:ss"),/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var r in n)if(new RegExp("(".concat(r,")")).test(e)){var i=n[r]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?i:a(i))}return e}catch(s){return"-"}}function o(){var t=new Date,e=t.getFullYear(),n=(t.getMonth()+1).toString().padStart(2,"0"),r=t.getDate().toString().padStart(2,"0"),a=t.getHours().toString().padStart(2,"0"),i=t.getMinutes().toString().padStart(2,"0"),s=t.getSeconds().toString().padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(r," ").concat(a,":").concat(i,":").concat(s)}function c(){var t=new Date,e=t.getFullYear(),n=(t.getMonth()+1).toString().padStart(2,"0"),r=t.getDate().toString().padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(r)}function u(t){if(t){t instanceof Date||(t=new Date(t.replace(/-/g,"/")));var e=t.getTime(),n=6e4,r=60*n,a=24*r,i=7*a,s=30*a,l=(new Date).getTime(),o=l-e;if(!(o<0)){var c=o/n,u=o/r,f=o/a,g=o/i,d=o/s,p="";if(d>=1&&d<=3)p=" "+parseInt(d)+"月前";else if(g>=1&&g<=3)p=" "+parseInt(g)+"周前";else if(f>=1&&f<=6)p=" "+parseInt(f)+"天前";else if(u>=1&&u<=23)p=" "+parseInt(u)+"小时前";else if(c>=1&&c<=59)p=" "+parseInt(c)+"分钟前";else if(o>=0&&o<=n)p="刚刚";else{var m=new Date;m.setTime(e);var h=m.getFullYear(),v=m.getMonth()+1<10?"0"+(m.getMonth()+1):m.getMonth()+1,S=m.getDate()<10?"0"+m.getDate():m.getDate();m.getHours()<10?m.getHours():m.getHours(),m.getMinutes()<10?m.getMinutes():m.getMinutes(),m.getSeconds()<10?m.getSeconds():m.getSeconds();p=h+"-"+v+"-"+S}return p}}}n.r(e),n.d(e,"DateToLong",(function(){return r})),n.d(e,"LongToDateTime",(function(){return i})),n.d(e,"LongToDate",(function(){return s})),n.d(e,"formatDate",(function(){return l})),n.d(e,"formattedDate",(function(){return o})),n.d(e,"formattedDateDuan",(function(){return c})),n.d(e,"timeago",(function(){return u}))},"9e72":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[n("div",{staticClass:"filter-container"},[n("my-search",{ref:"searchBar",attrs:{items:t.items},on:{search:t.fifterForm}})],1),t._v(" "),n("div",{staticStyle:{"margin-top":"15px"}},[n("my-table-v2",{ref:"myTable",attrs:{filter:t.filterFrom,table:t.table}})],1)])],1)},a=[],i=n("80cb"),s=n("433d"),l=n("6f7e"),o={components:{MyTableV2:i["a"]},data:function(){return{items:[{type:"text",dataIndex:"userName",label:"登录账号",placeholder:"请输入",defaultValue:""}],filterFrom:{userName:null},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/p/login/info/list",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[]},columns:[{title:"登录账号",field:"userName",align:"left",minWidth:110},{title:"登录用户",field:"sysUserName",align:"left",minWidth:80},{title:"登录用户单位",field:"sysUserUnit",align:"left",minWidth:80},{title:"登录IP",field:"ipaddr",align:"center"},{title:"浏览器类型",field:"browser",align:"center"},{title:"登录状态",field:"status",align:"center",formatter:function(t){return{value:1==t.status?"登录成功":"登录失败"}}},{title:"提示消息",field:"msg",align:"left"},{title:"访问时间",field:"login_time",align:"center",width:180,formatter:function(t){return{value:Object(l["LongToDateTime"])(t.loginTime)}}}],operation:{show:!1},paging:{show:!0,page:{small:!1,pageNumber:1,pageSize:10,total:0}}}}},mounted:function(){},methods:{search:function(t){void 0!=t?this.$refs.myTable.search(t):this.$refs.myTable.search()},fifterForm:function(t){this.filterFrom=Object.assign(this.filterFrom,t),this.search(1)}}},c=o,u=n("2877"),f=Object(u["a"])(c,r,a,!1,null,"03e34f16",null);e["default"]=f.exports}}]);