修改页面,完成单页模式新增首页返回上一页按钮

This commit is contained in:
2026-08-31 14:48:32 +08:00
parent aaed0584b1
commit 15b301b358
363 changed files with 10895 additions and 213 deletions
+1
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
(function(s,u){if(typeof module=="object"&&module.exports){module.exports=u(s);return}s.AxiosRequestUtil=u(s)})(typeof globalThis!="undefined"?globalThis:window,function(s){"use strict";function u(e){return typeof FormData!="undefined"&&e instanceof FormData}function h(e,r){var t=new Error(e);return Object.keys(r||{}).forEach(function(a){t[a]=r[a]}),t}function d(e){if(!e||typeof e!="object")return e;if(e.code!==void 0&&Number(e.code)!==200)throw h(e.msg||"接口请求失败",{code:e.code,response:e});return Object.prototype.hasOwnProperty.call(e,"data")?e.data:Object.prototype.hasOwnProperty.call(e,"rows")?{rows:e.rows,total:e.total}:e}function v(e){var r=e||{},t=r.axiosInstance||s.axios;if(!t||typeof t.request!="function"&&typeof t.create!="function")throw new Error("缺少 Axios 公共依赖");return typeof t.create=="function"?t.create({baseURL:r.baseUrl}):t}function g(e){var r=e||{},t=v(r);function a(p){Number(p)===401&&r.onUnauthorized&&r.onUnauthorized()}return async function(l,x,q){var o=q||{},i=Object.assign({},o.headers||{}),w=r.getToken?r.getToken():"",j=r.tokenHeaderName||"Authorization",c=o.body,m;i.clientid=r.clientId,w&&o.auth!==!1&&(i[j]="Bearer "+w),c!=null&&!u(c)&&(i["Content-Type"]=i["Content-Type"]||"application/json");try{m=await t.request({method:String(l||"GET").toLowerCase(),url:x,params:o.query,data:c,headers:i})}catch(n){var f=n.response&&n.response.data,b=n.response&&n.response.status;throw o.auth!==!1&&a(b),h(f&&f.msg||n.message||"接口请求失败",{status:b,response:f,cause:n})}try{return d(m.data)}catch(n){throw o.auth!==!1&&a(n.code),n}}}return{createRequester:g,unwrapResponse:d}});
+1
View File
@@ -0,0 +1 @@
class DateUtil{static formatDateToMonthDay(e){try{const t=DateUtil._parseDate(e);if(!DateUtil._isValidDate(t))return"";const r=t.getMonth()+1,a=t.getDate();return`${r}${a}`}catch(t){return""}}static formatDateToYearMonthDay(e){try{const t=DateUtil._parseDate(e);if(!DateUtil._isValidDate(t))return"";const r=t.getFullYear(),a=t.getMonth()+1,n=t.getDate();return`${r}${a}${n}`}catch(t){return""}}static formatDateToYMD(e){try{const t=DateUtil._parseDate(e);if(!DateUtil._isValidDate(t))return"";const r=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0");return`${r}-${a}-${n}`}catch(t){return""}}static formatDateTimeToYMDHMS(e){try{const t=DateUtil._parseDate(e);if(!DateUtil._isValidDate(t))return"";const r=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0"),c=String(t.getSeconds()).padStart(2,"0");return`${r}-${a}-${n} ${o}:${s}:${c}`}catch(t){return""}}static formatDateTimeToYMDHM(e){try{const t=DateUtil._parseDate(e);if(!DateUtil._isValidDate(t))return"";const r=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0");return`${r}-${a}-${n} ${o}:${s}`}catch(t){return""}}static formatTimeToHMS(e){try{const t=typeof e=="number"?new Date(e):DateUtil._parseDate(e);if(!DateUtil._isValidDate(t))return"";const r=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),n=String(t.getSeconds()).padStart(2,"0");return`${r}:${a}:${n}`}catch(t){return""}}static getCurrentDate(){return new Date}static isSameDay(e,t){try{const r=DateUtil._parseDate(e),a=DateUtil._parseDate(t);return!DateUtil._isValidDate(r)||!DateUtil._isValidDate(a)?!1:r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()&&r.getDate()===a.getDate()}catch(r){return!1}}static _parseDate(e){if(e instanceof Date)return e;if(typeof e!="string")return null;const t=e.trim();return t?/^\d{4}-\d{2}-\d{2}$/.test(t)?new Date(t.replace(/-/g,"/")):new Date(t):null}static _isValidDate(e){return e instanceof Date&&!Number.isNaN(e.getTime())}}typeof module!="undefined"&&module.exports?module.exports=DateUtil:typeof window!="undefined"&&(window.DateUtil=DateUtil);
+1
View File
@@ -0,0 +1 @@
(function(u,i){if(typeof module=="object"&&module.exports){module.exports=i();return}u.FormUtil=i()})(typeof globalThis!="undefined"?globalThis:window,function(){"use strict";function u(e){if(e!=null){var n=String(e).trim();return n||void 0}}function i(e){var n=u(e);if(n!==void 0){var r=Number(n);return Number.isNaN(r)?void 0:r}}function d(e){if(e===!0||e===!1)return e;var n=u(e);return n===void 0?!1:!["0","false","off","no"].includes(n.toLowerCase())}function f(e){if(!(!e||e.disabled||!e.name))return e.type==="checkbox"?e.checked?e.value||"on":void 0:e.type==="radio"?e.checked?e.value:void 0:e.value}function a(e){var n={};return!e||!e.elements||Array.prototype.forEach.call(e.elements,function(r){var t=f(r);t!==void 0&&(n[r.name]=t)}),n}return{trimOrUndefined:u,toNumberOrUndefined:i,toBoolean:d,getFormValues:a}});
+1
View File
@@ -0,0 +1 @@
(function(e,s){if(typeof module=="object"&&module.exports){module.exports=s(e);return}e.MessageUtil=s(e)})(typeof globalThis!="undefined"?globalThis:window,function(e){"use strict";var s={skin:"auth-layer-message",time:2200};function n(l,a){var i=String(l||""),u=Object.assign({},s,a||{});if(e.layui&&e.layui.layer&&e.layui.layer.msg){e.layui.layer.msg(i,u);return}e.console&&e.console.warn&&e.console.warn(i)}return{show:n}});
+1
View File
@@ -0,0 +1 @@
(function(o,t){if(typeof module=="object"&&module.exports){module.exports=t();return}o.StorageUtil=t()})(typeof globalThis!="undefined"?globalThis:window,function(){"use strict";function o(e,r){try{return e&&e.getItem(r)}catch(n){return null}}function t(e,r,n){try{e&&e.setItem(r,n)}catch(u){}}function i(e,r){try{e&&e.removeItem(r)}catch(n){}}return{read:o,write:t,remove:i}});
+9
View File
File diff suppressed because one or more lines are too long