"use strict";(self["webpackChunkfor_fun"]=self["webpackChunkfor_fun"]||[]).push([[676],{3592:function(t,e){const r={formatDate(t,e){var r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?r[n]:("00"+r[n]).substr((""+r[n]).length)));return e},secondToDateTimeStr(t){let e=new Date(1e3*t);return this.formatDate(e,"yyyy-MM-dd hh:mm:ss")},millisecondToDateTimeStr(t){let e=new Date(t);return this.formatDate(e,"yyyy-MM-dd hh:mm:ss")},getCurrentMonthFirst(){var t=new Date;return t.setDate(1),t},getNow(){return new Date},getNowTimeStr(){return this.formatDate(this.getNow(),"yyyy-MM-dd hh:mm:ss")},checkDateBeforeNow(t){var e="yyyMMdd",r=parseInt(DateUtil.formatDate(new Date,e)),n=parseInt(DateUtil.formatDate(t,e));return n<r},getDayChn(t){return"星期"+"天一二三四五六 ".charAt(new Date(t).getDay())},parseDateFromStr(t){if(t){var e=t.split(" "),r=e[0].split("-"),n=new Date(r[0],r[1]-1,r[2]);return n}},timeRange(t,e){let r=t.split(":");if(2!==r.length)return!1;let n=e.split(":");if(2!==n.length)return!1;let s=new Date,a=new Date,i=new Date;return s.setHours(r[0]),s.setMinutes(r[1]),a.setHours(n[0]),a.setMinutes(n[1]),i.getTime()-s.getTime()>0&&i.getTime()-a.getTime()<0},currentTimestampSecond(){return Math.ceil((new Date).getTime()/1e3)}};e.Z=r},9676:function(t,e,r){r.r(e),r.d(e,{default:function(){return f}});var n=r(6252),s=r(3577);const a=["title"],i=["href","innerHTML"];function o(t,e,r,o,l,u){const h=(0,n.up)("el-table-column"),m=(0,n.up)("el-table");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n.Wm)(m,{data:l.histList,style:{width:"100%"}},{default:(0,n.w5)((()=>[(0,n.Wm)(h,{type:"selection",width:"55"}),(0,n.Wm)(h,{prop:"url",label:"访问地址"},{default:(0,n.w5)((t=>[(0,n._)("div",{style:{width:"100%",height:"20px",overflow:"hidden","text-overflow":"ellipsis"},title:t.row.url},[(0,n._)("a",{href:t.row.url,target:"_blank",innerHTML:t.row.url},null,8,i)],8,a)])),_:1}),(0,n.Wm)(h,{prop:"time",label:"访问时间",width:"160"},{default:(0,n.w5)((t=>[(0,n.Uk)((0,s.zw)(u.formatTime(t.row.time)),1)])),_:1})])),_:1},8,["data"])])}var l=r(5108);const u={_KEY_HISTORY:"history.list",getHistory(t){l.j.get(this._KEY_HISTORY,t)},saveHistory(t){l.j.save(this._KEY_HISTORY,t)}};var h=u,m=r(3592),g={name:"History",data(){return{histList:[]}},methods:{loadHistory(){h.getHistory((t=>{console.log("get history:",t),this.histList=t}))},formatTime(t){return m.Z.millisecondToDateTimeStr(t)}},mounted(){this.loadHistory()}},d=r(3744);const w=(0,d.Z)(g,[["render",o]]);var f=w}}]);