iview-admin/js/chunk-b387.0eb9e47c.js

1 line
8.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b387"],{"080e":function(t,e,r){},"5a0c":function(t,e,r){!function(e,r){t.exports=r()}(0,function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",s="day",i="week",a="month",u="year",o=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,c=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},d=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},f={padStart:d,padZoneStr:function(t){var e=Math.abs(t),r=Math.floor(e/60),n=e%60;return(t<=0?"+":"-")+d(r,2,"0")+":"+d(n,2,"0")},monthDiff:function(t,e){var r=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(r,"months"),s=e-n<0,i=t.clone().add(r+(s?-1:1),"months");return Number(-(r+(e-n)/(s?n-i:i-n)))},absFloor:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},prettyUnit:function(o){return{M:a,y:u,w:i,d:s,h:n,m:r,s:e,ms:t}[o]||String(o||"").toLowerCase().replace(/s$/,"")},isUndefined:function(t){return void 0===t}},$="en",l={};l[$]=h;var m=function(t){return t instanceof g},p=function(t,e,r){var n;if(!t)return null;if("string"==typeof t)l[t]&&(n=t),e&&(l[t]=e,n=t);else{var s=t.name;l[s]=t,n=s}return r||($=n),n},y=function(t,e){if(m(t))return t.clone();var r=e||{};return r.date=t,new g(r)},M=function(t,e){return y(t,{locale:e.$L})},S=f;S.parseLocale=p,S.isDayjs=m,S.wrapper=M;var g=function(){function h(t){this.parse(t)}var d=h.prototype;return d.parse=function(t){var e,r;this.$d=null===(e=t.date)?new Date(NaN):S.isUndefined(e)?new Date:e instanceof Date?e:"string"==typeof e&&/.*[^Z]$/i.test(e)&&(r=e.match(o))?new Date(r[1],r[2]-1,r[3]||1,r[5]||0,r[6]||0,r[7]||0,r[8]||0):new Date(e),this.init(t)},d.init=function(t){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds(),this.$L=this.$L||p(t.locale,null,!0)||$},d.$utils=function(){return S},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.$compare=function(t){return this.valueOf()-y(t).valueOf()},d.isSame=function(t){return 0===this.$compare(t)},d.isBefore=function(t){return this.$compare(t)<0},d.isAfter=function(t){return this.$compare(t)>0},d.year=function(){return this.$y},d.month=function(){return this.$M},d.day=function(){return this.$W},d.date=function(){return this.$D},d.hour=function(){return this.$H},d.minute=function(){return this.$m},d.second=function(){return this.$s},d.millisecond=function(){return this.$ms},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,o){var c=this,h=!!S.isUndefined(o)||o,d=function(t,e){var r=M(new Date(c.$y,e,t),c);return h?r:r.endOf(s)},f=function(t,e){return M(c.toDate()[t].apply(c.toDate(),h?[0,0,0,0].slice(e):[23,59,59,999].slice(e)),c)};switch(S.prettyUnit(t)){case u:return h?d(1,0):d(31,11);case a:return h?d(1,this.$M):d(0,this.$M+1);case i:return d(h?this.$D-this.$W:this.$D+(6-this.$W),this.$M);case s:case"date":return f("setHours",0);case n:return f("setMinutes",1);case r:return f("setSeconds",2);case e:return f("setMilliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(i,o){switch(S.prettyUnit(i)){case s:this.$d.setDate(this.$D+(o-this.$W));break;case"date":this.$d.setDate(o);break;case a:this.$d.setMonth(o);break;case u:this.$d.setFullYear(o);break;case n:this.$d.setHours(o);break;case r:this.$d.setMinutes(o);break;case e:this.$d.setSeconds(o);break;case t:this.$d.setMilliseconds(o)}return this.init(),this},d.set=function(t,e){return this.clone().$set(t,e)},d.add=function(t,o){var c=this;t=Number(t);var h,d=S.prettyUnit(o),f=function(e,r){var n=c.set("date",1).set(e,r+t);return n.set("date",Math.min(c.$D,n.daysInMonth()))},$=function(e){var r=new Date(c.$d);return r.setDate(r.getDate()+e*t),M(r,c)};if(d===a)return f(a,this.$M);if(d===u)return f(u,this.$y);if(d===s)return $(1);if(d===i)return $(7);switch(d){case r:h=6e4;break;case n:h=36e5;break;case e:h=1e3;break;default:h=1}var l=this.valueOf()+t*h;return M(l,this)},d.subtract=function(t,e){return this.add(-1*t,e)},d.format=function(t){var e=this,r=t||"YYYY-MM-DDTHH:mm:ssZ",n=S.padZoneStr(this.$d.getTimezoneOffset()),s=this.$locale(),i=s.weekdays,a=s.months,u=function(t,e,r,n){return t&&t[e]||r[e].substr(0,n)};return r.replace(c,function(t){if(t.indexOf("[")>-1)return t.replace(/\[|\]/g,"");switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return String(e.$y);case"M":return String(e.$M+1);case"MM":return S.padStart(e.$M+1,2,"0");case"MMM":return u(s.monthsShort,e.$M,a,3);case"MMMM":return a[e.$M];case"D":return String(e.$D);case"DD":return S.padStart(e.$D,2,"0");case"d":return String(e.$W);case"dd":return u(s.weekdaysMin,e.$W,i,2);case"ddd":return u(s.weekdaysShort,e.$W,i,3);case"dddd":return i[e.$W];case"H":return String(e.$H);case"HH":return S.padStart(e.$H,2,"0");case"h":case"hh":return 0===e.$H?12:S.padStart(e.$H<13?e.$H:e.$H-12,"hh"===t?2:1,"0");case"a":return e.$H<12?"am":"pm";case"A":return e.$H<12?"AM":"PM";case"m":return String(e.$m);case"mm":return S.padStart(e.$m,2,"0");case"s":return String(e.$s);case"ss":return S.padStart(e.$s,2,"0");case"SSS":return S.padStart(e.$ms,3,"0");case"Z":return n;default:return n.replace(":","")}})},d.diff=function(t,o,c){var h=S.prettyUnit(o),d=y(t),f=this-d,$=S.monthDiff(this,d);switch(h){case u:$/=12;break;case a:break;case"quarter":$/=3;break;case i:$=f/6048e5;break;case s:$=f/864e5;break;case n:$=f/36e5;break;case r:$=f/6e4;break;case e:$=f/1e3;break;default:$=f}return c?$:S.absFloor($)},d.daysInMonth=function(){return this.endOf(a).$D},d.$locale=function(){return l[this.$L]},d.locale=function(t,e){var r=this.clone();return r.$L=p(t,e,!0),r},d.clone=function(){return M(this.toDate(),this)},d.toDate=function(){return new Date(this.$d)},d.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},d.toJSON=function(){return this.toISOString()},d.toISOString=function(){return this.toDate().toISOString()},d.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},d.toString=function(){return this.$d.toUTCString()},h}();return y.extend=function(t,e){return t(e,g,y),y},y.locale=p,y.isDayjs=m,y.unix=function(t){return y(1e3*t)},y.en=l[$],y})},"60b3":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Button",{staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"primary"},on:{click:t.exportData}},[t._v("导出日志记录")]),r("b",[t._v("注:这里只会显示成功保存到服务端的错误日志,而且页面错误日志不会在浏览器持久化存储,刷新页面即会丢失")]),r("Table",{ref:"table",attrs:{columns:t.columns,data:t.errorList}})],1)},s=[],i=r("c93e"),a=r("5a0c"),u=r.n(a),o=r("2f62"),c={name:"error_logger_page",data:function(){this.$createElement;return{columns:[{type:"index",title:"序号",width:100},{key:"type",title:"类型",width:100,render:function(t,e){var r=e.row;return t("div",[t("icon",{attrs:{size:16,type:"ajax"===r.type?"md-link":"md-code-working"}})])}},{key:"code",title:"编码",render:function(t,e){var r=e.row;return t("span",[0===r.code?"-":r.code])}},{key:"mes",title:"信息"},{key:"url",title:"URL"},{key:"time",title:"时间",render:function(t,e){var r=e.row;return t("span",[u()(r.time).format("YYYY-MM-DD HH:mm:ss")])},sortable:!0,sortType:"desc"}]}},computed:{errorList:function(){return this.$store.state.app.errorList}},methods:Object(i["a"])({},Object(o["d"])(["setHasReadErrorLoggerStatus"]),{exportData:function(){this.$refs.table.exportCsv({filename:"错误日志.csv"})}}),activated:function(){this.setHasReadErrorLoggerStatus()},mounted:function(){this.setHasReadErrorLoggerStatus()}},h=c,d=(r("b146"),r("2877")),f=Object(d["a"])(h,n,s,!1,null,null,null);f.options.__file="error-logger.vue";e["default"]=f.exports},b146:function(t,e,r){"use strict";var n=r("080e"),s=r.n(n);s.a}}]);