1 line
95 KiB
JavaScript
1 line
95 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1bcd0897"],{"03c2":function(e,t,i){},"0b65":function(e,t,i){"use strict";t["a"]={shortcuts:[{text:"今天",onClick:function(e){var t=new Date,i=new Date;i.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),e.$emit("pick",[i,t])}},{text:"昨天",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.$emit("pick",[i,t])}},{text:"最近7天",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-6048e5),e.$emit("pick",[i,t])}},{text:"最近30天",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-2592e6),e.$emit("pick",[i,t])}},{text:"本月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),e.$emit("pick",[i,t])}},{text:"本年",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.setTime(new Date((new Date).getFullYear(),0,1))),e.$emit("pick",[i,t])}}]}},"18a0":function(e,t,i){},"18ef":function(e,t,i){"use strict";i("03c2")},"2ca5":function(e,t,i){"use strict";i("6d4d")},"2e83":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));i("28a5");var r=i("8122"),a=i("e8ae"),s=i.n(a),n=i("21a6");function l(e,t,i,a,l,o){var c,d=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],u=1,m=new s.a.Workbook,p=e.length;function _(e){var t=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:{};c=m.addWorksheet(t,i)}function v(e,t){if(!Object(r["isEmpty"])(e)){e=Array.isArray(e)?e:e.split(",");for(var i=0;i<e.length;i++){var a=c.getRow(i+1);a.getCell(1).value=e[i],a.height=30,a.font={bold:!0,size:20,vertAlign:"subscript"},a.alignment={vertical:"bottom",horizontal:"center"},a.outlineLevel=1,c.mergeCells(i+1,1,i+1,t),a.commit(),u++}}}function h(e){if(!Object(r["isEmpty"])(e)){for(var t=c.getRow(u),i=1;i<=e.length;i++)t.getCell(i).value=e[i-1];t.height=25,t.width=50,t.font={bold:!0,size:18,vertAlign:"subscript"},t.alignment={vertical:"bottom",horizontal:"center"},t.outlineLevel=1,t.commit(),u++}}function g(e){if(!Object(r["isEmpty"])(e))for(var t=0;t<e.length;t++){for(var i=u,a=c.getRow(u),s=!1,n=0,l=0,o=0,d=0;d<e[t].length;d++)Array.isArray(e[t][d])?(n=o,s=!0,b(e[t][d],o),o+=e[t][d][0].length,l=o):(a.getCell(C(o)).value=e[t][d],a.getCell(C(o)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"center"},o++);s&&y(i,u,n,l),a.height=25,a.commit(),u++}}function b(e,t){for(var i=e.length,r=i-1,a=0;a<e.length;a++){for(var s=c.getRow(u),n=0;n<e[a].length;n++)s.getCell(C(t+n)).value=e[a][n],s.getCell(C(t+n)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},s.alignment={vertical:"middle",horizontal:"center"};s.height=25,s.commit(),a<r&&u++}}function y(e,t,i,r){for(var a=0;a<p;a++)(a<i||a>=r)&&c.mergeCells(C(a)+e+":"+C(a)+t)}function w(e){if(!Object(r["isEmpty"])(e))if(Array.isArray(e))for(var t=0;t<e.length;t++){var i=c.getRow(u);i.getCell(1).value=e[t],i.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+u+":"+C(p-1)+u),u++}else{var a=c.getRow(u);a.getCell(1).value=e[f],a.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+u+":"+C(p-1)+u)}}function C(e){if(e<26)return d[e];var t=e%26,i=Math.floor(e%26);return d[i]+d[t]}function k(e){e||(e=(new Date).getTime()),m.xlsx.writeBuffer().then((function(t){var i=new Blob([t],{type:"application/octet-stream"});n["saveAs"](i,e+".xlsx")}))}_(o),v(t,p),h(e),g(i),w(a),k(l)}},"634a":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{s
|