nantai-erp-admin/dist/js/chunk-76b5.2e9fe8d1.js
2024-09-23 10:51:42 +08:00

1 line
11 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-76b5"],{"14Xm":function(t,e,r){t.exports=r("u938")},D3Ub:function(t,e,r){"use strict";e.__esModule=!0;var o=function(t){return t&&t.__esModule?t:{default:t}}(r("4d7F"));e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,r){return function n(i,s){try{var a=e[i](s),u=a.value}catch(t){return void r(t)}if(!a.done)return o.default.resolve(u).then(function(t){n("next",t)},function(t){n("throw",t)});t(u)}("next")})}}},jLG9:function(t,e,r){"use strict";r.r(e);var o=r("14Xm"),n=r.n(o),i=r("D3Ub"),s=r.n(i),a=r("X4fA"),u={};Object(a.a)()&&(u=JSON.parse(Object(a.a)())||{});var c={mounted:function(){var t=this;return s()(n.a.mark(function e(){var r;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.a)()){e.next=3;break}return t.$router.push({path:"/login"}),e.abrupt("return");case 3:r=t.$loading({lock:!0,text:"初始化中",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),u.final_admin?(r.close(),t.$router.replace({path:"/index"})):u.super_admin?(t.$router.options.routes[4].meta.show="no",t.$router.options.routes[5].meta.show="no",t.$router.options.routes[6].meta.show="no",t.$router.options.routes[7].meta.show="no",t.$router.options.routes[9].children[1].meta.show="no",t.$router.replace({path:"/operManagement/operManagement"}),r.close()):u.enterprise_admin?(t.$router.options.routes[8].meta.show="no",t.$router.options.routes[9].children[0].meta.show="no",t.$router.options.routes[9].children[2].meta.show="no",r.close(),t.$router.replace({path:"/index"})):(t.getPermList(),r.close(),t.$router.replace({path:"/index"}));case 5:case"end":return e.stop()}},e,t)}))()},methods:{getPermList:function(){for(var t=this,e=0;e<7;e++)this.$router.options.routes[5].children[e].meta.show="no",this.$router.options.routes[7].children[2].children[e].meta.show="no";for(var r=0;r<2;r++);for(var o=0;o<5;o++)this.$router.options.routes[7].children[1].children[o].meta.show="no";for(var n=0;n<3;n++)this.$router.options.routes[6].children[n].meta.show="no",this.$router.options.routes[9].children[n].meta.show="no",this.$router.options.routes[7].children[n].meta.show="no",this.$router.options.routes[7].children[0].children[n].meta.show="no";this.$router.options.routes[4].meta.show="yes",this.$router.options.routes[5].meta.show="no",this.$router.options.routes[6].meta.show="no",this.$router.options.routes[7].meta.show="no",this.$router.options.routes[8].meta.show="no",this.$router.options.routes[9].meta.show="no";var i=["","","","","","A","B","C","","D"];u.perm_list.map(function(e,r){var o=e.substring(0,1),n=e.substring(1);i.map(function(r,i){o==r&&(t.$router.options.routes[i].meta.show="yes",5==i?n<3?t.$router.options.routes[i].children[n-1].meta.show="yes":7==n?t.$router.options.routes[i].children[3].meta.show="yes":t.$router.options.routes[i].children[n].meta.show="yes":7==i?n<3?(t.$router.options.routes[i].children[0].children[n-1].meta.show="yes",t.$router.options.routes[7].children[0].meta.show="yes"):n<7?("C3"==e&&(t.$router.options.routes[i].children[1].children[3].meta.show="yes"),"C4"==e&&(t.$router.options.routes[i].children[1].children[0].meta.show="yes"),"C5"==e&&(t.$router.options.routes[i].children[1].children[1].meta.show="yes"),"C6"==e&&(t.$router.options.routes[i].children[1].children[4].meta.show="yes"),t.$router.options.routes[7].children[1].meta.show="yes"):13==n?(t.$router.options.routes[7].children[0].meta.show="yes",t.$router.options.routes[i].children[0].children[2].meta.show="yes"):14==n?(t.$router.options.routes[6].meta.show="yes",t.$router.options.routes[6].children[2].meta.show="yes"):15==n?(t.$router.options.routes[7].children[1].meta.show="yes",t.$router.options.routes[i].children[1].children[2].meta.show="yes"):("C7"==e&&(t.$router.options.routes[i].children[2].children[4].meta.show="yes"),"C8"==e&&(t.$router.options.routes[i].children[2].children[0].meta.show="yes"),"C9"==e&&(t.$router.options.routes[i].children[2].children[1].meta.show="yes"),"C10"==e&&(t.$router.options.routes[i].children[2].children[2].meta.show="yes"),"C11"==e&&(t.$router.options.routes[i].children[2].children[3].meta.show="yes"),"C12"==e&&(t.$router.options.routes[i].children[2].children[5].meta.show="yes"),t.$router.options.routes[7].children[2].meta.show="yes"):9==i?t.$router.options.routes[i].children[n].meta.show="no":t.$router.options.routes[i].children[n-1].meta.show="yes")})})}}},h=r("KHd+"),l=Object(h.a)(c,function(){var t=this.$createElement;return(this._self._c||t)("div")},[],!1,null,null,null);l.options.__file="init.vue";e.default=l.exports},ls82:function(t,e){!function(e){"use strict";var r,o=Object.prototype,n=o.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",c="object"==typeof t,h=e.regeneratorRuntime;if(h)c&&(t.exports=h);else{(h=e.regeneratorRuntime=c?t.exports:{}).wrap=$;var l="suspendedStart",p="suspendedYield",f="executing",d="completed",m={},y={};y[s]=function(){return this};var w=Object.getPrototypeOf,v=w&&w(w(P([])));v&&v!==o&&n.call(v,s)&&(y=v);var g=_.prototype=b.prototype=Object.create(y);L.prototype=g.constructor=_,_.constructor=L,_[u]=L.displayName="GeneratorFunction",h.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===L||"GeneratorFunction"===(e.displayName||e.name))},h.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(g),t},h.awrap=function(t){return{__await:t}},E(O.prototype),O.prototype[a]=function(){return this},h.AsyncIterator=O,h.async=function(t,e,r,o){var n=new O($(t,e,r,o));return h.isGeneratorFunction(e)?n:n.next().then(function(t){return t.done?t.value:n.next()})},E(g),g[u]="Generator",g[s]=function(){return this},g.toString=function(){return"[object Generator]"},h.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var o=e.pop();if(o in t)return r.value=o,r.done=!1,r}return r.done=!0,r}},h.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(o,n){return a.type="throw",a.arg=t,e.next=o,n&&(e.method="next",e.arg=r),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var u=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(u&&c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;C(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,o){return this.delegate={iterator:P(t),resultName:e,nextLoc:o},"next"===this.method&&(this.arg=r),m}}}function $(t,e,r,o){var n=e&&e.prototype instanceof b?e:b,i=Object.create(n.prototype),s=new N(o||[]);return i._invoke=function(t,e,r){var o=l;return function(n,i){if(o===f)throw new Error("Generator is already running");if(o===d){if("throw"===n)throw i;return G()}for(r.method=n,r.arg=i;;){var s=r.delegate;if(s){var a=j(s,r);if(a){if(a===m)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===l)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var u=x(t,e,r);if("normal"===u.type){if(o=r.done?d:p,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=d,r.method="throw",r.arg=u.arg)}}}(t,r,s),i}function x(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function b(){}function L(){}function _(){}function E(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function O(t){var e;this._invoke=function(r,o){function i(){return new Promise(function(e,i){!function e(r,o,i,s){var a=x(t[r],t,o);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,i,s)},function(t){e("throw",t,i,s)}):Promise.resolve(c).then(function(t){u.value=t,i(u)},s)}s(a.arg)}(r,o,e,i)})}return e=e?e.then(i,i):i()}}function j(t,e){var o=t.iterator[e.method];if(o===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,j(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var n=x(o,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,m;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}return{next:G}}function G(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},u938:function(t,e,r){var o=function(){return this}()||Function("return this")(),n=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,i=n&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,t.exports=r("ls82"),n)o.regeneratorRuntime=i;else try{delete o.regeneratorRuntime}catch(t){o.regeneratorRuntime=void 0}}}]);