7 lines
13 KiB
JavaScript
7 lines
13 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-1fba3b6a","chunk-04801e49","chunk-48c6c59a","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10"],{"11fa":function(e,t,a){"use strict";a("dd47")},"271a":function(e,t,a){"use strict";var n=a("cb2d"),r=a("e330"),o=a("577e"),i=a("d6d6"),c=URLSearchParams,l=c.prototype,s=r(l.getAll),u=r(l.has),d=new c("a=1");!d.has("a",2)&&d.has("a",void 0)||n(l,"has",(function(e){var t=arguments.length,a=t<2?void 0:arguments[1];if(t&&void 0===a)return u(this,e);var n=s(this,e);i(t,1);var r=o(a),c=0;while(c<n.length)if(n[c++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},3038:function(e,t,a){"use strict";a.r(t);a("88a7"),a("271a"),a("5494");var n=a("bc3a"),r=a.n(n),o=a("4360");const i=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"];i.interceptors.request.use(e=>(e.headers={token:c},e),e=>Promise.reject(e));const l=async(e,t)=>{await i.get(e,{responseType:"arraybuffer"}).then(e=>d(e,t))},s=async(e,t)=>{await i.post(e,{responseType:"arraybuffer"}).then(e=>d(e,t))},u=async(e,t)=>{await i.get(e,{responseType:"blob"}).then(e=>d(e,t))},d=(e,t)=>{const a=new Blob([e.data],{type:t.fileType?t.fileType:"application/octet-binary"}),n=window.URL.createObjectURL(a);b(n,t.fileName)},b=(e,t,a)=>{const n=document.createElement("a");n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),(null==a||a)&&window.URL.revokeObjectURL(e)},g=async(e,t)=>{let a;return await i.get(e,{responseType:"blob"}).then(e=>{a=new Blob([e.data],{type:t||"application/octet-binary"})}),window.URL.createObjectURL(a)},h=async(e,t,a)=>{let n;return await i.post(e,t,{responseType:"blob"}).then(e=>{n=new Blob([e.data],{type:a||"application/octet-binary"})}),window.URL.createObjectURL(n)},p=async(e,t)=>{let a;return await i.get(e,{responseType:"blob"}).then(e=>{a=new Blob([e.data],{type:t||"application/octet-binary"})}),a};t["default"]={ajax:i,downloadFile:l,getFile:u,getDownloadFileUrl:g,downloadPostFile:s,getDownloadFileUrlByPost:h,getDownloadFileBlob:p,downloadBlob:b}},5494:function(e,t,a){"use strict";var n=a("83ab"),r=a("e330"),o=a("edd0"),i=URLSearchParams.prototype,c=r(i.forEach);n&&!("size"in i)&&o(i,"size",{get:function(){var e=0;return c(this,(function(){e++})),e},configurable:!0,enumerable:!0})},"5f99":function(e,t,a){"use strict";function n(e,t){const a=parseInt(e),n=new Date,r=n.getDate(),o=new Date(n.setDate(r+a)),i=o.getFullYear(),c=o.getMonth()+1,l=o.getDate();let s,u;s=c<10?"0"+c:c,u=l<10?"0"+l:l;const d=t||"-";return i+d+s+d+u}function r(e=""){var t=new Date;""!=e&&(t=new Date(e));const a=t.getFullYear();let n=t.getMonth(),r=t.getDate();return n+=1,n=n.toString().padStart(2,"0"),r=r.toString().padStart(2,"0"),`${a}-${n}-${r}`}function o(e=""){var t=new Date;""!=e&&(t=new Date(e));const a=t.getFullYear();let n=t.getMonth();return n+=1,n=n.toString().padStart(2,"0"),`${a}-${n}`}function i(e=""){var t=new Date;""!=e&&(t=new Date(e));const a=t.getFullYear();return""+a}function c(e){const t=new Date,a=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),o=n-e,i=o<0?o+12:o>10?o:"0"+o,c=n>9?n:"0"+n,l=r>9?r:"0"+r,s=a+"-"+i+"-"+l,u=a+"-"+c+"-"+l;return[s,u]}function l(){const e=new Date,t=e.getFullYear(),a=e.getMonth()+1,n=e.getDate(),r=new Date(e);r.setDate(e.getDate()-1);const o=r.getFullYear(),i=(r.getMonth()+1).toString().padStart(2,"0"),c=r.getDate().toString().padStart(2,"0"),l=a>9?a:"0"+a,s=n>9?n:"0"+n,u=o+"-"+i+"-"+c,d=t+"-"+l+"-"+s;return[u,d]}function s(e){var t=new Date;""!=e&&(t=new Date(e));const a=t.getFullYear();let n=t.getMonth()+1;n=n<10?"0"+n:n;let r=t.getDate();r=r<10?"0"+r:r;let o=t.getHours();o=o<10?"0"+o:o;let i=t.getMinutes();i=i<10?"0"+i:i;let c=t.getSeconds();return c=c<10?"0"+c:c,a+"-"+n+"-"+r+" "+o+":"+i+":"+c}a.r(t),a.d(t,"getFMdate",(function(){return n})),a.d(t,"getDate",(function(){return
|