app.23c8c656130f25c7c865.9925.js 9.7 KB

1
  1. (function(e){function n(n){for(var r,c,i=n[0],u=n[1],d=n[2],s=0,f=[];s<i.length;s++)c=i[s],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&f.push(o[c][0]),o[c]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);l&&l(n);while(f.length)f.shift()();return a.push.apply(a,d||[]),t()}function t(){for(var e,n=0;n<a.length;n++){for(var t=a[n],r=!0,c=1;c<t.length;c++){var i=t[c];0!==o[i]&&(r=!1)}r&&(a.splice(n--,1),e=u(u.s=t[0]))}return e}var r={},c={app:0},o={app:0},a=[];function i(e){return u.p+""+({}[e]||e)+".23c8c656130f25c7c865.9925.js"}function u(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var n=[],t={"chunk-0f727d7c":1,"chunk-0a9d7da4":1,"chunk-603e5f21":1,"chunk-6dbbeaca":1,"chunk-78161c90":1,"chunk-08c33fb4":1,"chunk-1820566a":1,"chunk-1d8debd0":1,"chunk-1f3a5ed0":1,"chunk-6755b311":1,"chunk-69ce9d3e":1,"chunk-458b5808":1,"chunk-b34de394":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise((function(n,t){for(var r="css/"+({}[e]||e)+"."+{"chunk-0f727d7c":"5f7a9eb9","chunk-39329a8e":"31d6cfe0","chunk-0a9d7da4":"81b2331e","chunk-603e5f21":"7cea6777","chunk-6dbbeaca":"7bdafe0c","chunk-78161c90":"a46f4ac0","chunk-798b259d":"31d6cfe0","chunk-08c33fb4":"e2a3e17a","chunk-1820566a":"451fc252","chunk-1d8debd0":"ba05c9d3","chunk-1f3a5ed0":"c5d72caf","chunk-6755b311":"b55119ac","chunk-69ce9d3e":"5e70adca","chunk-458b5808":"2dd761e6","chunk-b34de394":"0bb6ea69"}[e]+".css",o=u.p+r,a=document.getElementsByTagName("link"),i=0;i<a.length;i++){var d=a[i],s=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(s===r||s===o))return n()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){d=f[i],s=d.getAttribute("data-href");if(s===r||s===o)return n()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=n,l.onerror=function(n){var r=n&&n.target&&n.target.src||o,a=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=r,delete c[e],l.parentNode.removeChild(l),t(a)},l.href=o;var h=document.getElementsByTagName("head")[0];h.appendChild(l)})).then((function(){c[e]=0})));var r=o[e];if(0!==r)if(r)n.push(r[2]);else{var a=new Promise((function(n,t){r=o[e]=[n,t]}));n.push(r[2]=a);var d,s=document.createElement("script");s.charset="utf-8",s.timeout=120,u.nc&&s.setAttribute("nonce",u.nc),s.src=i(e);var f=new Error;d=function(n){s.onerror=s.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src;f.message="Loading chunk "+e+" failed.\n("+r+": "+c+")",f.name="ChunkLoadError",f.type=r,f.request=c,t[1](f)}o[e]=void 0}};var l=setTimeout((function(){d({type:"timeout",target:s})}),12e4);s.onerror=s.onload=d,document.head.appendChild(s)}return Promise.all(n)},u.m=e,u.c=r,u.d=function(e,n,t){u.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,n){if(1&n&&(e=u(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)u.d(t,r,function(n){return e[n]}.bind(null,r));return t},u.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(n,"a",n),n},u.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},u.p="/screen/",u.oe=function(e){throw console.error(e),e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],s=d.push.bind(d);d.push=n,d=d.slice();for(var f=0;f<d.length;f++)n(d[f]);var l=s;a.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"34c4":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);var r={};t.r(r),t.d(r,"toFixed",(function(){return T})),t.d(r,"numberFormat",(function(){return N})),t.d(r,"moneyFormat",(function(){return C}));t("456d"),t("ac6a"),t("cadf"),t("551c"),t("f751"),t("097d");var c=t("2b0e"),o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},a=[],i=(t("9ee0"),t("2877")),u={},d=Object(i["a"])(u,o,a,!1,null,"5b7d73da",null),s=d.exports,f=(t("8e6e"),t("bd86")),l=(t("6762"),t("2fdb"),t("96cf"),t("3b8d")),h=t("75fc"),p=t("8c4f"),b=t("caee"),m=t("853a"),v=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"main"},[t("router-view")],1)},k=[],g={},x=Object(i["a"])(g,v,k,!1,null,null,null),O=x.exports,y=function(e){return new Promise((function(n,t){var r=e.map((function(e){return{path:"/".concat(e.path),component:O,meta:{title:e.meta.title,icon:e.meta.icon},children:e.children&&e.children.map((function(n){return{path:n.path,component:Object(m["a"])("".concat(e.path,"/").concat(n.path)),meta:{title:n.meta.title,icon:n.meta.icon}}}))}}));n(r)}))},w=t("2f62"),S={namespaced:!0,state:{isCollapse:!1,permisList:JSON.parse(window.sessionStorage.getItem("PERMIS_LIST"))||[]},mutations:{SET_IS_COLLAPSE:function(e,n){e.isCollapse=n},SET_PERMIS_LIST:function(e,n){e.permisList=n}},actions:{handleIsCollapse:function(e,n){var t=e.commit;t("SET_IS_COLLAPSE",n)},handlePermisList:function(e){var n=e.commit,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.map((function(e){return{path:"".concat(e.path),meta:{title:e.meta.title,icon:e.meta.icon},children:e.children&&e.children.map((function(e){return{path:e.path,meta:{title:e.meta.title,icon:e.meta.icon}}}))}}));window.sessionStorage.setItem("PERMIS_LIST",JSON.stringify(r)),n("SET_PERMIS_LIST",r)},handleClearPermisStorage:function(){window.sessionStorage.removeItem("PERMIS_LIST")}}};c["default"].use(w["a"]);var j=new w["a"].Store({modules:{menu:S}});function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(t,!0).forEach((function(n){Object(f["a"])(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}c["default"].use(p["a"]);var _=new p["a"]({base:"/screen/",routes:Object(h["a"])(b["a"])}),I=!1;_.beforeEach(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(n,t,r){var c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(c=j.state.menu.permisList,sessionStorage.getItem("token")||["/login","/no-login"].includes(n.path)){e.next=4;break}return r("/no-login"),e.abrupt("return");case 4:if(-1===b["a"].map((function(e){return e.path})).indexOf(n.path)){e.next=8;break}r(),e.next=19;break;case 8:if(!c.length){e.next=18;break}if(I){e.next=15;break}return I=!0,e.next=13,y(c).then((function(e){_.addRoutes(e),r(E({},n,{replace:!0}))}));case 13:e.next=16;break;case 15:r();case 16:e.next=19;break;case 18:r();case 19:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}());var L=_;t("3cc5"),t("db4d"),t("a481"),t("c5f6");function T(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return isNaN(Number(e))?e:Number(e).toFixed(n)}function N(e){return isNaN(Number(e))?e:String(e).replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g,"$&,")}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return null===e||void 0===e?"":N(T(e))}var M=t("5c96"),A=t.n(M);t("0fae"),t("34c4");c["default"].use(A.a),Object.keys(r).forEach((function(e){c["default"].filter(e,r[e])})),c["default"].config.productionTip=!1,new c["default"]({router:L,store:j,render:function(e){return e(s)}}).$mount("#app")},"853a":function(e,n,t){"use strict";n["a"]=function(e){return function(){return t("9014")("./"+e+"/index.vue")}}},9014:function(e,n,t){var r={"./index/components/communication/index.vue":["81e8","chunk-798b259d","chunk-39329a8e","chunk-6755b311"],"./index/components/entrance-guard/index.vue":["9b9c","chunk-798b259d","chunk-1820566a"],"./index/components/income/index.vue":["7375","chunk-798b259d","chunk-39329a8e","chunk-1d8debd0"],"./index/components/paid-in/index.vue":["5408","chunk-798b259d","chunk-39329a8e","chunk-1f3a5ed0"],"./index/components/parking/index.vue":["20f4","chunk-798b259d","chunk-458b5808"],"./index/components/record/index.vue":["6b75","chunk-603e5f21"],"./index/components/repair/index.vue":["4d54","chunk-39329a8e","chunk-0a9d7da4"],"./index/components/statistical/index.vue":["0b58","chunk-798b259d","chunk-08c33fb4"],"./index/components/title/index.vue":["fd7d","chunk-0f727d7c"],"./index/index.vue":["37f9","chunk-798b259d","chunk-39329a8e","chunk-6755b311","chunk-69ce9d3e"],"./login/index.vue":["9ed6","chunk-b34de394"],"./no-login/index.vue":["efb6","chunk-6dbbeaca"],"./not-found/index.vue":["9dcb","chunk-78161c90"]};function c(e){if(!t.o(r,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[e],c=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(c)}))}c.keys=function(){return Object.keys(r)},c.id="9014",e.exports=c},"9b66":function(e,n,t){},"9ee0":function(e,n,t){"use strict";var r=t("9b66"),c=t.n(r);c.a},caee:function(e,n,t){"use strict";var r=t("853a");n["a"]=[{path:"",redirect:"login"},{path:"/",redirect:"login"},{path:"/index",component:Object(r["a"])("index"),meta:{title:"首页",hideInMenu:!1,icon:""}},{path:"/login",component:Object(r["a"])("login"),meta:{title:"登录",hideInMenu:!1,icon:""}},{path:"/no-login",component:Object(r["a"])("no-login"),meta:{title:"没有登录权限",hideInMenu:!1,icon:""}},{path:"*",component:Object(r["a"])("not-found")}]}});