15 lines
470 KiB
JavaScript
15 lines
470 KiB
JavaScript
|
if(!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function n(t,e,n){var i,o,a=(n=n||ut).createElement("script");if(a.text=t,e)for(i in pt)(o=e[i]||e.getAttribute&&e.getAttribute(i))&&a.setAttribute(i,o);n.head.appendChild(a).parentNode.removeChild(a)}function i(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?it[ot.call(t)]||"object":typeof t}function o(t){var e=!!t&&"length"in t&&t.length,n=i(t);return!ct(t)&&!dt(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}function a(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function r(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function s(t,e,n){return ct(e)?mt.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?mt.grep(t,function(t){return t===e!==n}):"string"!=typeof e?mt.grep(t,function(t){return-1<nt.call(e,t)!==n}):mt.filter(e,t,n)}function l(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t){return t}function d(t){throw t}function u(t,e,n,i){var o;try{t&&ct(o=t.promise)?o.call(t).done(e).fail(n):t&&ct(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}function p(){ut.removeEventListener("DOMContentLoaded",p),t.removeEventListener("load",p),mt.ready()}function h(t,e){return e.toUpperCase()}function f(t){return t.replace(Mt,"ms-").replace(Pt,h)}function m(){this.expando=mt.expando+m.uid++}function g(t,e,n){var i,o;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Yt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:zt.test(o)?JSON.parse(o):o)}catch(t){}Ht.set(t,e,n)}else n=void 0;return n}function v(t,e,n,i){var o,a,r=20,s=i?function(){return i.cur()}:function(){return mt.css(t,e,"")},l=s(),c=n&&n[3]||(mt.cssNumber[e]?"":"px"),d=t.nodeType&&(mt.cssNumber[e]||"px"!==c&&+l)&&Ut.exec(mt.css(t,e));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;r--;)mt.style(t,e,d+c),(1-a)*(1-(a=s()/l||.5))<=0&&(r=0),d/=a;d*=2,mt.style(t,e,d+c),n=n||[]}return n&&(d=+d||+l||0,o=n[1]?d+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=d,i.end=o)),o}function y(t,e){for(var n,i,o,a,r,s,l,c=[],d=0,u=t.length;d<u;d++)(i=t[d]).style&&(n=i.style.display,e?("none"===n&&(c[d]=jt.get(i,"display")||null,c[d]||(i.style.display="")),""===i.style.display&&Xt(i)&&(c[d]=(l=r=a=void 0,r=(o=i).ownerDocument,s=o.nodeName,(l=Qt[s])||(a=r.body.appendChild(r.createElement(s)),l=mt.css(a,"display"),a.parentNode.removeChild(a),"none"===l&&(l="block"),Qt[s]=l)))):"none"!==n&&(c[d]="none",jt.set(i,"display",n)));for(d=0;d<u;d++)null!=c[d]&&(t[d].style.display=c[d]);return t}function b(t,e){var n;return n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&a(t,e)?mt.merge([t],n):n}function x(t,e){for(var n=0,i=t.length;n<i;n++)jt.set(t[n],"globalEval",!e||jt.get(e[n],"globalEval"))}function w(t,e,n,o,a){for(var r,s,l,c,d,u,p=e.createDocumentFragment(),h=[],f=0,m=t.length;f<m;f++)if((r=t[f])||0===r)if("object"===i(r))mt.merge(h,r.nodeType?[r]:r);else if(ie.test(r)){for(s=s||p.appendChild(e.createElement("div")),l=(te.exec(r)||["",""])[1].toLowerCase(),c=ne[l]||ne._default,s.innerHTML=c[1]+mt.htmlPrefilter(r)+c[2],u=c[0];u--;)s=s.lastChild;mt.merge(h,s.childNodes),(s=p.firstChild).textContent=""}else h.push(e.createTextNode(r));for(p.textContent="",f=0;r=h[f++];)if(o&&-1<mt.inArray(r,o))a&&a.push(r);else if(d=Vt(r),s=b(p.appendChild(r),"script"),d&&x(s),n)for(u=0;r=s[u++];)ee.test(r.type||"")&&n.push(r);return p}function _(){return!0}function k(){return!1}function C(t,e,n,i,o,a){var r,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)C(t,s,n,i,e[s],a);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=
|
|||
|
},is:function(t){return!!s(this,"string"==typeof t&&Tt.test(t)?mt(t):t||[],!1).length}});var Dt,Et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(mt.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||Dt,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:Et.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof mt?e[0]:e,mt.merge(this,mt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:ut,!0)),$t.test(i[1])&&mt.isPlainObject(e))for(i in e)ct(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(o=ut.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):ct(t)?void 0!==n.ready?n.ready(t):t(mt):mt.makeArray(t,this)}).prototype=mt.fn,Dt=mt(ut);var Ft=/^(?:parents|prev(?:Until|All))/,At={children:!0,contents:!0,next:!0,prev:!0};mt.fn.extend({has:function(t){var e=mt(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(mt.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,o=this.length,a=[],r="string"!=typeof t&&mt(t);if(!Tt.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(r?-1<r.index(n):1===n.nodeType&&mt.find.matchesSelector(n,t))){a.push(n);break}return this.pushStack(1<a.length?mt.uniqueSort(a):a)},index:function(t){return t?"string"==typeof t?nt.call(mt(t),this[0]):nt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(mt.uniqueSort(mt.merge(this.get(),mt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),mt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Ct(t,"parentNode")},parentsUntil:function(t,e,n){return Ct(t,"parentNode",n)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return Ct(t,"nextSibling")},prevAll:function(t){return Ct(t,"previousSibling")},nextUntil:function(t,e,n){return Ct(t,"nextSibling",n)},prevUntil:function(t,e,n){return Ct(t,"previousSibling",n)},siblings:function(t){return St((t.parentNode||{}).firstChild,t)},children:function(t){return St(t.firstChild)},contents:function(t){return null!=t.contentDocument&&Z(t.contentDocument)?t.contentDocument:(a(t,"template")&&(t=t.content||t),mt.merge([],t.childNodes))}},function(t,e){mt.fn[t]=function(n,i){var o=mt.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=mt.filter(i,o)),1<this.length&&(At[t]||mt.uniqueSort(o),Ft.test(t)&&o.reverse()),this.pushStack(o)}});var Ot=/[^\x20\t\r\n\f]+/g;mt.Callbacks=function(t){var e,n;t="string"==typeof t?(e=t,n={},mt.each(e.match(Ot)||[],function(t,e){n[e]=!0}),n):mt.extend({},t);var o,a,r,s,l=[],c=[],d=-1,u=function(){for(s=s||t.once,r=o=!0;c.length;d=-1)for(a=c.shift();++d<l.length;)!1===l[d].apply(a[0],a[1])&&t.stopOnFalse&&(d=l.length,a=!1);t.memory||(a=!1),o=!1,s&&(l=a?[]:"")},p={add:function(){return l&&(a&&!o&&(d=l.length-1,c.push(a)),function e(n){mt.each(n,function(n,o){ct(o)?t.unique&&p.has(o)||l.push(o):o&&o.length&&"string"!==i(o)&&e(o)})}(arguments),a&&!o&&u()),this},remove:function(){return mt.each(arguments,function(t,e){for(var n;-1<(n=mt.inArray(e,l,n));)l.splice(n,1),n<=d&&d--}),this},has:function(t){return t?-1<mt.inArray(t,l):0<l.length},empty:function(){return l&&(l=[]),this},disable:function(){return s=c=[],l=a="",this},disabled:function(){return!l},lock:function(){return s=c=[],a||o||(l=a=""),this},locked:function(){return!!s},fireWith:function(t,e){return s||(e=[t,(e=e||[]).slice?e.slice():e],c.push(e),o||u()),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!r}};return p},mt.extend({Deferred:function(e){var n=[["notify","progress",mt.Callbacks("memory"),mt.Callbacks("memory"),2],["resolve","done",mt.Callbacks("once memory"),mt.Callbacks("once memory"),0,"resolved"],["reject","fail",mt.Callbacks("once memory"),mt.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},a
|
|||
|
fast:200,_default:400},mt.fn.delay=function(e,n){return e=mt.fx&&mt.fx.speeds[e]||e,n=n||"fx",this.queue(n,function(n,i){var o=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(o)}})},we=ut.createElement("input"),_e=ut.createElement("select").appendChild(ut.createElement("option")),we.type="checkbox",lt.checkOn=""!==we.value,lt.optSelected=_e.selected,(we=ut.createElement("input")).value="t",we.type="radio",lt.radioValue="t"===we.value;var Se,Te=mt.expr.attrHandle;mt.fn.extend({attr:function(t,e){return Rt(this,mt.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){mt.removeAttr(this,t)})}}),mt.extend({attr:function(t,e,n){var i,o,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof t.getAttribute?mt.prop(t,e,n):(1===a&&mt.isXMLDoc(t)||(o=mt.attrHooks[e.toLowerCase()]||(mt.expr.match.bool.test(e)?Se:void 0)),void 0!==n?null===n?void mt.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=mt.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!lt.radioValue&&"radio"===e&&a(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(Ot);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),Se={set:function(t,e,n){return!1===e?mt.removeAttr(t,n):t.setAttribute(n,n),n}},mt.each(mt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Te[e]||mt.find.attr;Te[e]=function(t,e,i){var o,a,r=e.toLowerCase();return i||(a=Te[r],Te[r]=o,o=null!=n(t,e,i)?r:null,Te[r]=a),o}});var $e=/^(?:input|select|textarea|button)$/i,De=/^(?:a|area)$/i;mt.fn.extend({prop:function(t,e){return Rt(this,mt.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[mt.propFix[t]||t]})}}),mt.extend({prop:function(t,e,n){var i,o,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&mt.isXMLDoc(t)||(e=mt.propFix[e]||e,o=mt.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=mt.find.attr(t,"tabindex");return e?parseInt(e,10):$e.test(t.nodeName)||De.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),lt.optSelected||(mt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),mt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){mt.propFix[this.toLowerCase()]=this}),mt.fn.extend({addClass:function(t){var e,n,i,o,a,r;return ct(t)?this.each(function(e){mt(this).addClass(t.call(this,e,q(this)))}):(e=W(t)).length?this.each(function(){if(i=q(this),n=1===this.nodeType&&" "+U(i)+" "){for(a=0;a<e.length;a++)o=e[a],n.indexOf(" "+o+" ")<0&&(n+=o+" ");r=U(n),i!==r&&this.setAttribute("class",r)}}):this},removeClass:function(t){var e,n,i,o,a,r;return ct(t)?this.each(function(e){mt(this).removeClass(t.call(this,e,q(this)))}):arguments.length?(e=W(t)).length?this.each(function(){if(i=q(this),n=1===this.nodeType&&" "+U(i)+" "){for(a=0;a<e.length;a++)for(o=e[a];-1<n.indexOf(" "+o+" ");)n=n.replace(" "+o+" "," ");r=U(n),i!==r&&this.setAttribute("class",r)}}):this:this.attr("class","")},toggleClass:function(t,e){var n,i,o,a,r=typeof t,s="string"===r||Array.isArray(t);return ct(t)?this.each(function(n){mt(this).toggleClass(t.call(this,n,q(this),e),e)}):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=W(t),this.each(function(){if(s)for(a=mt(this),o=0;o<n.length;o++)i=n[o],a.hasClass(i)?a.removeClass(i):a.addClass(i);else void 0!==t&&"boolean"!==r||((i=q(this))&&jt.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":jt.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+U(q(n))+" ").indexOf(e))return!0;return!1}});var Ee=/\r/g;mt.fn.extend({val:function(t)
|
|||
|
this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.4.1",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(e=o.data("bs.collapse"))&&e.transitioning)){var a=t.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),e||o.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[r](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return o.call(this);this.$element[n](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var o=t(i);this.addAriaAndCollapsedClass(e(o),o)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o=t(this);o.attr("data-target")||i.preventDefault();var a=e(o),r=a.data("bs.collapse")?"toggle":o.data();n.call(a,r)})}(jQuery),function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==n?t(document).find(n):null;return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(".dropdown-backdrop").remove(),t(i).each(function(){var i=t(this),o=e(i),a={relatedTarget:this};o.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(o[0],n.target)||(o.trigger(n=t.Event("hide.bs.dropdown",a)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),o.removeClass("open").trigger(t.Event("hidden.bs.dropdown",a)))))}))}var i='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.4.1",o.prototype.toggle=function(i){var o=t(this);if(!o.is(".disabled, :disabled")){var a=e(o),r=a.hasClass("open");if(n(),!r){"ontouchstart"in document.documentElement&&!a.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var s={relatedTarget:this};if(a.trigger(i=t.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),a.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},o.prototype.keydown=function(n){if(/(38|40|27|32)/.te
|
|||
|
"bootstrap-table-fixed-columns":"../libs/bootstrap-table/dist/extensions/fixed-columns/bootstrap-table-fixed-columns","bootstrap-table-mobile":"../libs/bootstrap-table/dist/extensions/mobile/bootstrap-table-mobile","bootstrap-table-lang":"../libs/bootstrap-table/dist/locale/bootstrap-table-zh-CN","bootstrap-table-jumpto":"../libs/bootstrap-table/dist/extensions/page-jumpto/bootstrap-table-jumpto",tableexport:"../libs/tableExport.jquery.plugin/tableExport.min",dragsort:"../libs/fastadmin-dragsort/jquery.dragsort",sortable:"../libs/Sortable/Sortable.min",addtabs:"../libs/fastadmin-addtabs/jquery.addtabs",slimscroll:"../libs/jquery-slimscroll/jquery.slimscroll",validator:"../libs/nice-validator/dist/jquery.validator","validator-lang":"../libs/nice-validator/dist/local/zh-CN",toastr:"../libs/toastr/toastr",jstree:"../libs/jstree/dist/jstree.min",layer:"../libs/fastadmin-layer/dist/layer",cookie:"../libs/jquery.cookie/jquery.cookie",cxselect:"../libs/fastadmin-cxselect/js/jquery.cxselect",template:"../libs/art-template/dist/template-native",selectpage:"../libs/fastadmin-selectpage/selectpage",citypicker:"../libs/fastadmin-citypicker/dist/js/city-picker.min","citypicker-data":"../libs/fastadmin-citypicker/dist/js/city-picker.data"},shim:{addons:["frontend"],bootstrap:["jquery"],"bootstrap-table":{deps:["bootstrap"],exports:"$.fn.bootstrapTable"},"bootstrap-table-lang":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-export":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-fixed-columns":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-mobile":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-advancedsearch":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-commonsearch":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-template":{deps:["bootstrap-table","template"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-jumpto":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},tableexport:{deps:["jquery"],exports:"$.fn.extend"},slimscroll:{deps:["jquery"],exports:"$.fn.extend"},adminlte:{deps:["bootstrap","slimscroll"],exports:"$.AdminLTE"},"bootstrap-daterangepicker":["moment/locale/zh-cn"],"bootstrap-datetimepicker":["moment/locale/zh-cn"],"bootstrap-select-lang":["bootstrap-select"],jstree:["css!../libs/jstree/dist/themes/default/style.css"],"validator-lang":["validator"],citypicker:["citypicker-data","css!../libs/fastadmin-citypicker/dist/css/city-picker.css"]},baseUrl:requirejs.s.contexts._.config.config.site.cdnurl+"/assets/js/",map:{"*":{css:"../libs/require-css/css.min"}},waitSeconds:60,charset:"utf-8"}),require(["jquery","bootstrap"],function(t,e){var n=requirejs.s.contexts._.config.config;window.Config=n;var i={};i.lang=n.moduleurl+"/ajax/lang?callback=define&controllername="+n.controllername+"&lang="+n.language,i["frontend/"]="frontend/",require.config({paths:i}),t(function(){require(["fast"],function(t){require(["frontend","frontend-init","addons"],function(t,i){n.jsname&&require([n.jsname],function(t){t[n.actionname]!=e&&t[n.actionname]()},function(t){console.error(t)})})})})}),define("require-frontend",function(){}),define("../libs/require-css/css.min",[],function(){if("undefined"==typeof window)return{load:function(t,e,n){n()}};var t=document.getElementsByTagName("head")[0],e=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,n=!1,i=!0;e[1]||e[7]?n=parseInt(e[1])<6||parseInt(e[7])<=9:e[2]||e[8]?i=!1:e[4]&&(n=parseInt(e[4])<18);var o={};o.pluginBuilder="./css-builder";var a,r,s,l=function(){a=document.createElement("style"),t.appendChild(a),r=a.styleSheet||a.sheet},c=0,d=[],u=function(t){r.addImport(t),a.onload=function(){p()},c++,31==c&&(l(),c=0)},p=function(){s();var t=d.shift();return t?(s=t[1],void u(t[0])):void(s=null)},h=function(t,e){if(r&&r.addImport||l(),r&&r.addImport)s?d.pu
|
|||
|
R.state="hidden",R.endTime=new Date,h(R)}})}function k(){(T.timeOut>0||T.extendedTimeOut>0)&&(D=setTimeout(_,T.extendedTimeOut),L.maxHideTime=parseFloat(T.extendedTimeOut),L.hideEta=(new Date).getTime()+L.maxHideTime)}function C(){clearTimeout(D),L.hideEta=0,E.stop(!0,!0)[T.showMethod]({duration:T.showDuration,easing:T.showEasing})}function S(){var t=(L.hideEta-(new Date).getTime())/L.maxHideTime*100;O.width(t+"%")}var T=m(),$=e.iconClass||T.iconClass;if("undefined"!=typeof e.optionsOverride&&(T=t.extend(T,e.optionsOverride),$=e.optionsOverride.iconClass||$),!w(T,e)){x++,v=n(T,!0);var D=null,E=t("<div/>"),F=t("<div/>"),A=t("<div/>"),O=t("<div/>"),N=t(T.closeHtml),L={intervalId:null,hideEta:null,maxHideTime:null},R={toastId:x,state:"visible",startTime:new Date,options:T,map:e};return o(),s(),r(),h(R),T.debug&&console&&console.log(R),E}}function m(){return t.extend({},p(),_.options)}function g(t){v||(v=n()),t.is(":visible")||(t.remove(),t=null,0===v.children().length&&(v.remove(),b=void 0))}var v,y,b,x=0,w={error:"error",info:"info",success:"success",warning:"warning"},_={clear:s,remove:l,error:e,getContainer:n,info:i,options:{},subscribe:o,success:a,version:"2.1.3",warning:r};return _}()})}("function"==typeof define&&define.amd?define:function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):window.toastr=e(window.jQuery)}),define("fast",["jquery","bootstrap","toastr","layer","lang"],function(t,e,n,i,o){var a={config:{toastr:{closeButton:!0,debug:!1,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!1,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"}},events:{onAjaxSuccess:function(t,e){var i="undefined"!=typeof t.data?t.data:null,o="undefined"!=typeof t.msg&&t.msg?t.msg:__("Operation completed");if("function"==typeof e){var a=e.call(this,i,t);if(a===!1)return}n.success(o)},onAjaxError:function(t,e){var i="undefined"!=typeof t.data?t.data:null;if("function"==typeof e){var o=e.call(this,i,t);if(o===!1)return}n.error(t.msg)},onAjaxResponse:function(e){try{var n="object"==typeof e?e:JSON.parse(e);n.hasOwnProperty("code")||t.extend(n,{code:-2,msg:e,data:null})}catch(t){var n={code:-1,msg:t.message,data:null}}return n}},api:{ajax:function(e,n,o){e="string"==typeof e?{url:e}:e;var r;return("undefined"==typeof e.loading||e.loading)&&(r=i.load(e.loading||0)),e=t.extend({type:"POST",dataType:"json",xhrFields:{withCredentials:!0},success:function(t){r&&i.close(r),t=a.events.onAjaxResponse(t),1===t.code?a.events.onAjaxSuccess(t,n):a.events.onAjaxError(t,o)},error:function(t){r&&i.close(r);var e={code:t.status,msg:t.statusText,data:null};a.events.onAjaxError(e,o)}},e),t.ajax(e)},fixurl:function(t){if("/"!==t.substr(0,1)){var e=new RegExp("^(?:[a-z]+:)?//","i");e.test(t)||(t=Config.moduleurl+"/"+t)}else"/addons/"===t.substr(0,8)&&(t=Config.__PUBLIC__.replace(/(\/*$)/g,"")+t);return t},cdnurl:function(t,e){var n=new RegExp("^((?:[a-z]+:)?\\/\\/|data:image\\/)","i"),i=Config.upload.cdnurl;return"undefined"!=typeof e&&e!==!0&&0!==i.indexOf("/")||(t=n.test(t)||i&&0===t.indexOf(i)?t:i+t),e&&!n.test(t)&&(e="string"==typeof e?e:location.origin,t=e+t),t},query:function(t,e){if(e||(e=window.location.href),!t)return"";t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&/]"+t+"([=/]([^&#/?]*)|&|#|$)"),i=n.exec(e);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null},open:function(n,o,r){o=r&&r.title?r.title:o?o:"",n=a.api.fixurl(n),n=n+(n.indexOf("?")>-1?"&":"?")+"dialog=1";var s=a.config.openArea!=e?a.config.openArea:[t(window).width()>800?"800px":"95%",t(window).height()>600?"600px":"95%"],l=r&&"function"==typeof r.success?r.success:t.noop;return r&&"function"==typeof r.success&&delete r.success,r=t.extend({type:2,title:o,shadeClose:!0,shade:!1,maxmin:!0,moveOut:!0,area:s,content:n,zIndex:i.zIndex,success:function(e,n){var o=this;t(e).data("callback",o.callback),i.setTop(e);try{var r=i.getChildFrame("html",n),s=r.find(".layer-footer");if(a.api.lay
|
|||
|
if(i!==o)return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function pe(t,e,n){if(t)return wa[t];if(e)return 0;var i=parseInt(n,10),o=i%100,a=(i-o)/100;return 60*a+o}function he(t){var e,n=xa.exec(de(t._i));if(n){if(e=le(n[4],n[3],n[2],n[5],n[6],n[7]),!ue(n[1],e,t))return;t._a=e,t._tzm=pe(n[8],n[9],n[10]),t._d=bt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),h(t).rfc2822=!0}else t._isValid=!1}function fe(e){var n=ba.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(se(e),void(e._isValid===!1&&(delete e._isValid,he(e),e._isValid===!1&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))))}function me(t,e,n){return null!=t?t:null!=e?e:n}function ge(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ve(t){var e,n,i,o,a,r=[];if(!t._d){for(i=ge(t),t._w&&null==t._a[Yo]&&null==t._a[zo]&&ye(t),null!=t._dayOfYear&&(a=me(t._a[Ho],i[Ho]),(t._dayOfYear>gt(a)||0===t._dayOfYear)&&(h(t)._overflowDayOfYear=!0),n=bt(a,0,t._dayOfYear),t._a[zo]=n.getUTCMonth(),t._a[Yo]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Bo]&&0===t._a[Uo]&&0===t._a[qo]&&0===t._a[Wo]&&(t._nextDay=!0,t._a[Bo]=0),t._d=(t._useUTC?bt:yt).apply(null,r),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Bo]=24),t._w&&"undefined"!=typeof t._w.d&&t._w.d!==o&&(h(t).weekdayMismatch=!0)}}function ye(t){var e,n,i,o,a,r,s,l,c;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(a=1,r=4,n=me(e.GG,t._a[Ho],_t($e(),1,4).year),i=me(e.W,1),o=me(e.E,1),(o<1||o>7)&&(l=!0)):(a=t._locale._week.dow,r=t._locale._week.doy,c=_t($e(),a,r),n=me(e.gg,t._a[Ho],c.year),i=me(e.w,c.week),null!=e.d?(o=e.d,(o<0||o>6)&&(l=!0)):null!=e.e?(o=e.e+a,(e.e<0||e.e>6)&&(l=!0)):o=a),i<1||i>kt(n,a,r)?h(t)._overflowWeeks=!0:null!=l?h(t)._overflowWeekday=!0:(s=wt(n,i,o,a,r),t._a[Ho]=s.year,t._dayOfYear=s.dayOfYear)}function be(e){if(e._f===t.ISO_8601)return void se(e);if(e._f===t.RFC_2822)return void he(e);e._a=[],h(e).empty=!0;var n,i,o,a,r,s,l,c=""+e._i,d=c.length,u=0;for(o=O(e._f,e._locale).match(co)||[],l=o.length,n=0;n<l;n++)a=o[n],i=(c.match(Z(a,e))||[])[0],i&&(r=c.substr(0,c.indexOf(i)),r.length>0&&h(e).unusedInput.push(r),c=c.slice(c.indexOf(i)+i.length),u+=i.length),ho[a]?(i?h(e).empty=!1:h(e).unusedTokens.push(a),it(a,i,e)):e._strict&&!i&&h(e).unusedTokens.push(a);h(e).charsLeftOver=d-u,c.length>0&&h(e).unusedInput.push(c),e._a[Bo]<=12&&h(e).bigHour===!0&&e._a[Bo]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[Bo]=xe(e._locale,e._a[Bo],e._meridiem),s=h(e).era,null!==s&&(e._a[Ho]=e._locale.erasConvertYear(s,e._a[Ho])),ve(e),re(e)}function xe(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function we(t){var e,n,i,o,a,r,s=!1,l=t._f.length;if(0===l)return h(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<l;o++)a=0,r=!1,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],be(e),f(e)&&(r=!0),a+=h(e).charsLeftOver,a+=10*h(e).unusedTokens.length,h(e).score=a,s?a<i&&(i=a,n=e):(null==i||a<i||r)&&(i=a,n=e,r&&(s=!0));d(t,n||e)}function _e(t){if(!t._d){var e=H(t._i),n=void 0===e.day?e.date:e.day;t._a=c([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ve(t)}}function ke(t){var e=new v(re(Ce(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Ce(t){var e=t._i,i=t._f;return t._locale=t._locale||oe(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),y(e)?new v(re(e)):(l(e)?t._d=e:n(i)?we(t):i?be(t):Se(t),f(t)||(t._d=null),t))}function Se(e){var o=e._i;r(o)?e._d=new Date(t.now()):l(o)?e._d=new Date(o.valueOf()):"string"==typeof o?fe(e):n(o)?(e._a=c(o.slice(0),function(t){return parseInt(t,10)}),ve(e)):i(o)?_e(e):s(o)?e._d=new Date(o):t.createFromInputFallback(e)}function
|
|||
|
et(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=je(Ro,t)});var Ta=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var $a=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Da=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Je.fn=Le.prototype,Je.invalid=Ne;var Ea=on(1,"add"),Fa=on(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Aa=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)}),Oa=1e3,Na=60*Oa,La=60*Na,Ra=3506328*La;D("N",0,0,"eraAbbr"),D("NN",0,0,"eraAbbr"),D("NNN",0,0,"eraAbbr"),D("NNNN",0,0,"eraName"),D("NNNNN",0,0,"eraNarrow"),D("y",["y",1],"yo","eraYear"),D("y",["yy",2],0,"eraYear"),D("y",["yyy",3],0,"eraYear"),D("y",["yyyy",4],0,"eraYear"),K("N",ii),K("NN",ii),K("NNN",ii),K("NNNN",oi),K("NNNNN",ai),et(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,i){var o=n._locale.erasParse(t,i,n._strict);o?h(n).era=o:h(n).invalidEra=t}),K("y",Oo),K("yy",Oo),K("yyy",Oo),K("yyyy",Oo),K("yo",ri),et(["y","yy","yyy","yyyy"],Ho),et(["yo"],function(t,e,n,i){var o;n._locale._eraYearOrdinalRegex&&(o=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ho]=n._locale.eraYearOrdinalParse(t,o):e[Ho]=parseInt(t,10)}),D(0,["gg",2],0,function(){return this.weekYear()%100}),D(0,["GG",2],0,function(){return this.isoWeekYear()%100}),li("gggg","weekYear"),li("ggggg","weekYear"),li("GGGG","isoWeekYear"),li("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),K("G",No),K("g",No),K("GG",To,_o),K("gg",To,_o),K("GGGG",Fo,Co),K("gggg",Fo,Co),K("GGGGG",Ao,So),K("ggggg",Ao,So),nt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=q(t)}),nt(["gg","GG"],function(e,n,i,o){n[o]=t.parseTwoDigitYear(e)}),D("Q",0,"Qo","quarter"),I("quarter","Q"),z("quarter",7),K("Q",wo),et("Q",function(t,e){e[zo]=3*(q(t)-1)}),D("D",["DD",2],"Do","date"),I("date","D"),z("date",9),K("D",To),K("DD",To,_o),K("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),et(["D","DD"],Yo),et("Do",function(t,e){e[Yo]=q(t.match(To)[0])});var Ma=W("Date",!0);D("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),z("dayOfYear",4),K("DDD",Eo),K("DDDD",ko),et(["DDD","DDDD"],function(t,e,n){n._dayOfYear=q(t)}),D("m",["mm",2],0,"minute"),I("minute","m"),z("minute",14),K("m",To),K("mm",To,_o),et(["m","mm"],Uo);var Pa=W("Minutes",!1);D("s",["ss",2],0,"second"),I("second","s"),z("second",15),K("s",To),K("ss",To,_o),et(["s","ss"],qo);var Ia=W("Seconds",!1);D("S",0,0,function(){return~~(this.millisecond()/100)}),D(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,function(){return 10*this.millisecond()}),D(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),D(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),D(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),D(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),D(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),z("millisecond",16),K("S",Eo,wo),K("SS",Eo,_o),K("SSS",Eo,ko);var ja,Ha;for(ja="SSSS";ja.length<=9;ja+="S")K(ja,Oo);for(ja="S";ja.length<=9;ja+="S")et(ja,bi);Ha=W("Milliseconds",!1),D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName");var za=v.prototype;za.add=Ea,za.calendar=pn,za.clone=hn,za.diff=xn,za.endOf=Mn,za.format=Sn,za.from=Tn,za.fromNow=$n,za.to=Dn,za.toNow=En,za.get=X,za.invalidAt=qn,za.isAfter=fn,za.isBefore=mn,za.isBetween=gn,za.isSame=vn,za.isSameOrAfter=yn,za.isSameOrBefore=bn,za.isValid=Bn,za.lang=Aa,za.locale=Fn,za.localeData=An,za.max=ka,za.min=_a,za.parsingFlags=Un,za.set=Q,za.startOf=Rn,za.subtract=Fa,za.toArray=Hn,za.toObject=zn,za.toDate=jn,za.toISOString=kn,za.inspect=Cn,"undefined"!=typeof Symbol&&null!=Symbol.for&&(za[Symbol.for("no
|
|||
|
var n=t.trim(t(e.currentTarget).val());this.options.trimOnSearch&&t(e.currentTarget).val()!==n&&t(e.currentTarget).val(n),n===this.searchText||""===n&&void 0===this.searchText||(this.searchText=n,this.options.searchText=n,this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("search",n))},d.prototype.initSearch=function(){var e,i,a=this;"server"!==this.options.sidePagination&&(this.options.customSearch!==t.noop?this.options.customSearch.apply(this,[this.searchText]):(e=this.searchText&&(this.options.escape?r(this.searchText):this.searchText).toLowerCase(),i=t.isEmptyObject(this.filterColumns)?null:this.filterColumns,this.data=i?t.grep(this.options.data,function(e,n){for(var o in i)if(t.isArray(i[o])&&-1===t.inArray(e[o],i[o])||!t.isArray(i[o])&&e[o]!==i[o])return!1;return!0}):this.options.data,this.data=e?t.grep(this.data,function(i,r){for(var s=0;s<a.header.fields.length;s++)if(a.header.searchables[s]){var l=t.isNumeric(a.header.fields[s])?parseInt(a.header.fields[s],10):a.header.fields[s],c=a.columns[n(a.columns,l)];if("string"==typeof l){for(var d=i,u=l.split("."),p=0;p<u.length;p++)d=d[u[p]];c&&c.searchFormatter&&(d=o(c,a.header.formatters[s],[d,i,r],d))}else d=i[l];if("string"==typeof d||"number"==typeof d)if(a.options.strictSearch){if((d+"").toLowerCase()===e)return!0}else if(-1!==(d+"").toLowerCase().indexOf(e))return!0}return!1}):this.data))},d.prototype.initPagination=function(){if(this.options.pagination){this.$pagination.show();var n,i,o,a,r,s,l,c=this,d=[],u=!1,p=this.getData(),h=this.options.pageList;if("server"!==this.options.sidePagination&&(this.options.totalRows=p.length),this.totalPages=0,this.options.totalRows&&(this.options.pageSize===this.options.formatAllRows()?(this.options.pageSize=this.options.totalRows,u=!0):this.options.pageSize===this.options.totalRows&&(p="string"==typeof this.options.pageList?this.options.pageList.replace("[","").replace("]","").replace(/ /g,"").toLowerCase().split(","):this.options.pageList,-1<t.inArray(this.options.formatAllRows().toLowerCase(),p))&&(u=!0),this.totalPages=1+~~((this.options.totalRows-1)/this.options.pageSize),this.options.totalPages=this.totalPages),0<this.totalPages&&this.options.pageNumber>this.totalPages&&(this.options.pageNumber=this.totalPages),this.pageFrom=(this.options.pageNumber-1)*this.options.pageSize+1,this.pageTo=this.options.pageNumber*this.options.pageSize,this.pageTo>this.options.totalRows&&(this.pageTo=this.options.totalRows),d.push('<div class="pull-'+this.options.paginationDetailHAlign+' pagination-detail">','<span class="pagination-info">',this.options.onlyInfoPagination?this.options.formatDetailPagination(this.options.totalRows):this.options.formatShowingRows(this.pageFrom,this.pageTo,this.options.totalRows),"</span>"),!this.options.onlyInfoPagination){d.push('<span class="page-list">');var f=[e('<span class="btn-group %s">',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?"dropdown":"dropup"),'<button type="button" class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+' dropdown-toggle" data-toggle="dropdown">','<span class="page-size">',u?this.options.formatAllRows():this.options.pageSize,"</span>",' <span class="caret"></span>',"</button>",'<ul class="dropdown-menu" role="menu">'];for("string"==typeof this.options.pageList&&(p=this.options.pageList.replace("[","").replace("]","").replace(/ /g,"").split(","),h=[],t.each(p,function(t,e){h.push(e.toUpperCase()===c.options.formatAllRows().toUpperCase()?c.options.formatAllRows():+e)})),t.each(h,function(t,n){(!c.options.smartDisplay||0===t||h[t-1]<c.options.totalRows)&&(t=u?n===c.options.formatAllRows()?' class="active"':"":n===c.options.pageSize?' class="active"':"",f.push(e('<li role="menuitem"%s><a href="#">%s</a></li>',t,n)))}),f.push("</ul></span>"),d.push(this.options.formatRecordsPerPage(f.join(""))),d.push("</span>"),d.push("</div>",'<div class="pull-'+this.options.paginationHAlign+' pagination">','<ul class="pagination'+e(" pagination-%s",this.options.iconSize)+'">','<li class="page-pre"><a
|
|||
|
return n}:"function"==typeof n&&(this.options[e("format%s",t)]=n)),this.initToolbar(),this.initPagination(),this.initBody()},["getOptions","getSelections","getAllSelections","getData","load","append","prepend","remove","removeAll","insertRow","updateRow","updateCell","updateByUniqueId","removeByUniqueId","getRowByUniqueId","showRow","hideRow","getHiddenRows","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","resetView","resetWidth","destroy","showLoading","hideLoading","showColumn","hideColumn","getHiddenColumns","getVisibleColumns","showAllColumns","hideAllColumns","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","togglePagination","toggleView","refreshOptions","resetSearch","expandRow","collapseRow","expandAllRows","collapseAllRows","updateFormatText"]);t.fn.bootstrapTable=function(e){var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var o=t(this),a=o.data("bootstrap.table"),r=t.extend({},d.DEFAULTS,o.data(),"object"==typeof e&&e);if("string"==typeof e){if(t.inArray(e,p)<0)throw new Error("Unknown method: "+e);if(!a)return;n=a[e].apply(a,i),"destroy"===e&&o.removeData("bootstrap.table")}a||o.data("bootstrap.table",a=new d(this,r))}),void 0===n?this:n},t.fn.bootstrapTable.Constructor=d,t.fn.bootstrapTable.defaults=d.DEFAULTS,t.fn.bootstrapTable.columnDefaults=d.COLUMN_DEFAULTS,t.fn.bootstrapTable.locales=d.LOCALES,t.fn.bootstrapTable.methods=p,t.fn.bootstrapTable.utils={sprintf:e,getFieldIndex:n,compareObjects:a,calculateObjectValue:o,getItemField:l,objectKeys:function(){var t,e,n,i;Object.keys||(Object.keys=(t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),i=(n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(o){if("object"!=typeof o&&("function"!=typeof o||null===o))throw new TypeError("Object.keys called on non-object");var a,r,s=[];for(a in o)t.call(o,a)&&s.push(a);if(e)for(r=0;r<i;r++)t.call(o,n[r])&&s.push(n[r]);return s}))},isIEBrowser:c},t(function(){t('[data-toggle="table"]').bootstrapTable()})}(jQuery),define("bootstrap-table",["bootstrap"],function(t){return function(){var e;return e||t.$.fn.bootstrapTable}}(this)),function(t){"use strict";t.fn.bootstrapTable.locales["zh-CN"]={formatLoadingMessage:function(){return"正在努力地加载数据中,请稍候……"},formatRecordsPerPage:function(t){return"每页显示 "+t+" 条记录"},formatShowingRows:function(t,e,n){return"显示第 "+t+" 到第 "+e+" 条记录,总共 "+n+" 条记录"},formatDetailPagination:function(t){return"总共 "+t+" 条记录"},formatSearch:function(){return"搜索"},formatNoMatches:function(){return"没有找到匹配的记录"},formatPaginationSwitch:function(){return"隐藏/显示分页"},formatRefresh:function(){return"刷新"},formatToggle:function(){return"切换"},formatColumns:function(){return"列"},formatExport:function(){return"导出数据"},formatClearFilters:function(){return"清空过滤"}},t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales["zh-CN"])}(jQuery),define("bootstrap-table-lang",["bootstrap-table"],function(t){return function(){var e;return e||t.$.fn.bootstrapTable.defaults}}(this)),!function(t){"use strict";var e=t.fn.bootstrapTable.utils.sprintf,n={json:"JSON",xml:"XML",png:"PNG",csv:"CSV",txt:"TXT",sql:"SQL",doc:"MS-Word",excel:"MS-Excel",xlsx:"MS-Excel (OpenXML)",powerpoint:"MS-Powerpoint",pdf:"PDF"},i=(t.extend(t.fn.bootstrapTable.defaults,{showExport:!1,exportDataType:"basic",exportTypes:["json","xml","csv","txt","sql","excel"],exportOptions:{}}),t.extend(t.fn.bootstrapTable.defaults.icons,{export:"glyphicon-export icon-share"}),t.extend(t.fn.bootstrapTable.locales,{formatExport:function(){return"Export data"}}),t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales),t.fn.bootstrapTable.Constructor),o=i.prototype.initToolbar;i.prototype.initToolbar=function(){var i,a,r,s;this.showToolbar=this.options.showExport,o.apply(this,Array.prototype.slice.apply(argumen
|
|||
|
},this.files.push(t),t.status=e.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,function(e){e?(t.accepted=!1,n._errorProcessing([t],e)):(t.accepted=!0,n.options.autoQueue&&n.enqueueFile(t)),n._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(t){var e=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var r=o.value;this.enqueueFile(r)}}catch(t){n=!0,i=t}finally{try{e||null==a.return||a.return()}finally{if(n)throw i}}return null}},{key:"enqueueFile",value:function(t){var n=this;if(t.status!==e.ADDED||t.accepted!==!0)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(t.status=e.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return n.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(t){var e=this;if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(t),setTimeout(function(){return e._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(n){return t.emit("thumbnail",e,n),t._processingThumbnail=!1,t._processThumbnailQueue()})}}},{key:"removeFile",value:function(t){if(t.status===e.UPLOADING&&this.cancelUpload(t),this.files=m(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);var n=!0,i=!1,o=void 0;try{for(var a,r=this.files.slice()[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;(s.status!==e.UPLOADING||t)&&this.removeFile(s)}}catch(t){i=!0,o=t}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}return null}},{key:"resizeImage",value:function(t,n,i,o,a){var r=this;return this.createThumbnail(t,n,i,o,!0,function(n,i){if(null==i)return a(t);var o=r.options.resizeMimeType;null==o&&(o=t.type);var s=i.toDataURL(o,r.options.resizeQuality);return"image/jpeg"!==o&&"image/jpg"!==o||(s=b.restore(t.dataURL,s)),a(e.dataURItoBlob(s))})}},{key:"createThumbnail",value:function(t,e,n,i,o,a){var r=this,s=new FileReader;s.onload=function(){return t.dataURL=s.result,"image/svg+xml"===t.type?void(null!=a&&a(s.result)):void r.createThumbnailFromUrl(t,e,n,i,o,a)},s.readAsDataURL(t)}},{key:"displayExistingFile",value:function(t,e,n,i){var o=this,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this.emit("addedfile",t),this.emit("complete",t),a){var r=function(e){o.emit("thumbnail",t,e),n&&n()};t.dataURL=e,this.createThumbnailFromUrl(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.resizeMethod,this.options.fixOrientation,r,i)}else this.emit("thumbnail",t,e),n&&n()}},{key:"createThumbnailFromUrl",value:function(t,e,n,i,o,a,r){var s=this,l=document.createElement("img");return r&&(l.crossOrigin=r),l.onload=function(){var r=function(t){return t(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&o&&(r=function(t){return EXIF.getData(l,function(){return t(EXIF.getTag(this,"Orientation"))})}),r(function(o){t.width=l.width,t.height=l.height;var r=s.options.resize.call(s,t,e,n,i),c=document.createElement("canvas"),d=c.getContext("2d");switch(c.width=r.trgWidth,c.height=r.trgHeight,o>4&&(c.width=r.trgHeight,c.height=r.trgWidth),o){case 2:d.translate(c.width,0),d.scale(-1,1);break;case 3:d.translate(c.width,c.height),d.rotate(Math.PI);break;case 4:d.translate(0,c.height),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-c.width);break;case 7:d.rotate(.5*Math.PI),d.translate(c.height,-c.width),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-c.height,0)}y(d,l,null!=r.srcX?r.srcX:0,null!=r.srcY?r.srcY:0,r.srcWidth,r.srcHeight,null!=r.trgX?r.trgX:0,null!=r.trgY?r.trgY:0,r.trgWidth,r.trgHeight);var u=c.toD
|
|||
|
}var a=this;return a instanceof n?void(n.pending?t(window).on("validatorready",o):o()):new n(e,i)}function i(e){function n(){var e=this.options;for(var n in e)n in K&&(this[n]=e[n]);t.extend(this,{_valHook:function(){return"true"===this.element.contentEditable?"text":"val"},getValue:function(){var e=this.element;return"number"===e.type&&e.validity&&e.validity.badInput?"NaN":t(e)[this._valHook()]()},setValue:function(e){t(this.element)[this._valHook()](this.value=e)},getRangeMsg:function(t,e,n){function i(t,e){return l?t>e:t>=e}if(e){var o,a=this,r=a.messages[a._r]||"",s=e[0].split("~"),l="false"===e[1],c=s[0],d=s[1],u="rg",p=[""],h=B(t)&&+t===+t;return 2===s.length?c&&d?(h&&i(t,+c)&&i(+d,t)&&(o=!0),p=p.concat(s),u=l?"gtlt":"rg"):c&&!d?(h&&i(t,+c)&&(o=!0),p.push(c),u=l?"gt":"gte"):!c&&d&&(h&&i(+d,t)&&(o=!0),p.push(d),u=l?"lt":"lte"):(t===+c&&(o=!0),p.push(c),u="eq"),r&&(n&&r[u+n]&&(u+=n),p[0]=r[u]),o||a._rules&&(a._rules[a._i].msg=a.renderMsg.apply(null,p))}},renderMsg:function(){var t=arguments,e=t[0],n=t.length;if(e){for(;--n;)e=e.replace("{"+n+"}",t[n]);return e}}})}function i(n,i,o){this.key=n,this.validator=e,t.extend(this,o,i)}return n.prototype=e,i.prototype=new n,i}function o(t,e){if(W(t)){var n,i=e?e===!0?this:e:o.prototype;for(n in t)h(n)&&(i[n]=r(t[n]))}}function a(t,e){if(W(t)){var n,i=e?e===!0?this:e:a.prototype;for(n in t)i[n]=t[n]}}function r(e){switch(t.type(e)){case"function":return e;case"array":var n=function(){return e[0].test(this.value)||e[1]||!1};return n.msg=e[1],n;case"regexp":return function(){return e.test(this.value)}}}function s(e){var n,i,o;if(e&&e.tagName){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":case"BUTTON":case"FIELDSET":n=e.form||t(e).closest("."+w);break;case"FORM":n=e;break;default:n=t(e).closest("."+w)}for(i in X)if(t(n).is(i)){o=X[i];break}return t(n).data(g)||t(n)[g](o).data(g)}}function l(t,e){var n=B(G(t,C+"-"+e));if(n&&(n=new Function("return "+n)()))return r(n)}function c(t,e,n){var i=e.msg,o=e._r;return W(i)&&(i=i[o]),q(i)||(i=G(t,S+"-"+o)||G(t,S)||(n?q(n)?n:n[o]:"")),i}function d(t){var e;return t&&(e=I.exec(t)),e&&e[0]}function u(t){return"INPUT"===t.tagName&&"checkbox"===t.type||"radio"===t.type}function p(t){return Date.parse(t.replace(/\.|\-/g,"/"))}function h(t){return/^\w+$/.test(t)}function f(t){var e="#"===t.charAt(0);return t=t.replace(/([:.{(|)}/\[\]])/g,"\\$1"),e?t:'[name="'+t+'"]:first'}var m,g="validator",v="."+g,y=".rule",b=".field",x=".form",w="nice-"+g,_="msg-box",k="aria-invalid",C="data-rule",S="data-msg",T="data-tip",$="data-ok",D="data-timely",E="data-target",F="data-display",A="data-must",O="novalidate",N=":verifiable",L=/(&)?(!)?\b(\w+)(?:\[\s*(.*?\]?)\s*\]|\(\s*(.*?\)?)\s*\))?\s*(;|\|)?/g,R=/(\w+)(?:\[\s*(.*?\]?)\s*\]|\(\s*(.*?\)?)\s*\))?/,M=/(?:([^:;\(\[]*):)?(.*)/,P=/[^\x00-\xff]/g,I=/top|right|bottom|left/,j=/(?:(cors|jsonp):)?(?:(post|get):)?(.+)/i,H=/[<>'"`\\]|&#x?\d+[A-F]?;?|%3[A-F]/gim,z=t.noop,Y=t.proxy,B=t.trim,U=t.isFunction,q=function(t){return"string"==typeof t},W=function(t){return t&&"[object Object]"===Object.prototype.toString.call(t)},V=document.documentMode||+(navigator.userAgent.match(/MSIE (\d+)/)&&RegExp.$1),G=function(t,n,i){return t&&t.tagName?i===e?t.getAttribute(n):void(null===i?t.removeAttribute(n):t.setAttribute(n,""+i)):null},X={},Q={debug:0,theme:"default",ignore:"",focusInvalid:!0,focusCleanup:!1,stopOnError:!1,beforeSubmit:null,valid:null,invalid:null,validation:null,formClass:"n-default",validClass:"n-valid",invalidClass:"n-invalid",bindClassTo:null,remoteDataType:"cors"},K={timely:1,display:null,target:null,ignoreBlank:!1,showOk:!0,dataFilter:function(t){if(q(t)||W(t)&&("error"in t||"ok"in t))return t},msgMaker:function(e){var n;return n='<span role="alert" class="msg-wrap n-'+e.type+'">'+e.arrow,e.result?t.each(e.result,function(t,i){n+='<span class="n-'+i.type+'">'+e.icon+'<span class="n-msg">'+i.msg+"</span></span>"}):n+=e.icon+'<span class="n-msg">'+e.msg+"</span>",n+="</span>"},msgWrapper:"span",msgArrow:"",msgIcon:'<span class="n-icon"></span>',msgClass:"n-right",msgStyle:"",msgShow:null,msgHide:nu
|
|||
|
f},s=t(".fieldlist",e);e.on("reset",function(){setTimeout(function(){s.trigger("fa.event.refreshfieldlist")})}),t(document).on("change keyup changed",".fieldlist input,.fieldlist textarea,.fieldlist select",function(){var e=t(this).closest(".fieldlist");a(e)}),s.on("click",".btn-append,.append",function(e,n){var i=t(this).closest(".fieldlist");r(i,n),a(i)}),s.on("click",".btn-remove",function(){var e=t(this).closest(".fieldlist"),n=e.data("tag")||(e.is("table")?"tr":"dd");t(this).closest(n).remove(),a(e)}),s.on("fa.event.appendtofieldlist",function(e,n){var i=t(this);r(i,n),a(i)}),s.on("fa.event.refreshfieldlist",function(){var n=t(this),i=t("textarea[name='"+n.data("name")+"']",e);t("[fieldlist-item]",n).remove();var o={};try{var a=i.val().replace(/"(\d+)"\:/g,'"__PLACEHOLDERKEY__$1":');o=JSON.parse(a)}catch(t){}t.each(o,function(t,e){r(n,{key:t.toString().replace("__PLACEHOLDERKEY__",""),value:e},!0)})}),s.each(function(){var n=t(this),i=n.data("tag")||(n.is("table")?"tr":"dd");n.dragsort({itemSelector:i,dragSelector:".btn-dragsort",dragEnd:function(){a(n)},placeHolderTemplate:t("<"+i+"/>")}),"object"==typeof n.data("options")&&n.data("options").appendBtn===!1&&t(".btn-append,.append",n).hide(),t("textarea[name='"+n.data("name")+"']",e).on("fa.event.refreshfieldlist",function(){t(this).closest(".fieldlist").trigger("fa.event.refreshfieldlist")})}),s.trigger("fa.event.refreshfieldlist")})},switcher:function(e){e.on("click","[data-toggle='switcher']",function(){if(t(this).hasClass("disabled"))return!1;var e=t.proxy(function(){var e=t(this).prev("input");if(e=t(this).data("input-id")?t("#"+t(this).data("input-id")):e,e.length>0){var n=t(this).data("yes"),i=t(this).data("no");e.val()==n?(e.val(i),t("i",this).addClass("fa-flip-horizontal text-gray")):(e.val(n),t("i",this).removeClass("fa-flip-horizontal text-gray")),e.trigger("change")}},this);return"undefined"!=typeof t(this).data("confirm")?Layer.confirm(t(this).data("confirm"),function(t){e(),Layer.close(t)}):e(),!1})},bindevent:function(t){},slider:function(e){t("[data-role='slider'],input.slider",e).length>0&&require(["bootstrap-slider"],function(){t("[data-role='slider'],input.slider").removeClass("hidden").css("width",function(e,n){return t(this).parents(".form-control").width()}).slider().on("slide",function(e){var n=t(this).data();"undefined"!=typeof n.unit&&t(this).parents(".form-control").siblings(".value").text(e.value+n.unit)})})},tagsinput:function(e){t("[data-role='tagsinput']",e).length>0&&require(["tagsinput","autocomplete"],function(){t("[data-role='tagsinput']").tagsinput(),e.on("reset",function(){setTimeout(function(){t("[data-role='tagsinput']").tagsinput("reset")},0)})})},autocomplete:function(e){t("[data-role='autocomplete']",e).length>0&&require(["autocomplete"],function(){t("[data-role='autocomplete']").autocomplete({onSelect:function(){t(this).trigger("change").trigger("validate")}})})},favisible:function(e){if(0!=t("[data-favisible]",e).length){var n=function(n){var i,o,a=n.split(/&&/),r=0,s=/^([a-z0-9\_]+)([>|<|=|\!]=?)(.*)$/i,l=/^('|")(.*)('|")$/,c=/^regex:(.*)$/,d={">":function(t,e){return t>e},">=":function(t,e){return t>=e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},"==":function(t,e){return t==e},"!=":function(t,e){return t!=e},in:function(t,e){return e.split(/\,/).indexOf(t)>-1},regex:function(t,e){var n=e.match(/^\/(.*?)\/([gim]*)$/),i=n?new RegExp(n[1],n[2]):new RegExp(e);return i.test(t)}},u=e.serializeArray(),p={};return t(u).each(function(t,e){i=e.name,o=e.value,i="[]"===i.substr(-2)?i.substr(0,i.length-2):i,p[i]="undefined"!=typeof p[i]?[p[i],o].join(","):o}),t.each(a,function(e,n){var i=s.exec(n);if(i){var o=i[1],a=i[2],u=i[3].toString();if("="===a){var h=l.exec(u);a=h?"==":"in",u=h?h[2]:u}var f=c.exec(u);f&&(a="regex",u=f[1]);var m="row["+o+"]";if("undefined"==typeof p[m])return!1;var g=p[m];t.isArray(g)&&(g=p[m].join(",")),[">",">=","<","<="].indexOf(a)>-1&&(g=parseFloat(g),u=parseFloat(u));var v=d[a](g,u);r+=v?1:0}}),r===a.length};e.on("keyup change click configchange","input,textarea,select",function(){t("[dat
|
|||
|
r.tooltip("hide"),r.addClass("hide")}),e.on("load-error.bs.table",function(t,e,n){0!==n.status&&Toastr.error(__("Unknown data format"))}),e.on("load-success.bs.table",function(t,e){"undefined"==typeof e.rows&&"undefined"!=typeof e.code&&Toastr.error(e.msg)}),e.on("refresh.bs.table",function(e,n,o){t(i.config.refreshbtn,a).find(".fa").addClass("fa-spin"),t(".layui-layer-autocontent").remove()}),e.on("search.bs.table common-search.bs.table",function(t,n,i){e.trigger("uncheckbox")}),o.dblClickToEdit&&e.on("dbl-click-row.bs.table",function(e,n,o,a){t(i.config.editonebtn,o).trigger("click")}),e.on("pre-body.bs.table",function(e,n){o.maintainSelected&&t.each(n,function(e,n){n[o.stateField]=t.inArray(n[o.pk],o.selectedIds)>-1})}),e.on("post-body.bs.table",function(n,r){if(t(i.config.refreshbtn,a).find(".fa").removeClass("fa-spin"),t(i.config.checkboxtd+":first",e).find("input[type='checkbox'][data-index]").length>0){var s,l,c,d=!1,u=!1,p=function(n){if(d){var o=Math.min(n.pageX,s),a=Math.min(n.pageY,l),r=Math.abs(s-n.pageX),u=Math.abs(l-n.pageY);c.css({left:o+"px",top:a+"px",width:r+"px",height:u+"px"});var p={x:o,y:a,width:r,height:u};t(i.config.checkboxtd,e).each(function(){var e=t("input:checkbox",this),n=this.getBoundingClientRect();n.x+=document.documentElement.scrollLeft,n.y+=document.documentElement.scrollTop;var i=n.x,o=n.y,a=n.x+n.width,r=n.y+n.height,s=p.x,l=p.y,c=p.x+p.width,d=p.y+p.height,u=i<=c&&a>=s&&o<=d&&r>=l;u?t(this).hasClass("overlaped")||(t(this).addClass("overlaped"),e.trigger("click")):t(this).hasClass("overlaped")&&(t(this).removeClass("overlaped"),e.trigger("click"))})}},h=function(){return!1},f=function(){d&&(t(document).off("mousemove",p),t(document).off("selectstart",h),c.remove()),d=!1,u=!1,t(document.body).css({MozUserSelect:"",webkitUserSelect:""}).attr("unselectable","off")};t(i.config.checkboxtd,e).on("mousedown",function(e){return 2!==e.button&&!t(e.target).is("input")&&(s=e.pageX,l=e.pageY,void(u=!0))}).on("mousemove",function(n){u&&!d&&(d=!0,c=t("<div />"),c.css({position:"absolute",width:0,height:0,border:"1px dashed blue",background:"#0029ff",left:n.pageX+"px",top:n.pageY+"px",opacity:.1}),c.appendTo(document.body),t(document.body).css({MozUserSelect:"none",webkitUserSelect:"none"}).attr("unselectable","on"),t(document).on("mousemove",p).on("mouseup",f).on("selectstart",h),o.dragCheckboxMultiselect&&t(i.config.checkboxtd,e).removeClass("overlaped"))})}});var s=o.exportDataType;if(e.on("check.bs.table uncheck.bs.table check-all.bs.table uncheck-all.bs.table post-body.bs.table",function(n){var l=[];t.each(e.bootstrapTable("getData"),function(t,e){l.push("undefined"!=typeof e[o.pk]?e[o.pk]:"")});var c=i.api.selectedids(e,!0),d=i.api.selecteddata(e,!0);o.maintainSelected?(o.selectedIds=o.selectedIds.filter(function(e,n,i){return t.inArray(e,l)===-1}).concat(c),o.selectedData=o.selectedData.filter(function(e,n,i){return t.inArray(e[o.pk],l)===-1}).concat(d),o.selectedIds.length>c.length?(t("b",r).text(o.selectedIds.length),r.removeClass("hide")):r.addClass("hide")):(o.selectedIds=c,o.selectedData=d),"auto"===s&&(o.exportDataType=c.length>0?"selected":"all",0===t(".export .exporttips").length&&t(".export .dropdown-menu").prepend("<li class='exporttips alert alert-warning-light mb-0 no-border p-2'></li>"),t(".export .exporttips").html("导出记录:"+(c.length>0?"选中":"全部"))),t(i.config.disabledbtn,a).toggleClass("disabled",!o.selectedIds.length)}),e.on("common-search.bs.table",function(n,i,o){var a=t(".panel-heading [data-field]",e.closest(".panel-intro")),r=a.data("field"),s=t("li.active > a",a).data("value");o.filter&&"undefined"!=typeof o.filter[r]&&o.filter[r]!=s&&(t("li",a).removeClass("active"),t("li > a[data-value='"+o.filter[r]+"']",a).parent().addClass("active"))}),t('.panel-heading [data-field] a[data-toggle="tab"]',e.closest(".panel-intro")).on("shown.bs.tab",function(n){var i=t(this).closest("[data-field]").data("field"),o=t(this).data("value"),a=t("[name='"+i+"']",e.closest(".bootstrap-table").find(".commonsearch-table"));return"SELECT"===a.prop("tagName")?t("option[value='"
|
|||
|
}),i}function s(){var e="";return this.each(function(){var i=n(this),o=i.data(d.dataKey);if(o)if(o.option.multiple){var a=[];o.elem.element_box.find("li.selected_tag").each(function(e,n){a.push(t(n).text())}),e+=a.toString()}else e+=o.elem.combo_input.val()}),e}function l(){var e=[];return this.each(function(){var i=n(this),o=i.data(d.dataKey);if(o)if(o.option.multiple)o.elem.element_box.find("li.selected_tag").each(function(n,i){e.push(t(i).data("dataObj"))});else{var a=o.elem.combo_input.data("dataObj");a&&e.push(a)}}),e}var c={data:void 0,lang:"cn",multiple:!1,pagination:!0,dropButton:!0,listSize:10,multipleControlbar:!0,maxSelectLimit:0,selectToCloseList:!1,initRecord:void 0,dbTable:"tbl",keyField:"id",showField:"name",searchField:void 0,andOr:"OR",separator:",",orderBy:void 0,pageSize:10,params:void 0,formatItem:void 0,autoFillResult:!1,autoSelectFirst:!1,noResultClean:!0,selectOnly:!1,inputDelay:.5,eSelect:void 0,eOpen:void 0,eAjaxSuccess:void 0,eTagRemove:void 0,eClear:void 0},d=function(e,n){t.each({data:"source",keyField:"primaryKey",showField:"field",pageSize:"perPage"},function(t,e){"undefined"!=typeof n[e]&&(n[t]=n[e],delete n[e])}),this.setOption(n),this.setLanguage(),this.setCssClass(),this.setProp(),this.setElem(e),this.setButtonAttrDefault(),this.setInitRecord(),this.eDropdownButton(),this.eInput(),this.eWhole()};d.version="2.19",d.dataKey="selectPageObject",d.prototype.setOption=function(e){e.searchField=e.searchField||e.showField,e.andOr=e.andOr.toUpperCase(),"AND"!==e.andOr&&"OR"!==e.andOr&&(e.andOr="AND");for(var n=["searchField"],i=0;i<n.length;i++)e[n[i]]=this.strToArray(e[n[i]]);if(e.orderBy=e.orderBy||e.showField,e.orderBy!==!1&&(e.orderBy=this.setOrderbyOption(e.orderBy,e.showField)),e.multiple&&!e.selectToCloseList&&(e.autoFillResult=!1,e.autoSelectFirst=!1),e.pagination||(e.pageSize=200),("number"!==t.type(e.listSize)||e.listSize<0)&&(e.listSize=10),"string"==typeof e.formatItem){var o=e.formatItem;e.formatItem=function(t){return"function"==typeof Template&&o.match(/\#([a-zA-Z0-9_\-]+)$/)?Template(o.substring(1),t):o.replace(/\{(.*?)\}/gi,function(e){return e=e.substring(1,e.length-1),"undefined"!=typeof t[e]?t[e]:""})}}this.option=e},d.prototype.strToArray=function(t){return t?t.replace(/[\s ]+/g,"").split(","):""},d.prototype.setOrderbyOption=function(e,n){var i=[],o=[];if("object"==typeof e)for(var a=0;a<e.length;a++)o=t.trim(e[a]).split(" "),o.length&&i.push(2===o.length?o.concat():[o[0],"ASC"]);else o=t.trim(e).split(" "),i[0]=2===o.length?o.concat():o[0].toUpperCase().match(/^(ASC|DESC)$/i)?[n,o[0].toUpperCase()]:[o[0],"ASC"];return i},d.prototype.setLanguage=function(){var t,e=this.option;switch(e.lang){case"en":t={add_btn:"Add button",add_title:"add a box",del_btn:"Del button",del_title:"delete a box",next:"Next",next_title:"Next"+e.pageSize+" (Right key)",prev:"Prev",prev_title:"Prev"+e.pageSize+" (Left key)",first_title:"First (Shift + Left key)",last_title:"Last (Shift + Right key)",get_all_btn:"Get All (Down key)",get_all_alt:"(button)",close_btn:"Close (Tab key)",close_alt:"(button)",loading:"loading...",loading_alt:"(loading)",page_info:"page_num of page_count",select_ng:"Attention : Please choose from among the list.",select_ok:"OK : Correctly selected.",not_found:"not found",ajax_error:"An error occurred while loading data.",clear:"Clear content",select_all:"Select current page",unselect_all:"Clear current page",clear_all:"Clear all selected",max_selected:"You can only select up to max_selected_limit items"};break;case"cn":default:t={add_btn:"添加按钮",add_title:"添加区域",del_btn:"删除按钮",del_title:"删除区域",next:"下一页",next_title:"下"+e.pageSize+" (→)",prev:"上一页",prev_title:"上"+e.pageSize+" (←)",first_title:"首页 (Shift + ←)",last_title:"尾页 (Shift + →)",get_all_btn:"获得全部 (↓)",get_all_alt:"(按钮)",close_btn:"关闭 (Tab键)",close_alt:"(按钮)",loading:"读取中...",loading_alt:"(读取中)",page_info:"第 page_num 页(共page_count页)",select_ng:"请注意:请从列表中选择.",select_ok:"OK : 已经选择.",
|