app.30ec42fb.js 9.4 KB

1
  1. (function(e){function t(t){for(var a,c,u=t[0],i=t[1],d=t[2],l=0,h=[];l<u.length;l++)c=u[l],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&h.push(o[c][0]),o[c]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);s&&s(t);while(h.length)h.shift()();return r.push.apply(r,d||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,c=1;c<n.length;c++){var u=n[c];0!==o[u]&&(a=!1)}a&&(r.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},c={app:0},o={app:0},r=[];function u(e){return i.p+"static/js/"+({}[e]||e)+"."+{"chunk-03f11e0c":"14245d23","chunk-05cd0a2c":"6f3a29f3","chunk-26d01dfa":"0e1ce1f5","chunk-2a30b7a1":"738889e3","chunk-2d21022e":"6ceaa6de","chunk-2f323a42":"2e04f312","chunk-3b2bb27f":"98d61203","chunk-430782b8":"933eda2d","chunk-50d16776":"471d9ffb","chunk-59d32064":"01c80e5b","chunk-698e9c2a":"52606d97","chunk-6af21413":"7f8e5a11","chunk-6e4aceda":"52d636cb","chunk-75d70626":"f21b3c66","chunk-7e9e957b":"5779aaa9"}[e]+".js"}function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-03f11e0c":1,"chunk-05cd0a2c":1,"chunk-26d01dfa":1,"chunk-2a30b7a1":1,"chunk-2f323a42":1,"chunk-3b2bb27f":1,"chunk-430782b8":1,"chunk-50d16776":1,"chunk-59d32064":1,"chunk-698e9c2a":1,"chunk-6af21413":1,"chunk-6e4aceda":1,"chunk-75d70626":1,"chunk-7e9e957b":1};c[e]?t.push(c[e]):0!==c[e]&&n[e]&&t.push(c[e]=new Promise((function(t,n){for(var a="static/css/"+({}[e]||e)+"."+{"chunk-03f11e0c":"f3b87d2c","chunk-05cd0a2c":"cfa128bf","chunk-26d01dfa":"9738d400","chunk-2a30b7a1":"9d525d58","chunk-2d21022e":"31d6cfe0","chunk-2f323a42":"6a245573","chunk-3b2bb27f":"8890c993","chunk-430782b8":"9dc125cf","chunk-50d16776":"27071a14","chunk-59d32064":"d6fa6cf3","chunk-698e9c2a":"6400458c","chunk-6af21413":"b25b4a01","chunk-6e4aceda":"ae4b4cf0","chunk-75d70626":"fd68e53a","chunk-7e9e957b":"ef8a19f1"}[e]+".css",o=i.p+a,r=document.getElementsByTagName("link"),u=0;u<r.length;u++){var d=r[u],l=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(l===a||l===o))return t()}var h=document.getElementsByTagName("style");for(u=0;u<h.length;u++){d=h[u],l=d.getAttribute("data-href");if(l===a||l===o)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var a=t&&t.target&&t.target.src||o,r=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=a,delete c[e],s.parentNode.removeChild(s),n(r)},s.href=o;var f=document.getElementsByTagName("head")[0];f.appendChild(s)})).then((function(){c[e]=0})));var a=o[e];if(0!==a)if(a)t.push(a[2]);else{var r=new Promise((function(t,n){a=o[e]=[t,n]}));t.push(a[2]=r);var d,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=u(e);var h=new Error;d=function(t){l.onerror=l.onload=null,clearTimeout(s);var n=o[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;h.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",h.name="ChunkLoadError",h.type=a,h.request=c,n[1](h)}o[e]=void 0}};var s=setTimeout((function(){d({type:"timeout",target:l})}),12e4);l.onerror=l.onload=d,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],l=d.push.bind(d);d.push=t,d=d.slice();for(var h=0;h<d.length;h++)t(d[h]);var s=l;r.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"03c6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{attrs:{id:"app"}},[t("router-view",{staticClass:"content"})],1)},c=[]},"23be":function(e,t,n){"use strict";var a=n("4f35"),c=n.n(a);t["default"]=c.a},"3dfd":function(e,t,n){"use strict";var a=n("03c6"),c=n("23be"),o=(n("7634"),n("2877")),r=Object(o["a"])(c["default"],a["a"],a["b"],!1,null,null,null);t["default"]=r.exports},4459:function(e,t,n){},"4f35":function(e,t){function n(){var e=0;return document.documentElement&&document.documentElement.scrollTop?e=document.documentElement.scrollTop:document.body&&(e=document.body.scrollTop),e}var a=n()||0;document.body.addEventListener("focusin",()=>{}),document.body.addEventListener("focusout",()=>{var e=window.navigator.userAgent;(e.indexOf("iPhone")>0||e.indexOf("iPad")>0)&&(document.body.scrollTop=a,document.documentElement.scrollTop=a)})},"56d7":function(e,t,n){"use strict";n.r(t);var a=n("2b0e"),c=n("3dfd"),o=n("8c4f");const r=[{path:"/cms/refresh",name:"refresh",meta:{index:3},component:e=>n.e("chunk-2d21022e").then(function(){var t=[n("b736")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/home",name:"Home",meta:{index:3},component:e=>n.e("chunk-7e9e957b").then(function(){var t=[n("40cf")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/work",name:"work",meta:{index:3},component:e=>n.e("chunk-03f11e0c").then(function(){var t=[n("5bf1")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/mine",name:"Mine",meta:{index:3},component:e=>n.e("chunk-3b2bb27f").then(function(){var t=[n("109a")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/finish",name:"finish",meta:{index:3},component:e=>n.e("chunk-698e9c2a").then(function(){var t=[n("0d9e")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/finish/detail",name:"finishDetail",meta:{index:3},component:e=>n.e("chunk-26d01dfa").then(function(){var t=[n("7c15")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/finish/detailed",name:"finishDetailed",meta:{index:3},component:e=>n.e("chunk-75d70626").then(function(){var t=[n("3e1e")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/Package/detail",name:"PackageDetail",meta:{index:3},component:e=>n.e("chunk-2f323a42").then(function(){var t=[n("4331")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/Package/detailed",name:"PackageDetailed",meta:{index:3},component:e=>n.e("chunk-05cd0a2c").then(function(){var t=[n("a42d")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/dispatch/detail",name:"dispatchDetail",meta:{index:3},component:e=>n.e("chunk-6af21413").then(function(){var t=[n("6a30")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/dispatch/detailed",name:"dispatchDetailed",meta:{index:3},component:e=>n.e("chunk-59d32064").then(function(){var t=[n("b3a6")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/ceshi",name:"ceshi",meta:{index:3},component:e=>n.e("chunk-6e4aceda").then(function(){var t=[n("e5c7")];e.apply(null,t)}.bind(this)).catch(n.oe)}];var u=r;const i=o["a"].prototype.push;o["a"].prototype.push=function(e){return i.call(this,e).catch(e=>e)},a["default"].use(o["a"]);const d=[{path:"/",name:"Login",meta:{index:1,title:"九方软件"},component:e=>n.e("chunk-430782b8").then(function(){var t=[n("a55b")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/print",name:"print",component:e=>n.e("chunk-2a30b7a1").then(function(){var t=[n("d027")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms",name:"Cms",meta:{index:2},component:e=>n.e("chunk-50d16776").then(function(){var t=[n("ea84")];e.apply(null,t)}.bind(this)).catch(n.oe),children:u}],l=new o["a"]({routes:d,mode:"hash",linkActiveClass:"active"});l.beforeEach((e,t,n)=>{if("/"===e.path)n();else{const t=localStorage.getItem("token");t||"/cms/print"===e.path?n():n("/")}n()});var h=l,s=n("2f62");a["default"].use(s["a"]);var f=new s["a"].Store({state:{},mutations:{},actions:{},modules:{}}),p=n("cee4");let m={};const b=p["a"].create(m);m={timeout:0,withCredentials:!0},b.interceptors.request.use((function(e){const t=localStorage.getItem("token"),n=JSON.parse(localStorage.getItem("site")),a="http://fyy_api.qingyaokeji.com";return e.url=a+e.url,"http://121.36.142.167:7774/jbl/api/mes/login"===e.data.url||"http://121.36.142.167:7774/jbl/api/site/all/ignore-action?_allow_anonymous=true"===e.data.url?e.data.header=["Content-Type:application/json"]:e.data.header=["Authorization:Bearer "+t,"Content-Type:application/json","Site:"+n.site],e}),(function(e){return Promise.reject(e)})),b.interceptors.response.use(e=>200===e.status?200===e.data.code?e.data:401===e.data.code?(localStorage.removeItem("mobile_token"),location.reload()):(a["default"].prototype.$Message.error(e.data.msg||"未知错误"),e.data||e):a["default"].prototype.$Message.error("请求超时"),e=>(a["default"].prototype.$Notice.error({title:"请求失败",desc:e}),e));var k=b,v=n("5f5b"),y=n("b1e0"),g=n("f825"),x=n.n(g),w=(n("f8ce"),n("f9e3"),n("2dd8"),n("bb6f")),j=n.n(w);a["default"].use(x.a),a["default"].use(j.a),a["default"].use(v["a"]),a["default"].use(y["a"]),a["default"].config.productionTip=!1,a["default"].prototype.axios=k,new a["default"]({router:h,store:f,render:e=>e(c["default"])}).$mount("#app")},7634:function(e,t,n){"use strict";n("4459")}});