nantai-erp-admin/dist/js/chunk-76b5.2e9fe8d1.js

1 line
11 KiB
JavaScript
Raw Normal View History

2024-09-23 10:51:42 +08:00
(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].child