first commit

This commit is contained in:
hero920103 committed 2025-11-28 10:08:12 +08:00
commit 09a14bf0a3
1088 files changed
+145132

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
/**
* bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
*
* @version v1.21.4
* @homepage https://bootstrap-table.com
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
* @license MIT
*/
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function n(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function e(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=r.key,i=void 0,"symbol"==typeof(i=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(o,"string"))?i:String(i)),r)}var o,i}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function o(t,n){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},o(t,n)}function i(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,o=r(t);if(n){var u=r(this).constructor;e=Reflect.construct(o,arguments,u)}else e=o.apply(this,arguments);return i(this,e)}}function c(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=r(t)););return t}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,e){var r=c(t,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(arguments.length<3?t:e):o.value}},a.apply(this,arguments)}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=function(t){return t&&t.Math==Math&&t},s=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof f&&f)||function(){return this}()||Function("return this")(),p={},y=function(t){try{return!!t()}catch(t){return!0}},b=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!y((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),d=v,g=Function.prototype.call,h=d?g.bind(g):function(){return g.apply(g,arguments)},m={},O={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,w=j&&!O.call({1:2},1);m.f=w?function(t){var n=j(this,t);return!!n&&n.enumerable}:O;var S,P,T=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},E=v,x=Function.prototype,A=x.call,_=E&&x.bind.bind(A,A),R=E?_:function(t){return function(){return A.apply(t,arguments)}},C=R,F=C({}.toString),k=C("".slice),I=function(t){return k(F(t),8,-1)},M=y,D=I,L=Object,N=R("".split),z=M((function(){return!L("z").propertyIsEnumerable(0)}))?function(t){return"String"==D(t)?N(t,""):L(t)}:L,B=function(t){return null==t},G=B,J=TypeError,q=function(t){if(G(t))throw J("Can't call method on "+t);return t},W=z,H=q,U=function(t){return W(H(t))},X="object"==typeof document&&document.all,$={all:X,IS_HTMLDDA:void 0===X&&void 0!==X},K=$.all,Q=$.IS_HTMLDDA?function(t){return"function"==typeof t||t===K}:function(t){return"function"==typeof t},V=Q,Y=$.all,Z=$.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:V(t)||t===Y}:function(t){return"object"==typeof t?null!==t:V(t)},tt=s,nt=Q,et=function(t){return nt(t)?t:void 0},rt=function(t,n){return arguments.length<2?et(tt[t]):tt[t]&&tt[t][n]},ot=R({}.isPrototypeOf),it=s,ut="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ct=it.process,at=it.Deno,ft=ct&&ct.versions||at&&at.version,lt=ft&&ft.v8;lt&&(P=(S=lt.split("."))[0]>0&&S[0]<4?1:+(S[0]+S[1])),!P&&ut&&(!(S=ut.match(/Edge\/(\d+)/))||S[1]>=74)&&(S=ut.match(/Chrome\/(\d+)/))&&(P=+S[1]);var st=P,pt=st,yt=y,bt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pt&&pt<41})),vt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,dt=rt,gt=Q,ht=ot,mt=Object,Ot=vt?function(t){return"symbol"==typeof t}:function(t){var n=dt("Symbol");return gt(n)&&ht(n.prototype,mt(t))},jt=String,wt=Q,St=function(t){try{return jt(t)}catch(t){return"Object"}},Pt=TypeError,Tt=function(t){if(wt(t))return t;throw Pt(St(t)+" is not a function")},Et=Tt,xt=B,At=h,_t=Q,Rt=Z,Ct=TypeError,Ft={},kt={get exports(){return Ft},set exports(t){Ft=t}},It=s,Mt=Object.defineProperty,Dt=function(Line truncated
+10
View File
@@ -0,0 +1,10 @@
/**
* bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
*
* @version v1.21.4
* @homepage https://bootstrap-table.com
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
* @license MIT
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).BootstrapTable=e(t.jQuery)}(this,(function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,r=void 0,"symbol"==typeof(r=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?r:String(r)),n)}var o,r}function o(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,r,a,s=[],l=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=r.call(i)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return l(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function c(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=s(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,l=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){l=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(l)throw r}}}}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u=function(t){return t&&t.Math==Math&&t},d=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof h&&h)||function(){return this}()||Function("return this")(),p={},f=function(t){try{return!!t()}catch(t){return!0}},g=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!f((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),b=v,m=Function.prototype.call,y=b?m.bind(m):function(){return m.apply(m,arguments)},w={},S={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,k=x&&!S.call({1:2},1);w.f=k?function(t){var e=x(this,t);return!!e&&e.enumerable}:S;var O,C,T=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},I=v,P=Function.prototype,A=P.call,$=I&&P.bind.bind(A,A),R=I?$:function(t){return function(){return A.apply(t,arguments)}},E=R,j=E({}.toString),_=E("".slice),F=function(t){return _(j(t),8,-1)},D=f,N=F,V=Object,B=R("".split),L=D((function(){return!V("z").propertyIsEnumerable(0)}))?function(t){return"String"==N(t)?B(t,""):V(t)}:V,H=function(t){return null==t},M=H,U=TypeError,z=function(t){if(M(t))throw U("Can't call method on "+t);return t},q=L,W=z,G=function(t){return q(W(t))},K="object"==typeof document&&document.all,Y={all:K,IS_HTMLDDA:void 0===K&&void 0!==K},J=Y.all,X=Y.IS_HTMLDDA?function(t){return"function"==typeof t||t===J}:function(t){return"function"==typeof t},Q=X,Z=Y.all,tt=Y.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Q(t)||t===Z}:function(t){return"object"Line truncated
+132
View File
@@ -0,0 +1,132 @@
var location_url = window.location.href;
var parameter_str = location_url.split('?')[1];
if (parameter_str !== undefined) {
parameter_str = parameter_str.split('#')[0];
var $_GET = {};
var parameter_arr = parameter_str.split('&');
var tmp_arr;
for (var i = 0, len = parameter_arr.length; i <= len - 1; i++) {
tmp_arr = parameter_arr[i].split('=');
$_GET[tmp_arr[0]] = decodeURIComponent(tmp_arr[1]);
}
window.$_GET = $_GET;
} else {
window.$_GET = [];
}
function searchSubmit(){
$('#listTable').bootstrapTable('refresh');
return false;
}
function searchClear(){
$('#searchToolbar').find('input[name]').each(function() {
$(this).val('');
});
$('#searchToolbar').find('select[name]').each(function() {
$(this).find('option:first').prop("selected", 'selected');
});
$('#listTable').bootstrapTable('refresh');
}
function updateToolbar(){
$('#searchToolbar').find(':input[name]').each(function() {
var name = $(this).attr('name');
if(typeof window.$_GET[name] != 'undefined')
$(this).val(window.$_GET[name]);
})
}
function updateQueryStr(obj){
var arr = [];
for (var p in obj){
if (obj.hasOwnProperty(p) && typeof obj[p] != 'undefined' && obj[p] != '') {
arr.push(p + "=" + encodeURIComponent(obj[p]));
}
}
history.replaceState({}, null, '?'+arr.join("&"));
}
if (typeof $.fn.bootstrapTable !== "undefined") {
$.fn.bootstrapTable.custom = {
method: 'post',
contentType: "application/x-www-form-urlencoded",
sortable: true,
pagination: true,
sidePagination: 'server',
pageNumber: 1,
pageSize: 20,
pageList: [10, 15, 20, 30, 50, 100],
loadingFontSize: '18px',
toolbar: '#searchToolbar',
showColumns: true,
minimumCountColumns: 2,
showFullscreen: true,
paginationPreText: '前页',
paginationNextText: '后页',
showJumpTo: true,
paginationLoop: false,
queryParamsType: '',
queryParams: function(params) {
$('#searchToolbar').find(':input[name]').each(function() {
params[$(this).attr('name')] = $(this).val()
})
updateQueryStr(params);
params.offset = params.pageSize * (params.pageNumber-1);
params.limit = params.pageSize;
return params;
},
formatLoadingMessage: function(){
return '';
},
formatShowingRows: function(t,n,r,e){
return '显示第 '+t+' 到第 '+n+' 条, 总共 <b>'+r+'</b> 条';
},
formatRecordsPerPage: function(t){
return '每页显示 '+t+' 条';
},
formatNoMatches: function(){
return '没有找到匹配的记录';
}
};
$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.custom);
}
function httpGet(url, callback){
$.ajax({
url: url,
type: 'get',
dataType: 'json',
success: function (res) {
callback(res)
},
error: function () {
if (typeof layer !== "undefined") {
layer.closeAll();
layer.msg('服务器错误');
}
}
});
}
function httpPost(url, data, callback){
$.ajax({
url: url,
type: 'post',
data: data,
dataType: 'json',
success: function (res) {
callback(res)
},
error: function () {
if (typeof layer !== "undefined") {
layer.closeAll();
layer.msg('服务器错误');
}
}
});
}
var isMobile = function(){
if( /Android|SymbianOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Windows Phone|Midp/i.test(navigator.userAgent)) {
return true;
}
return false;
}