7 lines
6.8 KiB
JavaScript
7 lines
6.8 KiB
JavaScript
|
/*!
|
||
|
* build: vue-admin-beautiful
|
||
|
* vue-admin-beautiful author: chuzhixin 1204505056@qq.com
|
||
|
* vue-admin-beautiful QQ Group(QQ群): 972435319、1139183756
|
||
|
* time: 2024-10-10 11:14:28
|
||
|
*/
|
||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0634e027","chunk-04801e49","chunk-48c6c59a","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10"],{"271a":function(e,t,n){"use strict";var a=n("cb2d"),r=n("e330"),o=n("577e"),u=n("d6d6"),c=URLSearchParams,i=c.prototype,d=r(i.getAll),s=r(i.has),l=new c("a=1");!l.has("a",2)&&l.has("a",void 0)||a(i,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return s(this,e);var a=d(this,e);u(t,1);var r=o(n),c=0;while(c<a.length)if(a[c++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},3038:function(e,t,n){"use strict";n.r(t);n("88a7"),n("271a"),n("5494");var a=n("bc3a"),r=n.n(a),o=n("4360");const u=r.a.create({baseURL:Object({NODE_ENV:"production",VUE_APP_AUTHOR:"Cc",VUE_APP_TITLE:"力鼎环保",VUE_APP_UPDATE_TIME:"2024-10-10 11:14:28",VUE_APP_VERSION:"1.0.0",BASE_URL:""}).VUE_APP_BASE_API,timeout:1e5}),c=o["default"].getters["user/token"];u.interceptors.request.use(e=>(e.headers={token:c},e),e=>Promise.reject(e));const i=async(e,t)=>{await u.get(e,{responseType:"arraybuffer"}).then(e=>l(e,t))},d=async(e,t)=>{await u.post(e,{responseType:"arraybuffer"}).then(e=>l(e,t))},s=async(e,t)=>{await u.get(e,{responseType:"blob"}).then(e=>l(e,t))},l=(e,t)=>{const n=new Blob([e.data],{type:t.fileType?t.fileType:"application/octet-binary"}),a=window.URL.createObjectURL(n);f(a,t.fileName)},f=(e,t,n)=>{const a=document.createElement("a");a.href=e,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),(null==n||n)&&window.URL.revokeObjectURL(e)},p=async(e,t)=>{let n;return await u.get(e,{responseType:"blob"}).then(e=>{n=new Blob([e.data],{type:t||"application/octet-binary"})}),window.URL.createObjectURL(n)},g=async(e,t,n)=>{let a;return await u.post(e,t,{responseType:"blob"}).then(e=>{a=new Blob([e.data],{type:n||"application/octet-binary"})}),window.URL.createObjectURL(a)},b=async(e,t)=>{let n;return await u.get(e,{responseType:"blob"}).then(e=>{n=new Blob([e.data],{type:t||"application/octet-binary"})}),n};t["default"]={ajax:u,downloadFile:i,getFile:s,getDownloadFileUrl:p,downloadPostFile:d,getDownloadFileUrlByPost:g,getDownloadFileBlob:b,downloadBlob:f}},5494:function(e,t,n){"use strict";var a=n("83ab"),r=n("e330"),o=n("edd0"),u=URLSearchParams.prototype,c=r(u.forEach);a&&!("size"in u)&&o(u,"size",{get:function(){var e=0;return c(this,(function(){e++})),e},configurable:!0,enumerable:!0})},"5f99":function(e,t,n){"use strict";function a(e,t){const n=parseInt(e),a=new Date,r=a.getDate(),o=new Date(a.setDate(r+n)),u=o.getFullYear(),c=o.getMonth()+1,i=o.getDate();let d,s;d=c<10?"0"+c:c,s=i<10?"0"+i:i;const l=t||"-";return u+l+d+l+s}function r(e=""){var t=new Date;""!=e&&(t=new Date(e));const n=t.getFullYear();let a=t.getMonth(),r=t.getDate();return a+=1,a=a.toString().padStart(2,"0"),r=r.toString().padStart(2,"0"),`${n}-${a}-${r}`}function o(e=""){var t=new Date;""!=e&&(t=new Date(e));const n=t.getFullYear();let a=t.getMonth();return a+=1,a=a.toString().padStart(2,"0"),`${n}-${a}`}function u(e=""){var t=new Date;""!=e&&(t=new Date(e));const n=t.getFullYear();return""+n}function c(e){const t=new Date,n=t.getFullYear(),a=t.getMonth()+1,r=t.getDate(),o=a-e,u=o<0?o+12:o>10?o:"0"+o,c=a>9?a:"0"+a,i=r>9?r:"0"+r,d=n+"-"+u+"-"+i,s=n+"-"+c+"-"+i;return[d,s]}function i(){const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,a=e.getDate(),r=new Date(e);r.setDate(e.getDate()-1);const o=r.getFullYear(),u=(r.getMonth()+1).toString().padStart(2,"0"),c=r.getDate().toString().padStart(2,"0"),i=n>9?n:"0"+n,d=a>9?a:"0"+a,s=o+"-"+u+"-"+c,l=t+"-"+i+"-"+d;return[s,l]}function d(e){var t=new Date;""!=e&&(t=new Date(e));const n=t.getFullYear();let a=t.getMonth()+1;a=a<10?"0"+a:a;let r=t.getDate();r=r<10?"0"+r:r;let o=t.getHours();o=o<10?"0"+o:o;let u=t.getMinutes();u=u<10?"0"+u:u;let c=t.getSeconds();return c=c<10?"0"+c:c,n+"-"+a+"-"+r+" "+o+":"+u+":"+c}n.r(t),n.d(t,"getFMdate",(function(){return a})),n.d(t,"getDate",(function(){return r})),n.d(t,"getDate1",(function(){return o})),
|