Files
yycea/public/assets/addons/wdsxh/fullscreen/static/js/app.b9bbb2a4.js
2026-03-17 09:56:06 +08:00

2 lines
10 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){"use strict";var e={2514:function(e,t,n){var r=n(5471),o=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},i=[],u=n(1656),s={},a=(0,u.A)(s,o,i,!1,null,"d65d3f30",null),c=a.exports,f=n(1052),l=n.n(f),d=n(173);r["default"].use(d.Ay);const m=[{path:"/",name:"index",component:()=>n.e(723).then(n.bind(n,1723))}],p=new d.Ay({routes:m});var h=p,g=n(5129),v=n(3311),b=n(3445),y=(n(500),n(7600),n(8931),n(5800),n(1463),n(6638));r["default"].prototype.$echarts=y,r["default"].config.productionTip=!1,r["default"].component("icon",b.A),r["default"].use(v.Ay),r["default"].use(l()),new r["default"]({router:h,store:g.A,render:e=>e(c)}).$mount("#app")},3603:function(e,t,n){n.d(t,{WG:function(){return u},eF:function(){return s},gf:function(){return i}});var r=n(8987);const o="Admin-Token";function i(){return r.A.get(o)}function u(e){return r.A.set(o,e)}function s(){return r.A.remove(o)}},5129:function(e,t,n){var r=n(5471),o=n(5353),i=n(6718),u=n(3603);r["default"].use(o.Ay),t.A=new o.Ay.Store({state:{token:(0,u.gf)()},mutations:{SET_TOKEN:(e,t)=>{e.token=t}},actions:{Login({commit:e},t){return new Promise((n,r)=>{(0,i.iD)(t).then(()=>{(0,u.WG)(t.password),e("SET_TOKEN",t.password),n()}).catch(e=>{r(e)})})},LogOut({commit:e}){return new Promise(t=>{e("SET_TOKEN",""),(0,u.eF)(),t()})}}})},6718:function(e,t,n){n.d(t,{aZ:function(){return _},HY:function(){return g},of:function(){return N},V0:function(){return y},xr:function(){return b},Tj:function(){return O},qg:function(){return w},d_:function(){return j},Lv:function(){return S},iD:function(){return v}});var r=n(2505),o=n.n(r),i=n(1052),u=n(5129),s=n(3603),a={401:"认证失败,无法访问系统资源",403:"当前操作没有权限",404:"访问资源不存在",default:"系统未知错误,请反馈给管理员"};const c={set(e,t){sessionStorage&&null!=e&&null!=t&&sessionStorage.setItem(e,t)},get(e){return sessionStorage?null==e?null:sessionStorage.getItem(e):null},setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);return null!=t?JSON.parse(t):null},remove(e){sessionStorage.removeItem(e)}},f={set(e,t){localStorage&&null!=e&&null!=t&&localStorage.setItem(e,t)},get(e){return localStorage?null==e?null:localStorage.getItem(e):null},setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);return null!=t?JSON.parse(t):null},remove(e){localStorage.removeItem(e)}};var l={session:c,local:f};function d(){const{protocol:e,hostname:t,port:n}=window.location,r=n?`:${n}`:"";return`${e}//${t}${r}`}o().defaults.headers["Content-Type"]="application/json;charset=utf-8";const m=o().create({baseURL:d(),timeout:3e4});function p(e){let t="";for(const o of Object.keys(e)){const i=e[o];var n=encodeURIComponent(o)+"=";if(null!==i&&""!==i&&"undefined"!==typeof i)if("object"===typeof i){for(const e of Object.keys(i))if(null!==i[e]&&""!==i[e]&&"undefined"!==typeof i[e]){let n=o+"["+e+"]";var r=encodeURIComponent(n)+"=";t+=r+encodeURIComponent(i[e])+"&"}}else t+=n+encodeURIComponent(i)+"&"}return t}m.interceptors.request.use(e=>{const t=!1===(e.headers||{}).isToken,n=!1===(e.headers||{}).repeatSubmit;if((0,s.gf)()&&!t&&("get"===e.method?e.params={...e?.params||{},password:(0,s.gf)()}:e.data={...e?.data||{},password:(0,s.gf)()}),"get"===e.method&&e.params){let t=e.url+"?"+p(e.params);t=t.slice(0,-1),e.params={},e.url=t}if(!n&&("post"===e.method||"put"===e.method)){const t={url:e.url,data:"object"===typeof e.data?JSON.stringify(e.data):e.data,time:(new Date).getTime()},n=Object.keys(JSON.stringify(t)).length,r=5242880;if(n>=r)return console.warn(`[${e.url}]: 请求数据大小超出允许的5M限制无法进行防重复提交验证。`),e;const o=l.session.getJSON("sessionObj");if(void 0===o||null===o||""===o)l.session.setJSON("sessionObj",t);else{const e=o.url,n=o.data,r=o.time,i=1e3;if(n===t.data&&t.time-r<i&&e===t.url){const t="数据正在处理,请勿重复提交";return console.warn(`[${e}]: `+t),Promise.reject(new Error(t))}l.session.setJSON("sessionObj",t)}}return e},e=>{Promise.reject(e)}),m.interceptors.response.use(e=>{const t=e.status,n=e.msg||a[t]||a["default"];if("blob"===e.request.responseType||"arraybuffer"===e.request.responseType)return e.data;if(401===t)return(0,s.gf)()&&u.A.dispatch("LogOut"),Promise.reject("无效的会话,或者会话已过期,请重新登录。");if(500===t)return(0,i.Message)({message:n,type:"error"}),Promise.reject(new Error(n));if(200!==t)return i.Notification.error({title:n}),Promise.reject("error");if(1==e.data.code)return e.data.data;if(0==e.data.code)return u.A.dispatch("LogOut"),Promise.reject({errorCode:!0,msg:"登录失败,请重新登录!"});{const t=!1===(e?.config?.headers||{}).codeErrorTips;return t?Promise.reject({errorCode:!0}):(i.Notification.error({title:e.data?.msg||"服务器繁忙,请稍后再试!"}),Promise.reject("error"))}},e=>{let{message:t}=e;return"Network Error"==t?t="后端接口连接异常":t.includes("timeout")?t="系统接口请求超时":t.includes("Request failed with status code")&&(t="系统接口"+t.substr(t.length-3)+"异常"),(0,i.Message)({message:t,type:"error",duration:5e3}),Promise.reject(e)});var h=m;function g(){return h({url:"/api/wdsxh/screen_validate/header",headers:{isToken:!1},method:"get"})}function v(e){return h({url:"/api/wdsxh/screen_validate/checkPassword",headers:{isToken:!1,repeatSubmit:!1,codeErrorTips:!1},method:"get",params:e})}function b(){return h({url:"/api/wdsxh/screen/member_industry",method:"get"})}function y(){return h({url:"/api/wdsxh/screen/member_daily_visit_frequency",method:"get"})}function w(){return h({url:"/api/wdsxh/screen/member_this_month_new",method:"get"})}function O(){return h({url:"/api/wdsxh/screen/member_list",method:"get"})}function S(){return h({url:"/api/wdsxh/screen/last_month_user_data",method:"get"})}function _(){return h({url:"/api/wdsxh/screen/activity",method:"get"})}function j(){return h({url:"/api/wdsxh/screen/member_type",method:"get"})}function N(){return h({url:"/api/wdsxh/screen/member_count",method:"get"})}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,function(){n.amdO={}}(),function(){var e=[];n.O=function(t,r,o,i){if(!r){var u=1/0;for(f=0;f<e.length;f++){r=e[f][0],o=e[f][1],i=e[f][2];for(var s=!0,a=0;a<r.length;a++)(!1&i||u>=i)&&Object.keys(n.O).every(function(e){return n.O[e](r[a])})?r.splice(a--,1):(s=!1,i<u&&(u=i));if(s){e.splice(f--,1);var c=o();void 0!==c&&(t=c)}}return t}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,r){return n.f[r](e,t),t},[]))}}(),function(){n.u=function(e){return"static/js/"+e+".704597d0.js"}}(),function(){n.miniCssF=function(e){return"static/css/"+e+".5e8d8a4c.css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="sxh-big-screen:";n.l=function(r,o,i,u){if(e[r])e[r].push(o);else{var s,a;if(void 0!==i)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var l=c[f];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==t+i){s=l;break}}s||(a=!0,s=document.createElement("script"),s.charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[o];var d=function(t,n){s.onerror=s.onload=null,clearTimeout(m);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(function(e){return e(n)}),t)return t(n)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),a&&document.head.appendChild(s)}}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){n.p=""}(),function(){if("undefined"!==typeof document){var e=function(e,t,r,o,i){var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",n.nc&&(u.nonce=n.nc);var s=function(n){if(u.onerror=u.onload=null,"load"===n.type)o();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,a=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");a.name="ChunkLoadError",a.code="CSS_CHUNK_LOAD_FAILED",a.type=r,a.request=s,u.parentNode&&u.parentNode.removeChild(u),i(a)}};return u.onerror=u.onload=s,u.href=t,r?r.parentNode.insertBefore(u,r.nextSibling):document.head.appendChild(u),u},t=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=n[r],i=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(i===e||i===t))return o}var u=document.getElementsByTagName("style");for(r=0;r<u.length;r++){o=u[r],i=o.getAttribute("data-href");if(i===e||i===t)return o}},r=function(r){return new Promise(function(o,i){var u=n.miniCssF(r),s=n.p+u;if(t(u,s))return o();e(r,s,null,o,i)})},o={524:0};n.f.miniCss=function(e,t){var n={723:1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=r(e).then(function(){o[e]=0},function(t){throw delete o[e],t}))}}}(),function(){var e={524:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise(function(n,r){o=e[t]=[n,r]});r.push(o[2]=i);var u=n.p+n.u(t),s=new Error,a=function(r){if(n.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+u+")",s.name="ChunkLoadError",s.type=i,s.request=u,o[1](s)}};n.l(u,a,"chunk-"+t,t)}},n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,u=r[0],s=r[1],a=r[2],c=0;if(u.some(function(t){return 0!==e[t]})){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(a)var f=a(n)}for(t&&t(r);c<u.length;c++)i=u[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(f)},r=self["webpackChunksxh_big_screen"]=self["webpackChunksxh_big_screen"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var r=n.O(void 0,[504],function(){return n(2514)});r=n.O(r)})();
//# sourceMappingURL=app.b9bbb2a4.js.map