7 lines
16 KiB
JavaScript
7 lines
16 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-09151f56","chunk-04801e49","chunk-48c6c59a","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10"],{"271a":function(e,t,a){"use strict";var n=a("cb2d"),o=a("e330"),r=a("577e"),l=a("d6d6"),c=URLSearchParams,s=c.prototype,i=o(s.getAll),u=o(s.has),d=new c("a=1");!d.has("a",2)&&d.has("a",void 0)||n(s,"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=i(this,e);l(t,1);var o=r(a),c=0;while(c<n.length)if(n[c++]===o)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"),o=a.n(n),r=a("4360");const l=o.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=r["default"].getters["user/token"];l.interceptors.request.use(e=>(e.headers={token:c},e),e=>Promise.reject(e));const s=async(e,t)=>{await l.get(e,{responseType:"arraybuffer"}).then(e=>d(e,t))},i=async(e,t)=>{await l.post(e,{responseType:"arraybuffer"}).then(e=>d(e,t))},u=async(e,t)=>{await l.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)},p=async(e,t)=>{let a;return await l.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 l.post(e,t,{responseType:"blob"}).then(e=>{n=new Blob([e.data],{type:a||"application/octet-binary"})}),window.URL.createObjectURL(n)},g=async(e,t)=>{let a;return await l.get(e,{responseType:"blob"}).then(e=>{a=new Blob([e.data],{type:t||"application/octet-binary"})}),a};t["default"]={ajax:l,downloadFile:s,getFile:u,getDownloadFileUrl:p,downloadPostFile:i,getDownloadFileUrlByPost:h,getDownloadFileBlob:g,downloadBlob:b}},5494:function(e,t,a){"use strict";var n=a("83ab"),o=a("e330"),r=a("edd0"),l=URLSearchParams.prototype,c=o(l.forEach);n&&!("size"in l)&&r(l,"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,o=n.getDate(),r=new Date(n.setDate(o+a)),l=r.getFullYear(),c=r.getMonth()+1,s=r.getDate();let i,u;i=c<10?"0"+c:c,u=s<10?"0"+s:s;const d=t||"-";return l+d+i+d+u}function o(e=""){var t=new Date;""!=e&&(t=new Date(e));const a=t.getFullYear();let n=t.getMonth(),o=t.getDate();return n+=1,n=n.toString().padStart(2,"0"),o=o.toString().padStart(2,"0"),`${a}-${n}-${o}`}function r(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 l(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,o=t.getDate(),r=n-e,l=r<0?r+12:r>10?r:"0"+r,c=n>9?n:"0"+n,s=o>9?o:"0"+o,i=a+"-"+l+"-"+s,u=a+"-"+c+"-"+s;return[i,u]}function s(){const e=new Date,t=e.getFullYear(),a=e.getMonth()+1,n=e.getDate(),o=new Date(e);o.setDate(e.getDate()-1);const r=o.getFullYear(),l=(o.getMonth()+1).toString().padStart(2,"0"),c=o.getDate().toString().padStart(2,"0"),s=a>9?a:"0"+a,i=n>9?n:"0"+n,u=r+"-"+l+"-"+c,d=t+"-"+s+"-"+i;return[u,d]}function i(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 o=t.getDate();o=o<10?"0"+o:o;let r=t.getHours();r=r<10?"0"+r:r;let l=t.getMinutes();l=l<10?"0"+l:l;let c=t.getSeconds();return c=c<10?"0"+c:c,a+"-"+n+"-"+o+" "+r+":"+l+":"+c}a.r(t),a.d(t,"getFMdate",(function(){return n})),a.d(t,"getDate",(function(){return o})),a.d(t,"getDate1",(function(){return r})),
|