1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f916ce8"],{"0b65":function(t,e,n){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,n=new Date;n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[n,e])}},{text:"昨天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[n,e])}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[n,e])}},{text:"本年",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[n,e])}}]}},"2e83":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));n("28a5");var r=n("8122"),o=n("e8ae"),a=n.n(o),i=n("21a6");function l(t,e,n,o,l,c){var u,s=["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"],d=1,m=new a.a.Workbook,g=t.length;function p(t){var e=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:{};u=m.addWorksheet(e,n)}function h(t,e){if(!Object(r["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var n=0;n<t.length;n++){var o=u.getRow(n+1);o.getCell(1).value=t[n],o.height=30,o.font={bold:!0,size:20,vertAlign:"subscript"},o.alignment={vertical:"bottom",horizontal:"center"},o.outlineLevel=1,u.mergeCells(n+1,1,n+1,e),o.commit(),d++}}}function v(t){if(!Object(r["isEmpty"])(t)){for(var e=u.getRow(d),n=1;n<=t.length;n++)e.getCell(n).value=t[n-1];e.height=25,e.width=50,e.font={bold:!0,size:18,vertAlign:"subscript"},e.alignment={vertical:"bottom",horizontal:"center"},e.outlineLevel=1,e.commit(),d++}}function b(t){if(!Object(r["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var n=d,o=u.getRow(d),a=!1,i=0,l=0,c=0,s=0;s<t[e].length;s++)Array.isArray(t[e][s])?(i=c,a=!0,y(t[e][s],c),c+=t[e][s][0].length,l=c):(o.getCell(x(c)).value=t[e][s],o.getCell(x(c)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},o.alignment={vertical:"middle",horizontal:"center"},c++);a&&w(n,d,i,l),o.height=25,o.commit(),d++}}function y(t,e){for(var n=t.length,r=n-1,o=0;o<t.length;o++){for(var a=u.getRow(d),i=0;i<t[o].length;i++)a.getCell(x(e+i)).value=t[o][i],a.getCell(x(e+i)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"center"};a.height=25,a.commit(),o<r&&d++}}function w(t,e,n,r){for(var o=0;o<g;o++)(o<n||o>=r)&&u.mergeCells(x(o)+t+":"+x(o)+e)}function _(t){if(!Object(r["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=u.getRow(d);n.getCell(1).value=t[e],n.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},n.alignment={vertical:"middle",horizontal:"left"},u.mergeCells("A"+d+":"+x(g-1)+d),d++}else{var o=u.getRow(d);o.getCell(1).value=t[f],o.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},o.alignment={vertical:"middle",horizontal:"left"},u.mergeCells("A"+d+":"+x(g-1)+d)}}function x(t){if(t<26)return s[t];var e=t%26,n=Math.floor(t%26);return s[n]+s[e]}function k(t){t||(t=(new Date).getTime()),m.xlsx.writeBuffer().then((function(e){var n=new Blob([e],{type:"application/octet-stream"});i["saveAs"](n,t+".xlsx")}))}p(c),h(e,g),v(t),b(n),_(o),k(l)}},7527:function(t,e,n){"use strict";n("dcc8")},"831a":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:"divBox"},[n("div",{staticClass:"selCard"},[n("el-form",{ref:"searchForm",attrs:{model:t
|