68 lines
472 KiB
JavaScript
68 lines
472 KiB
JavaScript
|
/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
|||
|
|
|||
|
/*! layer-v3.5.5 Web 通用弹出层组件 MIT License http://layer.layui.com/ By 贤心 */
|
|||
|
|
|||
|
/*
|
|||
|
* Toastr
|
|||
|
* Copyright 2012-2015
|
|||
|
* Authors: John Papa, Hans Fjällemark, and Tim Ferrell.
|
|||
|
* All Rights Reserved.
|
|||
|
* Use, reproduction, distribution, and modification of this code is subject to the terms and
|
|||
|
* conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
|
|||
|
*
|
|||
|
* ARIA Support: Greta Krafsig
|
|||
|
*
|
|||
|
* Project: https://github.com/CodeSeven/toastr
|
|||
|
*/
|
|||
|
|
|||
|
/*!art-template - Template Engine | http://aui.github.com/artTemplate/*/
|
|||
|
|
|||
|
//! moment.js
|
|||
|
//! version : 2.30.1
|
|||
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|||
|
//! license : MIT
|
|||
|
//! momentjs.com
|
|||
|
|
|||
|
/*
|
|||
|
* bootstrap-table - v1.11.10 - 2023-06-14
|
|||
|
https://github.com/wenzhixin/bootstrap-table
|
|||
|
* Copyright (c) 2017 zhixin wen
|
|||
|
* Licensed MIT License
|
|||
|
*/
|
|||
|
|
|||
|
/*
|
|||
|
* bootstrap-table - v1.11.12 - 2024-03-28
|
|||
|
https://github.com/wenzhixin/bootstrap-table
|
|||
|
* Copyright (c) 2017 zhixin wen
|
|||
|
* Licensed MIT License
|
|||
|
*/
|
|||
|
|
|||
|
// License: http://dragsort.codeplex.com/license
|
|||
|
|
|||
|
/**
|
|||
|
* @summary SelectPage
|
|||
|
* @desc Simple and powerful selection plugin
|
|||
|
* @file selectpage.js
|
|||
|
* @version 2.21
|
|||
|
* @author TerryZeng
|
|||
|
* @contact https://terryz.github.io/
|
|||
|
* @license MIT License
|
|||
|
*
|
|||
|
*/
|
|||
|
|
|||
|
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 i(t,e,i){var n,o,a=(i=i||ut).createElement("script");if(a.text=t,e)for(n in pt)(o=e[n]||e.getAttribute&&e.getAttribute(n))&&a.setAttribute(n,o);i.head.appendChild(a).parentNode.removeChild(a)}function n(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?nt[ot.call(t)]||"object":typeof t}function o(t){var e=!!t&&"length"in t&&t.length,i=n(t);return!ct(t)&&!dt(t)&&("array"===i||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,i){return ct(e)?mt.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?mt.grep(t,function(t){return t===e!==i}):"string"!=typeof e?mt.grep(t,function(t){return-1<it.call(e,t)!==i}):mt.filter(e,t,i)}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,i,n){var o;try{t&&ct(o=t.promise)?o.call(t).done(e).fail(i):t&&ct(o=t.then)?o.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.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(Rt,"ms-").replace(Pt,h)}function m(){this.expando=mt.expando+m.uid++}function g(t,e,i){var n,o;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Yt,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===(o=i)||"false"!==o&&("null"===o?null:o===+o+""?+o:zt.test(o)?JSON.parse(o):o)}catch(t){}Ht.set(t,e,i)}else i=void 0;return i}function v(t,e,i,n){var o,a,r=20,s=n?function(){return n.cur()}:function(){return mt.css(t,e,"")},l=s(),c=i&&i[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),i=i||[]}return i&&(d=+d||+l||0,o=i[1]?d+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=d,n.end=o)),o}function y(t,e){for(var i,n,o,a,r,s,l,c=[],d=0,u=t.length;d<u;d++)(n=t[d]).style&&(i=n.style.display,e?("none"===i&&(c[d]=jt.get(n,"display")||null,c[d]||(n.style.display="")),""===n.style.display&&Xt(n)&&(c[d]=(l=r=a=void 0,r=(o=n).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"!==i&&(c[d]="none",jt.set(n,"display",i)));for(d=0;d<u;d++)null!=c[d]&&(t[d].style.display=c[d]);return t}function b(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&a(t,e)?mt.merge([t],i):i}function x(t,e){for(var i=0,n=t.length;i<n;i++)jt.set(t[i],"globalEval",!e||jt.get(e[i],"globalEval"))}function w(t,e,i,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"===n(r))mt.merge(h,r.nodeType?[r]:r);else if(ne.test(r)){for(s=s||p.appendChild(e.createElement("div")),l=(te.exec(r)||["",""])[1].toLowerCase(),c=ie[l]||ie._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),i)for(u=0;r=s[u++];)ee.test(r.type||"")&&i.push(r);return p}function _(){return!0}function k(){return!1}function C(t,e,i,n,o,a){var r,s;if("object"==typeof e){for(s in"string"!=typeof i&&(n=n||i,i=void 0),e)C(t,s,i,n,e[s],a);return t}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=k
|
|||
|
;var $t,Et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(mt.fn.init=function(t,e,i){var n,o;if(!t)return this;if(i=i||$t,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:Et.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof mt?e[0]:e,mt.merge(this,mt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:ut,!0)),Dt.test(n[1])&&mt.isPlainObject(e))for(n in e)ct(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(o=ut.getElementById(n[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):ct(t)?void 0!==i.ready?i.ready(t):t(mt):mt.makeArray(t,this)}).prototype=mt.fn,$t=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),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(mt.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,o=this.length,a=[],r="string"!=typeof t&&mt(t);if(!Tt.test(t))for(;n<o;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&mt.find.matchesSelector(i,t))){a.push(i);break}return this.pushStack(1<a.length?mt.uniqueSort(a):a)},index:function(t){return t?"string"==typeof t?it.call(mt(t),this[0]):it.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,i){return Ct(t,"parentNode",i)},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,i){return Ct(t,"nextSibling",i)},prevUntil:function(t,e,i){return Ct(t,"previousSibling",i)},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(i,n){var o=mt.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=mt.filter(n,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,i;t="string"==typeof t?(e=t,i={},mt.each(e.match(Ot)||[],function(t,e){i[e]=!0}),i):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(i){mt.each(i,function(i,o){ct(o)?t.unique&&p.has(o)||l.push(o):o&&o.length&&"string"!==n(o)&&e(o)})}(arguments),a&&!o&&u()),this},remove:function(){return mt.each(arguments,function(t,e){for(var i;-1<(i=mt.inArray(e,l,i));)l.splice(i,1),i<=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 i=[["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"]],n="pending",o={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return
|
|||
|
this.queue(i,function(i,n){var o=t.setTimeout(i,e);n.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 Nt(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,i){var n,o,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===t.getAttribute?mt.prop(t,e,i):(1===a&&mt.isXMLDoc(t)||(o=mt.attrHooks[e.toLowerCase()]||(mt.expr.match.bool.test(e)?Se:void 0)),void 0!==i?null===i?void mt.removeAttr(t,e):o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:(t.setAttribute(e,i+""),i):o&&"get"in o&&null!==(n=o.get(t,e))?n:null==(n=mt.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!lt.radioValue&&"radio"===e&&a(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,o=e&&e.match(Ot);if(o&&1===t.nodeType)for(;i=o[n++];)t.removeAttribute(i)}}),Se={set:function(t,e,i){return!1===e?mt.removeAttr(t,i):t.setAttribute(i,i),i}},mt.each(mt.expr.match.bool.source.match(/\w+/g),function(t,e){var i=Te[e]||mt.find.attr;Te[e]=function(t,e,n){var o,a,r=e.toLowerCase();return n||(a=Te[r],Te[r]=o,o=null!=i(t,e,n)?r:null,Te[r]=a),o}});var De=/^(?:input|select|textarea|button)$/i,$e=/^(?:a|area)$/i;mt.fn.extend({prop:function(t,e){return Nt(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,i){var n,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!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=mt.find.attr(t,"tabindex");return e?parseInt(e,10):De.test(t.nodeName)||$e.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,i,n,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(n=q(this),i=1===this.nodeType&&" "+U(n)+" "){for(a=0;a<e.length;a++)o=e[a],i.indexOf(" "+o+" ")<0&&(i+=o+" ");r=U(i),n!==r&&this.setAttribute("class",r)}}):this},removeClass:function(t){var e,i,n,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(n=q(this),i=1===this.nodeType&&" "+U(n)+" "){for(a=0;a<e.length;a++)for(o=e[a];-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r=U(i),n!==r&&this.setAttribute("class",r)}}):this:this.attr("class","")},toggleClass:function(t,e){var i,n,o,a,r=typeof t,s="string"===r||Array.isArray(t);return ct(t)?this.each(function(i){mt(this).toggleClass(t.call(this,i,q(this),e),e)}):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(i=W(t),this.each(function(){if(s)for(a=mt(this),o=0;o<i.length;o++)n=i[o],a.hasClass(n)?a.removeClass(n):a.addClass(n);else void 0!==t&&"boolean"!==r||((n=q(this))&&jt.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":jt.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+U(q(i))+" ").indexOf(e))return!0;return!1}});var Ee=/\r/g;mt.fn.extend({val:function(t){var e,i,n,o=this[0];return arguments.length?(n=ct(t),this.each(function(i){var o;1===this.nodeType&&(nu
|
|||
|
this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.4.1",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.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&&(i.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(n.TRANSITION_DURATION)[r](this.$element[0][l])}}}},n.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 i=this.dimension();this.$element[i](this.$element[i]())[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[i](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(n.TRANSITION_DURATION)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var o=t(n);this.addAriaAndCollapsedClass(e(o),o)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var o=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var o=t(this);o.attr("data-target")||n.preventDefault();var a=e(o),r=a.data("bs.collapse"),s=r?"toggle":o.data();i.call(a,s)})}(jQuery),function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==i?t(document).find(i):null;return n&&n.length?n:e.parent()}function i(i){i&&3===i.which||(t(o).remove(),t(a).each(function(){var n=t(this),o=e(n),a={relatedTarget:this};o.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(o[0],i.target)||(o.trigger(i=t.Event("hide.bs.dropdown",a)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),o.removeClass("open").trigger(t.Event("hidden.bs.dropdown",a)))))}))}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new r(this)),"string"==typeof e&&n[e].call(i)})}var o=".dropdown-backdrop",a='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.4.1",r.prototype.toggle=function(n){var o=t(this);if(!o.is(".disabled, :disabled")){var a=e(o),r=a.hasClass("open");if(i(),!r){"ontouchstart"in document.documentElement&&!a.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var s={relatedTarget:this};if(a.trigger(n=t.Event("show.bs.dropdown",s)),n.isDefaultPrevented())return;o.trigger("focus").attr("aria-expand
|
|||
|
"bootstrap-table":"../libs/bootstrap-table/dist/bootstrap-table.min","bootstrap-table-export":"../libs/bootstrap-table/dist/extensions/export/bootstrap-table-export.min","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 i=requirejs.s.contexts._.config.config;window.Config=i;var n={};n.lang=i.moduleurl+"/ajax/lang?callback=define&controllername="+i.controllername+"&lang="+i.language,n["frontend/"]="frontend/",require.config({paths:n}),t(function(){require(["fast"],function(t){require(["frontend","frontend-init","addons"],function(t,n){i.jsname&&require([i.jsname],function(t){t[i.actionname]!=e&&t[i.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,i){i()}};var t=document.getElementsByTagName("head")[0],e=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,i=!1,n=!0;e[1]||e[7]?i=parseInt(e[1])<6||parseInt(e[7])<=9:e[2]||e[8]?n=!1:e[4]&&(i=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=functi
|
|||
|
;b=e.message}return!1}(_,e)){x++,v=i(_,!0);var C=null,S=t("<div/>"),T=t("<div/>"),D=t("<div/>"),$=t("<div/>"),E=t(_.closeHtml),F={intervalId:null,hideEta:null,maxHideTime:null},A={toastId:x,state:"visible",startTime:new Date,options:_,map:e};return function(){a(),s(),l(),c(),d(),u(),r(),o()}(),function(){S.hide(),S[_.showMethod]({duration:_.showDuration,easing:_.showEasing,complete:_.onShown}),_.timeOut>0&&(C=setTimeout(p,_.timeOut),F.maxHideTime=parseFloat(_.timeOut),F.hideEta=(new Date).getTime()+F.maxHideTime,_.progressBar&&(F.intervalId=setInterval(w,10)))}(),function(){_.closeOnHover&&S.hover(y,f),!_.onclick&&_.tapToDismiss&&S.click(p),_.closeButton&&E&&E.click(function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),_.onCloseClick&&_.onCloseClick(t),p(!0)}),_.onclick&&S.click(function(t){_.onclick(t),p()})}(),h(A),_.debug&&console&&console.log(A),S}}function m(){return t.extend({},p(),_.options)}function g(t){v||(v=i()),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:i,info:n,options:{},subscribe:o,success:a,version:"2.1.4",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,i,n,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 n=void 0!==t.data?t.data:null,o=void 0!==t.msg&&t.msg?t.msg:__("Operation completed");if("function"==typeof e){if(!1===e.call(this,n,t))return}i.success(o)},onAjaxError:function(t,e){var n=void 0!==t.data?t.data:null;if("function"==typeof e){if(!1===e.call(this,n,t))return}i.error(t.msg)},onAjaxResponse:function(e){try{var i="object"==typeof e?e:JSON.parse(e);i.hasOwnProperty("code")||t.extend(i,{code:-2,msg:e,data:null})}catch(t){var i={code:-1,msg:t.message,data:null}}return i}},api:{ajax:function(e,i,o){e="string"==typeof e?{url:e}:e;var r;return(void 0===e.loading||e.loading)&&(r=n.load(e.loading||0)),e=t.extend({type:"POST",dataType:"json",xhrFields:{withCredentials:!0},success:function(t){r&&n.close(r),t=a.events.onAjaxResponse(t),1===t.code?a.events.onAjaxSuccess(t,i):a.events.onAjaxError(t,o)},error:function(t){r&&n.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)){new RegExp("^(?:[a-z]+:)?//","i").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 i=new RegExp("^((?:[a-z]+:)?\\/\\/|data:image\\/)","i"),n=Config.upload.cdnurl;return void 0!==e&&!0!==e&&0!==n.indexOf("/")||(t=i.test(t)||n&&0===t.indexOf(n)?t:n+t),e&&!i.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 i=new RegExp("[?&/]"+t+"([=/]([^&#/?]*)|&|#|$)"),n=i.exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},open:function(i,o,r){o=r&&r.title?r.title:o||"",i=a.api.fixurl(i),i=i+(i.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:i,zIndex:n.zIndex,success:function(e,i){var o=this;t(e).data("callback",o.callback),n.setTop(e);try{var r=n.getChildFrame("html",i),s=r.find(".layer-footer");if(a.api.la
|
|||
|
if(!pa.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=o+(a||"")+(r||""),ge(t)}else t._isValid=!1}function ae(t,e,i,n,o,a){var r=[re(t),Vo.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(o,10)];return a&&r.push(parseInt(a,10)),r}function re(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function se(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function le(t,e,i){if(t){if(Jo.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return p(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function ce(t,e,i){if(t)return va[t];if(e)return 0;var n=parseInt(i,10),o=n%100;return(n-o)/100*60+o}function de(t){var e,i=ga.exec(se(t._i));if(i){if(e=ae(i[4],i[3],i[2],i[5],i[6],i[7]),!le(i[1],e,t))return;t._a=e,t._tzm=ce(i[8],i[9],i[10]),t._d=gt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function ue(e){var i=ma.exec(e._i);if(null!==i)return void(e._d=new Date(+i[1]));oe(e),!1===e._isValid&&(delete e._isValid,de(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))}function pe(t,e,i){return null!=t?t:null!=e?e:i}function he(e){var i=new Date(t.now());return e._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function fe(t){var e,i,n,o,a,r=[];if(!t._d){for(n=he(t),t._w&&null==t._a[Po]&&null==t._a[Ro]&&me(t),null!=t._dayOfYear&&(a=pe(t._a[No],n[No]),(t._dayOfYear>Q(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),i=gt(a,0,t._dayOfYear),t._a[Ro]=i.getUTCMonth(),t._a[Po]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=r[e]=n[e];for(;e<7;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Io]&&0===t._a[jo]&&0===t._a[Ho]&&0===t._a[zo]&&(t._nextDay=!0,t._a[Io]=0),t._d=(t._useUTC?gt:mt).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[Io]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(p(t).weekdayMismatch=!0)}}function me(t){var e,i,n,o,a,r,s,l,c;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(a=1,r=4,i=pe(e.GG,t._a[No],bt(Ce(),1,4).year),n=pe(e.W,1),((o=pe(e.E,1))<1||o>7)&&(l=!0)):(a=t._locale._week.dow,r=t._locale._week.doy,c=bt(Ce(),a,r),i=pe(e.gg,t._a[No],c.year),n=pe(e.w,c.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+a,(e.e<0||e.e>6)&&(l=!0)):o=a),n<1||n>xt(i,a,r)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(s=yt(i,n,o,a,r),t._a[No]=s.year,t._dayOfYear=s.dayOfYear)}function ge(e){if(e._f===t.ISO_8601)return void oe(e);if(e._f===t.RFC_2822)return void de(e);e._a=[],p(e).empty=!0;var i,n,o,a,r,s,l,c=""+e._i,d=c.length,u=0;for(o=A(e._f,e._locale).match(ao)||[],l=o.length,i=0;i<l;i++)a=o[i],n=(c.match(z(a,e))||[])[0],n&&(r=c.substr(0,c.indexOf(n)),r.length>0&&p(e).unusedInput.push(r),c=c.slice(c.indexOf(n)+n.length),u+=n.length),lo[a]?(n?p(e).empty=!1:p(e).unusedTokens.push(a),G(a,n,e)):e._strict&&!n&&p(e).unusedTokens.push(a);p(e).charsLeftOver=d-u,c.length>0&&p(e).unusedInput.push(c),e._a[Io]<=12&&!0===p(e).bigHour&&e._a[Io]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Io]=ve(e._locale,e._a[Io],e._meridiem),s=p(e).era,null!==s&&(e._a[No]=e._locale.erasConvertYear(s,e._a[No])),fe(e),ne(e)}function ve(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?(n=t.isPM(i),n&&e<12&&(e+=12),n||12!==e||(e=0),e):e}function ye(t){var e,i,n,o,a,r,s=!1,l=t._f.length;if(0===l)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<l;o++)a=0,r=!1,e=m({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],ge(e),h(e)&&(r=!0),a+=p(e).charsLeftOver,a+=10*p(e).unusedTokens.length,p(e).score=a,s?a<n&&(n=a,i=e):(null==n||a<n||r)&&(n=a,i=e,r&&(s=!0));c(t,i||e)}function be(t){if(!t._d){var e=I(t._i),i=void 0===e.day?e.date:e.day;t._a=l([e.year,e.month,i,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),fe(t)}}function xe(t){var e=new g(ne(we(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function we(t){var i=t._i
|
|||
|
MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=b("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var ya=b("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:f()}),ba=b("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:f()}),xa=function(){return Date.now?Date.now():+new Date},wa=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ne("Z",":"),Ne("ZZ",""),H("Z",Eo),H("ZZ",Eo),W(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=Re(Eo,t)});var _a=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var ka=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ca=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Qe.fn=Ae.prototype,Qe.invalid=Fe;var Sa=ti(1,"add"),Ta=ti(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Da=b("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)}),$a=1e3,Ea=60*$a,Fa=60*Ea,Aa=3506328*Fa;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"),H("N",Ji),H("NN",Ji),H("NNN",Ji),H("NNNN",tn),H("NNNNN",en),W(["N","NN","NNN","NNNN","NNNNN"],function(t,e,i,n){var o=i._locale.erasParse(t,n,i._strict);o?p(i).era=o:p(i).invalidEra=t}),H("y",To),H("yy",To),H("yyy",To),H("yyyy",To),H("yo",nn),W(["y","yy","yyy","yyyy"],No),W(["yo"],function(t,e,i,n){var o;i._locale._eraYearOrdinalRegex&&(o=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[No]=i._locale.eraYearOrdinalParse(t,o):e[No]=parseInt(t,10)}),D(0,["gg",2],0,function(){return this.weekYear()%100}),D(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),H("G",Do),H("g",Do),H("GG",xo,go),H("gg",xo,go),H("GGGG",Co,yo),H("gggg",Co,yo),H("GGGGG",So,bo),H("ggggg",So,bo),V(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=q(t)}),V(["gg","GG"],function(e,i,n,o){i[o]=t.parseTwoDigitYear(e)}),D("Q",0,"Qo","quarter"),H("Q",mo),W("Q",function(t,e){e[Ro]=3*(q(t)-1)}),D("D",["DD",2],"Do","date"),H("D",xo,Oo),H("DD",xo,go),H("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),W(["D","DD"],Po),W("Do",function(t,e){e[Po]=q(t.match(xo)[0])});var Oa=Z("Date",!0);D("DDD",["DDDD",3],"DDDo","dayOfYear"),H("DDD",ko),H("DDDD",vo),W(["DDD","DDDD"],function(t,e,i){i._dayOfYear=q(t)}),D("m",["mm",2],0,"minute"),H("m",xo,Mo),H("mm",xo,go),W(["m","mm"],jo);var Ma=Z("Minutes",!1);D("s",["ss",2],0,"second"),H("s",xo,Mo),H("ss",xo,go),W(["s","ss"],Ho);var La=Z("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*th
|
|||
|
n.trigger("column-switch",t(this).data("field"),e.prop("checked"))})),this.options.search&&((a=[]).push('<div class="pull-'+this.options.searchAlign+' search">',e('<input class="form-control'+e(" input-%s",this.options.iconSize)+'" type="text" placeholder="%s">',this.options.formatSearch()),"</div>"),this.$toolbar.append(a.join("")),(i=this.$toolbar.find(".search input")).off("keyup drop blur").on("keyup drop blur",function(e){n.options.searchOnEnterKey&&13!==e.keyCode||-1<t.inArray(e.keyCode,[37,38,39,40])||(clearTimeout(r),r=setTimeout(function(){n.onSearch(e)},n.options.searchTimeOut))}),c())&&i.off("mouseup").on("mouseup",function(t){clearTimeout(r),r=setTimeout(function(){n.onSearch(t)},n.options.searchTimeOut)})},d.prototype.onSearch=function(e){var i=t.trim(t(e.currentTarget).val());this.options.trimOnSearch&&t(e.currentTarget).val()!==i&&t(e.currentTarget).val(i),i===this.searchText||""===i&&void 0===this.searchText||(this.searchText=i,this.options.searchText=i,this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("search",i))},d.prototype.initSearch=function(){var e,n,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(),n=t.isEmptyObject(this.filterColumns)?null:this.filterColumns,this.data=n?t.grep(this.options.data,function(e,i){for(var o in n)if(t.isArray(n[o])&&-1===t.inArray(e[o],n[o])||!t.isArray(n[o])&&e[o]!==n[o])return!1;return!0}):this.options.data,this.data=e?t.grep(this.data,function(n,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[i(a.columns,l)];if("string"==typeof l){for(var d=n,u=l.split("."),p=0;p<u.length;p++)d=d[u[p]];c&&c.searchFormatter&&(d=o(c,a.header.formatters[s],[d,n,r],d))}else d=n[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 i,n,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"==typ
|
|||
|
},d.prototype.expandAllRows=function(i){if(i){var i=this.$body.find(e('> tr[data-index="%s"]',0)),n=this,o=null,a=!1,r=-1;if(i.next().is("tr.detail-view")?i.next().next().is("tr.detail-view")||(i.next().find(".detail-icon").click(),a=!0):(i.find("> td > .detail-icon").click(),a=!0),a)try{r=setInterval(function(){0<(o=n.$body.find("tr.detail-view").last().find(".detail-icon")).length?o.click():clearInterval(r)},1)}catch(i){clearInterval(r)}}else for(var s=this.$body.children(),l=0;l<s.length;l++)this.expandRow_(!0,t(s[l]).data("index"))},d.prototype.collapseAllRows=function(e){if(e)this.expandRow_(!1,0);else for(var i=this.$body.children(),n=0;n<i.length;n++)this.expandRow_(!1,t(i[n]).data("index"))},d.prototype.updateFormatText=function(t,i){this.options[e("format%s",t)]&&("string"==typeof i?this.options[e("format%s",t)]=function(){return i}:"function"==typeof i&&(this.options[e("format%s",t)]=i)),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 i,n=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;i=a[e].apply(a,n),"destroy"===e&&o.removeData("bootstrap.table")}a||o.data("bootstrap.table",a=new d(this,r))}),void 0===i?this:i},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:i,compareObjects:a,calculateObjectValue:o,getItemField:l,objectKeys:function(){var t,e,i,n;Object.keys||(Object.keys=(t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),n=(i=["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<n;r++)t.call(o,i[r])&&s.push(i[r]);return s}))},isIEBrowser:c},t(function(){t('[data-toggle="table"]').bootstrapTable()})}(jQuery),define("bootstrap-table",["bootstrap"],function(t){return function(){return 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,i){return"显示第 "+t+" 到第 "+e+" 条记录,总共 "+i+" 条记录"},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(){return t.$.fn.bootstrapTable.
|
|||
|
o||null==l.return||l.return()}finally{if(a)throw r}}t()}return null},o)}()}},{key:"accept",value:function(t,i){this.options.maxFilesize&&t.size>1024*this.options.maxFilesize*1024?i(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):e.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(i(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,i):i(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var i=this;t.upload={uuid:e.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t)},this.files.push(t),t.status=e.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,function(e){e?(t.accepted=!1,i._errorProcessing([t],e)):(t.accepted=!0,i.options.autoQueue&&i.enqueueFile(t)),i._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(t){var e=!0,i=!1,n=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){i=!0,n=t}finally{try{e||null==a.return||a.return()}finally{if(i)throw n}}return null}},{key:"enqueueFile",value:function(t){var i=this;if(t.status!==e.ADDED||!0!==t.accepted)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 i.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(i){return t.emit("thumbnail",e,i),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 i=!0,n=!1,o=void 0;try{for(var a,r=this.files.slice()[Symbol.iterator]();!(i=(a=r.next()).done);i=!0){var s=a.value;(s.status!==e.UPLOADING||t)&&this.removeFile(s)}}catch(t){n=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(n)throw o}}return null}},{key:"resizeImage",value:function(t,i,n,o,a){var r=this;return this.createThumbnail(t,i,n,o,!0,function(i,n){if(null==n)return a(t);var o=r.options.resizeMimeType;null==o&&(o=t.type);var s=n.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,i,n,o,a){var r=this,s=new FileReader;s.onload=function(){if(t.dataURL=s.result,"image/svg+xml"===t.type)return void(null!=a&&a(s.result));r.createThumbnailFromUrl(t,e,i,n,o,a)},s.readAsDataURL(t)}},{key:"displayExistingFile",value:function(t,e,i,n){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),i&&i()};t.dataURL=e,this.createThumbnailFromUrl(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.resizeMethod,this.options.fixOrientation,r,n)}else this.emit("thumbnail",t,e),i&&i()}},{key:"createThumbnailFromUrl",value:function(t,e,i,n,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.
|
|||
|
o.api.upload("#"+l,n,a,r),setTimeout(function(){o.list[l].addFile(e)},1)},custom:{afteruploadcallback:function(t){console.log(this,t),alert("Custom Callback,Response URL:"+t.url)}}}};return o}),function(t){"object"==typeof module&&module.exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("validator",["jquery"],t):t(jQuery)}(function(t,e){"use strict";function i(e,n){function o(){a.$el=t(e),a.$el.length?a._init(a.$el[0],n):O(e)&&(R[e]=n)}var a=this;if(!(a instanceof i))return new i(e,n);i.pending?t(window).on("validatorready",o):o()}function n(e){function i(){var e=this.options;for(var i in e)i in I&&(this[i]=e[i]);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,i){function n(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=F(t)&&+t==+t;return 2===s.length?c&&d?(h&&n(t,+c)&&n(+d,t)&&(o=!0),p=p.concat(s),u=l?"gtlt":"rg"):c&&!d?(h&&n(t,+c)&&(o=!0),p.push(c),u=l?"gt":"gte"):!c&&d&&(h&&n(+d,t)&&(o=!0),p.push(d),u=l?"lt":"lte"):(t===+c&&(o=!0),p.push(c),u="eq"),r&&(i&&r[u+i]&&(u+=i),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],i=t.length;if(e){for(;--i;)e=e.replace("{"+i+"}",t[i]);return e}}})}function n(i,n,o){this.key=i,this.validator=e,t.extend(this,o,n)}return i.prototype=e,n.prototype=new i,n}function o(t,e){if(M(t)){var i,n=e?!0===e?this:e:o.prototype;for(i in t)h(i)&&(n[i]=r(t[i]))}}function a(t,e){if(M(t)){var i,n=e?!0===e?this:e:a.prototype;for(i in t)n[i]=t[i]}}function r(e){switch(t.type(e)){case"function":return e;case"array":var i=function(){return e[0].test(this.value)||e[1]||!1};return i.msg=e[1],i;case"regexp":return function(){return e.test(this.value)}}}function s(e){var i,n,o;if(e&&e.tagName){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":case"BUTTON":case"FIELDSET":i=e.form||t(e).closest("."+y);break;case"FORM":i=e;break;default:i=t(e).closest("."+y)}for(n in R)if(t(i).is(n)){o=R[n];break}return t(i).data(g)||t(i)[g](o).data(g)}}function l(t,e){var i=F(N(t,b+"-"+e));if(i&&(i=new Function("return "+i)()))return r(i)}function c(t,e,i){var n=e.msg,o=e._r;return M(n)&&(n=n[o]),O(n)||(n=N(t,x+"-"+o)||N(t,x)||(i?O(i)?i:i[o]:"")),n}function d(t){var e;return t&&(e=S.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="nice-"+g,b="data-rule",x="data-msg",w=/(&)?(!)?\b(\w+)(?:\[\s*(.*?\]?)\s*\]|\(\s*(.*?\)?)\s*\))?\s*(;|\|)?/g,_=/(\w+)(?:\[\s*(.*?\]?)\s*\]|\(\s*(.*?\)?)\s*\))?/,k=/(?:([^:;\(\[]*):)?(.*)/,C=/[^\x00-\xff]/g,S=/top|right|bottom|left/,T=/(?:(cors|jsonp):)?(?:(post|get):)?(.+)/i,D=/[<>'"`\\]|&#x?\d+[A-F]?;?|%3[A-F]/gim,$=t.noop,E=t.proxy,F=t.trim,A=t.isFunction,O=function(t){return"string"==typeof t},M=function(t){return t&&"[object Object]"===Object.prototype.toString.call(t)},L=document.documentMode||+(navigator.userAgent.match(/MSIE (\d+)/)&&RegExp.$1),N=function(t,i,n){return t&&t.tagName?n===e?t.getAttribute(i):void(null===n?t.removeAttribute(i):t.setAttribute(i,""+n)):null},R={},P={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"},I={timely:1,display:null,target:null,ignoreBlank:!1,showOk:!0,dataFilter:function(t){if(O(t)||M(t)&&("error"in t||"ok"in t))return t},msgMaker:function(e){var i;return i='<span role="alert" class="msg-wrap n-'+e.type+'">'+e.arrow,e.result?t.each
|
|||
|
var r=e.data("tag")||(e.is("table")?"tr":"dd"),s=e.data("index"),l=e.data("name"),c=e.data("template"),d=e.data();s=s?parseInt(s):0,e.data("index",s+1),i=i||{},i=void 0===i.key||void 0===i.value?{key:"",value:i}:i;var u=e.data("fieldlist-options")||{},p={index:s,name:l,data:d,options:u,key:i.key,value:i.value,row:i.value},h=c?n(c,p):n.render(o.config.fieldlisttpl,p),f=t(h);return!1!==u.deleteBtn&&!1!==u.removeBtn||!a||f.find(".btn-remove").remove(),!1===u.dragsortBtn&&a&&f.find(".btn-dragsort").remove(),!0!==u.readonlyKey&&!0!==u.disableKey||!a||f.find("input[name$='[key]']").prop("readonly",!0),f.attr("fieldlist-item",!0),f.insertAfter(t(r+"[fieldlist-item]",e).length>0?t(r+"[fieldlist-item]:last",e):t(r+":first",e)),t(".btn-append,.append",e).length>0?t(".btn-append,.append",e).trigger("fa.event.appendfieldlist",f):e.trigger("fa.event.appendfieldlist",f),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,i){var n=t(this).closest(".fieldlist");r(n,i),a(n)}),s.on("click",".btn-remove",function(){var e=t(this).closest(".fieldlist"),i=e.data("tag")||(e.is("table")?"tr":"dd");t(this).closest(i).remove(),a(e)}),s.on("fa.event.appendtofieldlist",function(e,i){var n=t(this);r(n,i),a(n)}),s.on("fa.event.refreshfieldlist",function(){var i=t(this),n=t("textarea[name='"+i.data("name")+"']",e);t("[fieldlist-item]",i).remove();var o={};try{var a=n.val().replace(/"(\d+)"\:/g,'"__PLACEHOLDERKEY__$1":');o=JSON.parse(a)}catch(t){}t.each(o,function(t,e){r(i,{key:t.toString().replace("__PLACEHOLDERKEY__",""),value:e},!0)})}),s.each(function(){var i=t(this),n=i.data("tag")||(i.is("table")?"tr":"dd");i.dragsort({itemSelector:n,dragSelector:".btn-dragsort",dragEnd:function(){a(i)},placeHolderTemplate:t("<"+n+"/>")}),"object"==typeof i.data("options")&&!1===i.data("options").appendBtn&&t(".btn-append,.append",i).hide(),t("textarea[name='"+i.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 i=t(this).data("yes"),n=t(this).data("no");e.val()==i?(e.val(n),t("i",this).addClass("fa-flip-horizontal text-gray")):(e.val(i),t("i",this).removeClass("fa-flip-horizontal text-gray")),e.trigger("change")}},this);return void 0!==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,i){return t(this).parents(".form-control").width()}).slider().on("slide",function(e){var i=t(this).data();void 0!==i.unit&&t(this).parents(".form-control").siblings(".value").text(e.value+i.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 i=function(i){var n,o,a=i.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.fn.bootstrapTable.defaults.cardView=!0),void 0!==e.exportTypes&&(t.fn.bootstrapTable.defaults.exportTypes=e.exportTypes)},bindevent:function(e){var i=e.closest(".bootstrap-table"),o=e.bootstrapTable("getOptions"),a=t(o.toolbar,i),r=t(".btn-selected-tips",i);0===r.length&&(r=t('<a href="javascript:" class="btn btn-warning-light btn-selected-tips hide" data-animation="false" data-toggle="tooltip" data-title="'+__("Click to uncheck all")+'"><i class="fa fa-info-circle"></i> '+__("Multiple selection mode: %s checked","<b>0</b>")+"</a>").appendTo(a)),r.off("click").on("click",function(t){e.trigger("uncheckbox"),e.bootstrapTable("refresh")}),e.on("uncheckbox",function(t,e,i){o.selectedIds=[],o.selectedData=[],r.tooltip("hide"),r.addClass("hide")}),e.on("load-error.bs.table",function(t,e,i){0!==i.status&&Toastr.error(__("Unknown data format"))}),e.on("load-success.bs.table",function(t,e){void 0===e.rows&&void 0!==e.code&&Toastr.error(e.msg)}),e.on("refresh.bs.table",function(e,i,o){t(n.config.refreshbtn,a).find(".fa").addClass("fa-spin"),t(".layui-layer-autocontent").remove()}),e.on("search.bs.table common-search.bs.table",function(t,i,n){e.trigger("uncheckbox")}),o.dblClickToEdit&&e.on("dbl-click-row.bs.table",function(e,i,o,a){t(n.config.editonebtn,o).trigger("click")}),e.on("pre-body.bs.table",function(e,i){o.maintainSelected&&t.each(i,function(e,i){i[o.stateField]=t.inArray(i[o.pk],o.selectedIds)>-1})}),e.on("post-body.bs.table",function(i,r){if(t(n.config.refreshbtn,a).find(".fa").removeClass("fa-spin"),t(n.config.checkboxtd+":first",e).find("input[type='checkbox'][data-index]").length>0){var s,l,c,d=!1,u=!1,p=function(i){if(d){var o=Math.min(i.pageX,s),a=Math.min(i.pageY,l),r=Math.abs(s-i.pageX),u=Math.abs(l-i.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(n.config.checkboxtd,e).each(function(){var e=t("input:checkbox",this),i=this.getBoundingClientRect();i.x+=document.documentElement.scrollLeft,i.y+=document.documentElement.scrollTop;var n=i.x,o=i.y,a=i.x+i.width,r=i.y+i.height,s=p.x,l=p.y,c=p.x+p.width,d=p.y+p.height;n<=c&&a>=s&&o<=d&&r>=l?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(n.config.checkboxtd,e).on("mousedown",function(e){if(2===e.button||t(e.target).is("input"))return!1;s=e.pageX,l=e.pageY,u=!0}).on("mousemove",function(i){u&&!d&&(d=!0,c=t("<div />"),c.css({position:"absolute",width:0,height:0,border:"1px dashed blue",background:"#0029ff",left:i.pageX+"px",top:i.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(n.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(i){var l=[];t.each(e.bootstrapTable("getData"),function(t,e){l.push(void 0!==e[o.pk]?e[o.pk]:"")});var c=n.api.selectedids(e,!0),d=n.api.selecteddata(e,!0);o.maintainSelected?(o.selectedIds=o.selectedIds.filter(function(e,i,n){return-1===t.inArray(e,l)}).concat(c),o.selectedData=o.selectedData.filter(function(e,i,n){return-1===t.inArray(e[o.pk],l)}).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(n.config.disabledbtn,a).toggleClass("disabled",!o.sel
|
|||
|
var i=t(this),n=i.data(d.dataKey),o=t.extend({},c,i.data(),n&&n.option,"object"==typeof e&&e);n||i.data(d.dataKey,n=new d(this,o))})}function i(e){return t(e).closest("div.sp_container").find("input.sp_input")}function n(){return this.each(function(){var t=i(this),e=t.data(d.dataKey);e&&(e.prop.init_set=!0,e.clearAll(e),e.prop.init_set=!1)})}function o(){return this.each(function(){var t=i(this),e=t.data(d.dataKey);e&&e.elem.hidden.val()&&e.setInitRecord(!0)})}function a(e){return this.each(function(){if(e&&t.isArray(e)){var n=i(this),o=n.data(d.dataKey);o&&(o.clearAll(o),o.option.data=e)}})}function r(e){var n=!1;return this.each(function(){var o=i(this),a=o.data(d.dataKey);a&&("undefined"!==t.type(e)?a.disabled(a,e):n=a.disabled(a))}),n}function s(){var e="";return this.each(function(){var n=i(this),o=n.data(d.dataKey);if(o)if(o.option.multiple){var a=[];o.elem.element_box.find("li.selected_tag").each(function(e,i){a.push(t(i).text())}),e+=a.toString()}else e+=o.elem.combo_input.val()}),e}function l(){var e=[];return this.each(function(){var n=i(this),o=n.data(d.dataKey);if(o)if(o.option.multiple)o.elem.element_box.find("li.selected_tag").each(function(i,n){e.push(t(n).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,escape:!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,i){t.each({data:"source",keyField:"primaryKey",showField:"field",pageSize:"perPage"},function(t,e){void 0!==i[e]&&(i[t]=i[e],delete i[e])}),this.setOption(i),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 i=["searchField"],n=0;n<i.length;n++)e[i[n]]=this.strToArray(e[i[n]]);if(e.orderBy=e.orderBy||e.showField,!1!==e.orderBy&&(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),void 0!==t[e]?t[e]:""})}}this.option=e},d.prototype.escapeHTML=function(t){return"string"==typeof t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`"):t},d.prototype.strToArray=function(t){return t?t.replace(/[\s ]+/g,"").split(","):""},d.prototype.setOrderbyOption=function(e,i){var n=[],o=[];if("object"==typeof e)for(var a=0;a<e.length;a++)o=t.trim(e[a]).split(" "),o.length&&n.push(2===o.length?o.concat():[o[0],"ASC"]);else o=t.trim(e).split(" "),n[0]=2===o.length?o.concat():o[0].toUpperCase().match(/^(ASC|DESC)$/i)?[i,o[0].toUpperCase()]:[o[0],"ASC"];return n},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",sele
|
|||
|
t.fn.selectPage.Constructor=d,t.fn.selectPageClear=n,t.fn.selectPageRefresh=o,t.fn.selectPageData=a,t.fn.selectPageDisabled=r,t.fn.selectPageText=s,t.fn.selectPageSelectedData=l,t.fn.selectPage.noConflict=function(){return t.fn.selectPage=u,this}}(window.jQuery),define("selectpage",function(){});
|