h(c.max))&&(s.endDate=lay.extend({},c.max)),e&&e(),s},h.prototype.mark=function(e,i){var a,t=this.config;return lay.each(t.mark,function(e,t){e=e.split("-");e[0]!=i[0]&&0!=e[0]||e[1]!=i[1]&&0!=e[1]||e[2]!=i[2]||(a=t||i[2])}),a&&e.html(''+a+""),this},h.prototype.limit=function(e,t,i,n){var l=this,a=l.config,o={},i=a[41o.max,e&&e[a?"addClass":"removeClass"](C),a},h.prototype.thisDateTime=function(e){var t=this.config;return e?this.endDate:t.dateTime},h.prototype.calendar=function(e,t,i){var n,l,o,r=this,a=r.config,t=t?1:0,s=e||r.thisDateTime(t),c=new Date,u=r.lang(),d="date"!==a.type&&"datetime"!==a.type,y=lay(r.table[t]).find("td"),t=lay(r.elemHeader[t][2]).find("span");return s.yearp[1]&&(s.year=p[1],r.hint(u.invalidDate)),r.firstDate||(r.firstDate=lay.extend({},s)),c.setFullYear(s.year,s.month,1),n=c.getDay(),l=f.getEndDate(s.month||12,s.year),o=f.getEndDate(s.month+1,s.year),lay.each(y,function(e,t){var i=[s.year,s.month],a=0;(t=lay(t)).removeAttr("class"),e=r.firstDate.year&&(i.month=s.max.month,i.date=s.max.date),r.limit(lay(t),i,a),n++}),lay(h[m?0:1]).attr("lay-ym",n-8+"-"+g[1]).html(e+v+" - "+(n-1)+v)):"month"===t?(lay.each(new Array(12),function(e){var t=lay.elem("li",{"lay-ym":e}),i={year:g[0],month:e};e+1==g[1]&&lay(t).addClass(k),t.innerHTML=u.month[e]+(m?"月":""),d.appendChild(t),g[0]=r.firstDate.year&&(i.date=s.max.date),r.limit(lay(t),i,a)}),lay(h[m?0:1]).attr("lay-ym",g[0]+"-"+g[1]).html(g[0]+v)):"time"===t&&(l=function(){lay(d).find("ol").each(function(i,e){lay(e).find("li").each(function(e,t){r.limit(lay(t),[{hours:e},{hours:r[x].hours,minutes:e},{hours:r[x].hours,minutes:r[x].minutes,seconds:e}][i],a,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][i])})}),s.range||r.limit(lay(r.footer).find(T),r[x],0,["hours","minutes","seconds"])},s.range?r[x]||(r[x]="startTime"===x?c:r.endDate):r[x]=c,lay.each([24,60,60],function(t,e){var i=lay.elem("li"),a=[""+u.time[t]+"
"];lay.each(new Array(e),function(e){a.push("- "+lay.digit(e,2)+"
")}),i.innerHTML=a.join("")+"
",d.appendChild(i)}),l()),p&&f.removeChild(p),f.appendChild(d),"year"===t||"month"===t?(lay(r.elemMain[a]).addClass("laydate-ym-show"),lay(d).find("li").on("click",function(){var e=0|lay(this).attr("lay-ym");lay(this).hasClass(C)||(0===a?(c[t]=e,r.limit(lay(r.footer).find(T),null,0)):r.endDate[t]=e,"year"===s.type||"month"===s.type?(lay(d).find("."+k).removeClass(k),lay(this).addClass(k),"month"===s.type&&"year"===t&&(r.listYM[a][0]=e,i&&((a?r.endDate:c).year=e),r.list("month",a))):(r.checkDate("limit").calendar(null,a),r.closeList()),r.setBtnStatus(),s.range||("month"===s.type&&"month"===t||"year"===s.type&&"year"===t)&&r.setValue(r.parse()).remove().done(),r.done(null,"change"),lay(r.footer).find("."+D).removeClass(C))})):(p=lay.elem("span",{class:E}),o=function(){lay(d).find("ol").each(function(e){var i=this,t=lay(i).find("li");i.scrollTop=30*(r[x][b[e]]-2),i.scrollTop<=0&&t.each(function(e,t){if(!lay(this).hasClass(C))return i.scrollTop=30*(e-2),!0})})},f=lay(y[2]).find("."+E),o(),p.innerHTML=s.range?[u.startTime,u.endTime][a]:u.timeTips,lay(r.elemMain[a]).addClass("laydate-time-show"),f[0]&&f.remove(),y[2].appendChild(p),lay(d).find("ol").each(function(t){var i=this;lay(i).find("li").on("click",function(){var e=0|this.innerHTML;lay(this).hasClass(C)||(s.range?r[x][b[t]]=e:c[b[t]]=e,lay(i).find("."+k).removeClass(k),lay(this).addClass(k),l(),o(),!r.endDate&&"time"!==s.type||r.done(null,"change"),r.setBtnStatus())})})),r},h.prototype.listYM=[],h.prototype.closeList=function(){var i=this;i.config,lay.each(i.elemCont,function(e,t){lay(this).find("."+w).remove(),lay(i.elemMain[e]).removeClass("laydate-ym-show laydate-time-show")}),lay(i.elem).find("."+E).remove()},h.prototype.setBtnStatus=function(e,t,i){var a=this,n=a.config,l=a.lang(),o=lay(a.footer).find(T);n.range&&"time"!==n.type&&(t=t||n.dateTime,i=i||a.endDate,n=a.newDate(t).getTime()>a.newDate(i).getTime(),a.limit(null,t)||a.limit(null,i)?o.addClass(C):o[n?"addClass":"removeClass"](C),e&&n&&a.hint("string"==typeof e?l.timeout.replace(/\u65e5\u671f/g,e):l.timeout))},h.prototype.parse=function(e,t){var i=this,a=i.config,t=t||("end"==e?lay.extend({},i.endDate,i.endTime):a.range?lay.extend({},a.dateTime,i.startTime):a.dateTime),t=f.parse(t,i.format,1);return a.range&&void 0===e?t+" "+i.rangeStr+" "+i.parse("end"):t},h.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},h.prototype.setValue=function(e){var t=this,i=t.config,a=t.bindElem||i.elem[0];return"static"===i.position||(e=e||"",t.isInput(a)?lay(a).val(e):t.rangeElem?(t.rangeElem[0].val(e?t.parse("start"):""),t.rangeElem[1].val(e?t.parse("end"):"")):(0===lay(a).find("*").length&&lay(a).html(e),lay(a).attr("lay-date",e))),t},h.prototype.preview=function(){var e,t=this,i=t.config;i.isPreview&&(e=lay(t.elem).find("."+v),t=!i.range||t.endDate?t.parse():"",e.html(t).css({color:"#5FB878"}),setTimeout(function(){e.css({color:"#666"})},300))},h.prototype.done=function(e,t){var i=this,a=i.config,n=lay.extend({},lay.extend(a.dateTime,i.startTime)),l=lay.extend({},lay.extend(i.endDate,i.endTime));return lay.each([n,l],function(e,t){"month"in t&&lay.extend(t,{month:t.month+1})}),i.preview(),e=e||[i.parse(),n,l],"function"==typeof a[t||"done"]&&a[t||"done"].apply(a,e),i},h.prototype.choose=function(e,t){var i=this,a=i.config,n=i.thisDateTime(t),l={year:0|(l=(lay(i.elem).find("td"),e.attr("lay-ymd").split("-")))[0],month:(0|l[1])-1,date:0|l[2]};e.hasClass(C)||(lay.extend(n,l),a.range?(lay.each(["startTime","endTime"],function(e,t){i[t]=i[t]||{hours:0,minutes:0,seconds:0}}),i.calendar(null,t).done(null,"change")):"static"===a.position?i.calendar().done().done(null,"change"):"date"===a.type?i.setValue(i.parse()).remove().done():"datetime"===a.type&&i.calendar().done(null,"change"))},h.prototype.tool=function(e,t){var i=this,a=i.config,n=i.lang(),l=a.dateTime,o="static"===a.position,r={datetime:function(){lay(e).hasClass(C)||(i.list("time",0),a.range&&i.list("time",1),lay(e).attr("lay-type","date").html(i.lang().dateTips))},date:function(){i.closeList(),lay(e).attr("lay-type","datetime").html(i.lang().timeTips)},clear:function(){o&&(lay.extend(l,i.firstDate),i.calendar()),a.range&&(delete a.dateTime,delete i.endDate,delete i.startTime,delete i.endTime),i.setValue("").remove(),i.done(["",{},{}])},now:function(){var e=new Date;lay.extend(l,i.systemDate(),{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}),i.setValue(i.parse()).remove(),o&&i.calendar(),i.done()},confirm:function(){if(a.range){if(lay(e).hasClass(C))return i.hint("time"===a.type?n.timeout.replace(/\u65e5\u671f/g,"时间"):n.timeout)}else if(lay(e).hasClass(C))return i.hint(n.invalidDate);i.done(),i.setValue(i.parse()).remove()}};r[t]&&r[t]()},h.prototype.change=function(a){function e(e){var t=lay(s).find(".laydate-year-list")[0],i=lay(s).find(".laydate-month-list")[0];return t&&(c[0]=e?c[0]-15:c[0]+15,n.list("year",a)),i&&(e?c[0]--:c[0]++,n.list("month",a)),(t||i)&&(lay.extend(o,{year:c[0]}),r&&(o.year=c[0]),l.range||n.done(null,"change"),l.range||n.limit(lay(n.footer).find(T),{year:c[0]})),n.setBtnStatus(),t||i}var n=this,l=n.config,o=n.thisDateTime(a),r=l.range&&("year"===l.type||"month"===l.type),s=n.elemCont[a||0],c=n.listYM[a];return{prevYear:function(){e("sub")||(o.year--,n.checkDate("limit").calendar(null,a),n.done(null,"change"))},prevMonth:function(){var e=n.getAsYM(o.year,o.month,"sub");lay.extend(o,{year:e[0],month:e[1]}),n.checkDate("limit").calendar(null,a),n.done(null,"change")},nextMonth:function(){var e=n.getAsYM(o.year,o.month);lay.extend(o,{year:e[0],month:e[1]}),n.checkDate("limit").calendar(null,a),n.done(null,"change")},nextYear:function(){e()||(o.year++,n.checkDate("limit").calendar(null,a),n.done(null,"change"))}}},h.prototype.changeEvent=function(){var n=this;n.config,lay(n.elem).on("click",function(e){lay.stope(e)}).on("mousedown",function(e){lay.stope(e)}),lay.each(n.elemHeader,function(a,e){lay(e[0]).on("click",function(e){n.change(a).prevYear()}),lay(e[1]).on("click",function(e){n.change(a).prevMonth()}),lay(e[2]).find("span").on("click",function(e){var t=lay(this),i=t.attr("lay-ym"),t=t.attr("lay-type");i&&(i=i.split("-"),n.listYM[a]=[0|i[0],0|i[1]],n.list(t,a),lay(n.footer).find("."+D).addClass(C))}),lay(e[3]).on("click",function(e){n.change(a).nextMonth()}),lay(e[4]).on("click",function(e){n.change(a).nextYear()})}),lay.each(n.table,function(e,t){lay(t).find("td").on("click",function(){n.choose(lay(this),e)})}),lay(n.footer).find("span").on("click",function(){var e=lay(this).attr("lay-type");n.tool(this,e)})},h.prototype.isInput=function(e){return/input|textarea/.test(e.tagName.toLocaleLowerCase())},h.prototype.events=function(){function e(e,t){e.on(a.trigger,function(){t&&(i.bindElem=this),i.render()})}var i=this,a=i.config;a.elem[0]&&!a.elem[0].eventHandler&&(e(a.elem,"bind"),e(a.eventElem),a.elem[0].eventHandler=!0)},r.that={},r.getThis=function(e){var t=r.that[e];return!t&&a&&layui.hint().error(e?i+" instance with ID '"+e+"' not found":"ID argument required"),t},l.run=function(a){a(o).on("mousedown",function(e){var t,i;!f.thisId||(t=r.getThis(f.thisId))&&(i=t.config,e.target!==i.elem[0]&&e.target!==i.eventElem[0]&&e.target!==a(i.closeStop)[0]&&t.remove())}).on("keydown",function(e){var t;!f.thisId||(t=r.getThis(f.thisId))&&13===e.keyCode&&a("#"+t.elemID)[0]&&t.elemID===h.thisElemDate&&(e.preventDefault(),a(t.footer).find(T)[0].click())}),a(n).on("resize",function(){if(f.thisId){var e=r.getThis(f.thisId);if(e)return!(!e.elem||!a(".layui-laydate")[0])&&void e.position()}})},f.render=function(e){e=new h(e);return r.call(e)},f.parse=function(i,a,n){return i=i||{},a=((a="string"==typeof a?r.formatArr(a):a)||[]).concat(),lay.each(a,function(e,t){/yyyy|y/.test(t)?a[e]=lay.digit(i.year,t.length):/MM|M/.test(t)?a[e]=lay.digit(i.month+(n||0),t.length):/dd|d/.test(t)?a[e]=lay.digit(i.date,t.length):/HH|H/.test(t)?a[e]=lay.digit(i.hours,t.length):/mm|m/.test(t)?a[e]=lay.digit(i.minutes,t.length):/ss|s/.test(t)&&(a[e]=lay.digit(i.seconds,t.length))}),a.join("")},f.getEndDate=function(e,t){var i=new Date;return i.setFullYear(t||i.getFullYear(),e||i.getMonth()+1,1),new Date(i.getTime()-864e5).getDate()},a?(f.ready(),layui.define("lay",function(e){f.path=layui.cache.dir,l.run(lay),e(i,f)})):"function"==typeof define&&define.amd?define(function(){return l.run(lay),f}):(f.ready(),l.run(n.lay),n.laydate=f)}(window,window.document),layui.define("jquery",function(e){"use strict";var u=layui.$,l=layui.hint(),n={fixbar:function(t){var e,i,a="layui-fixbar",n="layui-fixbar-top",l=u(document),o=u("body");(t=u.extend({showHeight:200},t)).bar1=!0===t.bar1?"":t.bar1,t.bar2=!0===t.bar2?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";function r(){l.scrollTop()>=t.showHeight?e||(c.show(),e=1):e&&(c.hide(),e=0)}var s=[t.bar1,t.bar2,""],s=u(['',t.bar1?'- '+s[0]+"
":"",t.bar2?'- '+s[1]+"
":"",'- '+s[2]+"
","
"].join("")),c=s.find("."+n);u("."+a)[0]||("object"==typeof t.css&&s.css(t.css),o.append(s),r(),s.find("li").on("click",function(){var e=u(this).attr("lay-type");"top"===e&&u("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,e)}),l.on("scroll",function(){clearTimeout(i),i=setTimeout(function(){r()},100)}))},countdown:function(e,t,i){var a=this,n="function"==typeof t,l=new Date(e).getTime(),o=new Date(!t||n?(new Date).getTime():t).getTime(),r=l-o,l=[Math.floor(r/864e5),Math.floor(r/36e5)%24,Math.floor(r/6e4)%60,Math.floor(r/1e3)%60];n&&(i=t);n=setTimeout(function(){a.countdown(e,o+1e3,i)},1e3);return i&&i(0/g,">").replace(/'/g,"'").replace(/"/g,""")},unescape:function(e){return String(e||"").replace(/\&/g,"&").replace(/\/g,">").replace(/\'/,"'").replace(/\"/,'"')},toVisibleArea:function(e){var t,i,a,n,l,o,r,s;(e=u.extend({margin:160,duration:200,type:"y"},e)).scrollElem[0]&&e.thisElem[0]&&(t=e.scrollElem,i=e.thisElem,n=(s="y"===e.type)?"top":"left",l=t[a=s?"scrollTop":"scrollLeft"](),o=t[s?"height":"width"](),r=t.offset()[n],s={},((r=i.offset()[n]-r)>o-e.margin||r"+(t.title||"unnaming")+"";return l[0]?l.before(a):n.append(a),e.append(''+(t.content||"")+"
"),b.hideTabMore(!0),b.tabAuto(),this},t.prototype.tabDelete=function(e,t){t=u(".layui-tab[lay-filter="+e+"]").children(".layui-tab-title").find('>li[lay-id="'+t+'"]');return b.tabDelete(null,t),this},t.prototype.tabChange=function(e,t){t=u(".layui-tab[lay-filter="+e+"]").children(".layui-tab-title").find('>li[lay-id="'+t+'"]');return b.tabClick.call(t[0],null,null,t),this},t.prototype.tab=function(i){i=i||{},a.on("click",i.headerElem,function(e){var t=u(this).index();b.tabClick.call(this,e,t,null,i)})},t.prototype.progress=function(e,t){var i="layui-progress",e=u("."+i+"[lay-filter="+e+"]").find("."+i+"-bar"),i=e.find("."+i+"-text");return e.css("width",t).attr("lay-percent",t),i.text(t),this};var h=".layui-nav",f="layui-nav-item",n="layui-nav-bar",p="layui-nav-tree",m="layui-nav-child",v="layui-nav-more",g="layui-anim layui-anim-upbit",b={tabClick:function(e,t,i,a){a=a||{};var n=i||u(this),t=t||n.parent().children("li").index(n),l=a.headerElem?n.parent():n.parents(".layui-tab").eq(0),o=a.bodyElem?u(a.bodyElem):l.children(".layui-tab-content").children(".layui-tab-item"),r=n.find("a"),i="javascript:;"!==r.attr("href")&&"_blank"===r.attr("target"),a="string"==typeof n.attr("lay-unselect"),r=l.attr("lay-filter");i||a||(n.addClass(c).siblings().removeClass(c),o.eq(t).addClass(y).siblings().removeClass(y)),layui.event.call(this,s,"tab("+r+")",{elem:l,index:t})},tabDelete:function(e,t){var i=t||u(this).parent(),a=i.index(),n=i.parents(".layui-tab").eq(0),l=n.children(".layui-tab-content").children(".layui-tab-item"),t=n.attr("lay-filter");i.hasClass(c)&&(i.next()[0]?b.tabClick.call(i.next()[0],null,a+1):i.prev()[0]&&b.tabClick.call(i.prev()[0],null,a-1)),i.remove(),l.eq(a).remove(),setTimeout(function(){b.tabAuto()},50),layui.event.call(this,s,"tabDelete("+t+")",{elem:n,index:a})},tabAuto:function(){var a="layui-tab-bar",n="layui-tab-close",l=this;u(".layui-tab").each(function(){var e=u(this),t=e.children(".layui-tab-title"),i=(e.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),i=u('');l===window&&8!=d.ie&&b.hideTabMore(!0),e.attr("lay-allowClose")&&t.find("li").each(function(){var e,t=u(this);t.find("."+n)[0]||((e=u('')).on("click",b.tabDelete),t.append(e))}),"string"!=typeof e.attr("lay-unauto")&&(t.prop("scrollWidth")>t.outerWidth()+1?t.find("."+a)[0]||(t.append(i),e.attr("overflow",""),i.on("click",function(e){t[this.title?"removeClass":"addClass"]("layui-tab-more"),this.title=this.title?"":"收缩"})):(t.find("."+a).remove(),e.removeAttr("overflow")))})},hideTabMore:function(e){var t=u(".layui-tab-title");!0!==e&&"tabmore"===u(e.target).attr("lay-stope")||(t.removeClass("layui-tab-more"),t.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var e=u(this),t=e.parents(h),i=t.attr("lay-filter"),a=e.parent(),n=e.siblings("."+m),l="string"==typeof a.attr("lay-unselect");"javascript:;"!==e.attr("href")&&"_blank"===e.attr("target")||l||n[0]||(t.find("."+c).removeClass(c),a.addClass(c)),t.hasClass(p)&&(n.removeClass(g),n[0]&&(a["none"===n.css("display")?"addClass":"removeClass"](f+"ed"),"all"===t.attr("lay-shrink")&&a.siblings().removeClass(f+"ed"))),layui.event.call(this,s,"nav("+i+")",e)},collapse:function(){var e=u(this),t=e.find(".layui-colla-icon"),i=e.siblings(".layui-colla-content"),a=e.parents(".layui-collapse").eq(0),n=a.attr("lay-filter"),l="none"===i.css("display");"string"==typeof a.attr("lay-accordion")&&((a=a.children(".layui-colla-item").children("."+y)).siblings(".layui-colla-title").children(".layui-colla-icon").html(""),a.removeClass(y)),i[l?"addClass":"removeClass"](y),t.html(l?"":""),layui.event.call(this,s,"collapse("+n+")",{title:e,content:i,show:l})}};t.prototype.init=function(e,t){var i=t?'[lay-filter="'+t+'"]':"",t={tab:function(){b.tabAuto.call({})},nav:function(){var o={},r={},s={},c="layui-nav-title";u(h+i).each(function(e){var t=u(this),i=u(''),a=t.find("."+f);t.find("."+n)[0]||(t.append(i),(t.hasClass(p)?a.find("dd,>."+c):a).on("mouseenter",function(){!function(e,t,i){var a,n=u(this),l=n.find("."+m);t.hasClass(p)?l[0]||(a=n.children("."+c),e.css({top:n.offset().top-t.offset().top,height:(a[0]?a:n).outerHeight(),opacity:1})):(l.addClass(g),l.hasClass("layui-nav-child-c")&&l.css({left:-(l.outerWidth()-n.width())/2}),l[0]?e.css({left:e.position().left+e.width()/2,width:0,opacity:0}):e.css({left:n.position().left+parseFloat(n.css("marginLeft")),top:n.position().top+n.height()-e.height()}),o[i]=setTimeout(function(){e.css({width:l[0]?0:n.width(),opacity:l[0]?0:1})},d.ie&&d.ie<10?0:200),clearTimeout(s[i]),"block"===l.css("display")&&clearTimeout(r[i]),r[i]=setTimeout(function(){l.addClass(y),n.find("."+v).addClass(v+"d")},300))}.call(this,i,t,e)}).on("mouseleave",function(){t.hasClass(p)?i.css({height:0,opacity:0}):(clearTimeout(r[e]),r[e]=setTimeout(function(){t.find("."+m).removeClass(y),t.find("."+v).removeClass(v+"d")},300))}),t.on("mouseleave",function(){clearTimeout(o[e]),s[e]=setTimeout(function(){t.hasClass(p)||i.css({width:0,left:i.position().left+i.width()/2,opacity:0})},200)})),a.find("a").each(function(){var e=u(this);(e.parent(),e.siblings("."+m))[0]&&!e.children("."+v)[0]&&e.append(''),e.off("click",b.clickThis).on("click",b.clickThis)})})},breadcrumb:function(){u(".layui-breadcrumb"+i).each(function(){var e=u(this),t="lay-separator",i=e.attr(t)||"/",a=e.find("a");a.next("span["+t+"]")[0]||(a.each(function(e){e!==a.length-1&&u(this).after(""+i+"")}),e.css("visibility","visible"))})},progress:function(){var a="layui-progress";u("."+a+i).each(function(){var e=u(this),t=e.find(".layui-progress-bar"),i=t.attr("lay-percent");t.css("width",/^.+\/.+$/.test(i)?100*new Function("return "+i)()+"%":i),e.attr("lay-showPercent")&&setTimeout(function(){t.html(''+i+"")},350)})},collapse:function(){u(".layui-collapse"+i).each(function(){u(this).find(".layui-colla-item").each(function(){var e=u(this),t=e.find(".layui-colla-title"),e="none"===e.find(".layui-colla-content").css("display");t.find(".layui-colla-icon").remove(),t.append(''+(e?"":"")+""),t.off("click",b.collapse).on("click",b.collapse)})})}};return t[e]?t[e]():layui.each(t,function(e,t){t()})},t.prototype.render=t.prototype.init;var i=new t,a=u(document);u(function(){i.render()});a.on("click",".layui-tab-title li",b.tabClick),a.on("click",b.hideTabMore),u(window).on("resize",b.tabAuto),e(s,i)}),layui.define("layer",function(e){"use strict";function v(e){this.config=g.extend({},this.config,a.config,e),this.render()}var g=layui.$,t=layui.layer,i=layui.hint(),b=layui.device(),a={config:{},set:function(e){return this.config=g.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,n,e,t)}},n="upload",l="layui-upload-file",o="layui-upload-form",x="layui-upload-iframe",k="layui-upload-choose";v.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},v.prototype.render=function(e){(e=this.config).elem=g(e.elem),e.bindAction=g(e.bindAction),this.file(),this.events()},v.prototype.file=function(){var e=this,t=e.config,i=e.elemFile=g(['"].join("")),a=t.elem.next();(a.hasClass(l)||a.hasClass(o))&&a.remove(),b.ie&&b.ie<10&&t.elem.wrap(''),e.isFile()?(e.elemFile=t.elem,t.field=t.elem[0].name):t.elem.after(i),b.ie&&b.ie<10&&e.initIE()},v.prototype.initIE=function(){var i,e=this.config,t=g(''),a=g(['"].join(""));g("#"+x)[0]||g("body").append(t),e.elem.next().hasClass(o)||(this.elemFile.wrap(a),e.elem.next("."+o).append((i=[],layui.each(e.data,function(e,t){t="function"==typeof t?t():t,i.push('')}),i.join(""))))},v.prototype.msg=function(e){return t.msg(e,{icon:2,shift:6})},v.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},v.prototype.preview=function(a){window.FileReader&&layui.each(this.chooseFiles,function(e,t){var i=new FileReader;i.readAsDataURL(t),i.onload=function(){a&&a(e,t,this.result)}})},v.prototype.upload=function(i,e){function t(){function t(){u.multiple&&n+l===c.fileLength&&"function"==typeof u.allDone&&u.allDone({total:c.fileLength,successful:n,aborted:l})}var n=0,l=0,e=i||c.files||c.chooseFiles||d.files;layui.each(e,function(i,e){var a=new FormData;a.append(u.field,e),layui.each(u.data,function(e,t){t="function"==typeof t?t():t,a.append(e,t)});e={url:u.url,type:"post",data:a,contentType:!1,processData:!1,dataType:"json",headers:u.headers||{},success:function(e){n++,y(i,e),t()},error:function(){l++,c.msg("请求上传接口出现异常"),h(i),t()}};"function"==typeof u.progress&&(e.xhr=function(){var e=g.ajaxSettings.xhr();return e.upload.addEventListener("progress",function(e){var t;e.lengthComputable&&(t=Math.floor(e.loaded/e.total*100),u.progress(t,(u.item||u.elem)[0],e,i))}),e}),g.ajax(e)})}function a(){return!(("choose"===e||u.auto)&&(u.choose&&u.choose(m),"choose"===e)||u.before&&!1===u.before(m))&&(b.ie?9u.number)return c.msg("同时最多只能上传的数量为:"+u.number);if(01024*u.size&&(t=1<=(t=u.size/1024)?t.toFixed(2)+"MB":u.size+"KB",d.value="",o=t)}),o)return c.msg("文件不能超过"+o);a()}},v.prototype.reload=function(e){delete(e=e||{}).elem,delete e.bindAction;(e=this.config=g.extend({},this.config,a.config,e)).elem.next().attr({name:e.name,accept:e.acceptMime,multiple:e.multiple})},v.prototype.events=function(){function a(e){l.chooseFiles={},layui.each(e,function(e,t){var i=(new Date).getTime();l.chooseFiles[i+"-"+e]=t})}function n(e,t){var i=l.elemFile,e=(o.item||o.elem,1'+e+"")}var l=this,o=l.config;o.elem.off("upload.start").on("upload.start",function(){var e=g(this),t=e.attr("lay-data");if(t)try{t=new Function("return "+t)(),l.config=g.extend({},o,t)}catch(e){i.error("Upload element property lay-data configuration item has a syntax error: "+t)}l.config.item=e,l.elemFile[0].click()}),b.ie&&b.ie<10||o.elem.off("upload.over").on("upload.over",function(){g(this).attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){g(this).removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(e,t){var i=g(this),t=t.originalEvent.dataTransfer.files||[];i.removeAttr("lay-over"),a(t),o.auto?l.upload(t):n(t)}),l.elemFile.off("upload.change").on("upload.change",function(){var e=this.files||[];a(e),o.auto?l.upload():n(e)}),o.bindAction.off("upload.action").on("upload.action",function(){l.upload()}),o.elem.data("haveEvents")||(l.elemFile.on("change",function(){g(this).trigger("upload.change")}),o.elem.on("click",function(){l.isFile()||g(this).trigger("upload.start")}),o.drag&&o.elem.on("dragover",function(e){e.preventDefault(),g(this).trigger("upload.over")}).on("dragleave",function(e){g(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),g(this).trigger("upload.drop",e)}),o.bindAction.on("click",function(){g(this).trigger("upload.action")}),o.elem.data("haveEvents",!0))},a.render=function(e){e=new v(e);return function(){var t=this;return{upload:function(e){t.upload.call(t,e)},reload:function(e){t.reload.call(t,e)},config:t.config}}.call(e)},e(n,a)}),layui.define(["jquery","laytpl","lay"],function(e){"use strict";function t(e){this.index=++y.index,this.config=u.extend({},this.config,y.config,e),this.init()}var u=layui.$,d=layui.laytpl,i=layui.hint(),l=layui.device().mobile?"click":"mousedown",o="dropdown",r="layui_"+o+"_index",y={config:{},index:layui[o]?layui[o].index+1e4:0,set:function(e){return this.config=u.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,o,e,t)}},h=function(){var t=this,e=t.config,i=e.id;return h.that[i]=t,{config:e,reload:function(e){t.reload.call(t,e)}}},a="layui-menu-item-up",n="layui-menu-item-down",f="layui-menu-body-title",s="layui-menu-item-group",p="layui-menu-item-parent",c="layui-menu-item-checked",m="layui-menu-item-checked2",v="layui-menu-body-panel",g="layui-menu-body-panel-left",b="."+s+">."+f;t.prototype.config={trigger:"click",content:"",className:"",style:"",show:!1,isAllowSpread:!0,isSpreadItem:!0,data:[],delay:300},t.prototype.reload=function(e){this.config=u.extend({},this.config,e),this.init(!0)},t.prototype.init=function(e){var t=this,i=t.config,a=i.elem=u(i.elem);if(1",(l="href"in t?''+l+"":l,a?''+l+("parent"===o?'':"group"===o&&s.isAllowSpread?'':"")+"
":''+l+"
"),""].join(""))).data("item",t),a&&(l=u(''),a=u(""),"parent"===o?(l.append(c(a,t.child)),n.append(l)):n.append(c(a,t.child))),r.append(n))}),r},n=['',"
"].join("");!(e="contextmenu"===s.trigger||lay.isTopElem(s.elem[0])?!0:e)&&s.elem.data(r+"_opened")||(a.elemView=u(n),a.elemView.append(s.content||(t=u(''),0