"use strict";function _toConsumableArray(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n
');r.next("div.tab-content").find(".tab-pane").empty().append(a),i(e,n,a.find("table"))}a.prototype={init:function(){var n=this;o(n.element).prev("input[type=file]").on("change",function(t){n.excelPreview(t),o(this).val("")})},excelPreview:function(t){return function(t,a){var n=t.target.files,r=new FileReader;r.onload=function(t){try{var n=t.target.result,r=XLSX.read(n,{type:"binary",cellStyles:!0})}catch(t){return void console.log("文件类型不正确")}var e=r.SheetNames;!function(e,t,a){o(e).empty().append('
\n
\n \n
\n
\n \n
\n
\n
\n
'),t.forEach(function(t){var n=o(e).find(".nav-tabs"),r=o('
  • '+t+"
  • ");r.find("a").on("click",function(t){s(o(t.target),a,n)}),n.append(r),s(n.find(" li:first > a"),a,n),n.find("li:first").addClass("active")})}(a,e,r)},r.readAsBinaryString(n[0])}(t,this.element),!0}},o.fn[r]=function(t){var n=this;return n.each(function(){o.data(n,"plugin_"+r)||o.data(n,"plugin_"+r,new a(this,t))}),n}}(jQuery,window,document);var CUSTOM_UTIL=function(){function r(t){for(var n=[].concat(_toConsumableArray(t)),r=0,e=0;e