chunk-7c422bfb.eb92f435.js 5.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c422bfb"],{"1b44":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"scope-slider"},[n("div",{staticClass:"logo"},[n("a",{attrs:{href:"https://cool-admin.com/"}},[e.menuCollapse?n("icon-svg",{staticClass:"z",attrs:{name:"logo"}}):n("icon-svg",{staticClass:"lr",attrs:{name:"logo-lr"}})],1)]),e.userInfo&&!e.menuCollapse?n("div",{staticClass:"user"},[n("img",{staticClass:"avatar",attrs:{src:e._f("default_avatar")(e.userInfo.headImg),alt:""}}),n("div",{staticClass:"det"},[n("p",{staticClass:"name"},[e._v(e._s(e.userInfo.name))]),n("p",{staticClass:"post"},[e._v("部门:"+e._s(e.userInfo.departmentName||"无"))])])]):e._e(),e.visible?n("div",{staticClass:"menu"},[n("deep-menu")],1):e._e()])},i=[],s=(n("3546"),n("0e8d"),n("fdc1"),n("ea51"),n("4303"),n("a94a"),n("639b"),n("4f5b"),n("b287"),n("9d37")),o=n("5880"),r=n("b27f");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(s["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={data:function(){return{visible:!0}},computed:u({},Object(o["mapGetters"])(["menuList","menuCollapse","userInfo"])),watch:{menuList:function(){var e=this;this.visible=!1,Object(r["setTimeout"])((function(){e.visible=!0}),0)}},components:{DeepMenu:{computed:u({},Object(o["mapGetters"])(["menuList","menuCollapse"])),methods:{toView:function(e){e!=this.$route.path&&this.$router.push(e)}},render:function(){var e=arguments[0],t=function t(n){return n.map((function(n){var a=null;return a=0==n.type?e("el-submenu",{attrs:{index:String(n.id)},key:n.id},[e("template",{slot:"title"},[e("icon-svg",{attrs:{name:n.icon}}),e("span",{slot:"title"},[n.name])]),t(n.children)]):e("el-menu-item",{attrs:{index:n.path},key:n.path},[e("icon-svg",{attrs:{name:n.icon}}),e("span",{slot:"title"},[n.name])]),a}))},n=t(this.menuList);return e("el-menu",{attrs:{"default-active":this.$route.path,"collapse-transition":!1,collapse:this.menuCollapse},on:{select:this.toView}},[n])}}},methods:u({},Object(o["mapMutations"])(["COLLAPSE_MENU"]))},f=l,m=(n("da12"),n("6427"),n("5511")),d=Object(m["a"])(f,a,i,!1,null,"5c84af09",null);t["default"]=d.exports},6427:function(e,t,n){"use strict";var a=n("9ba1"),i=n.n(a);i.a},"9a41":function(e,t,n){},"9ba1":function(e,t,n){},b27f:function(e,t,n){(function(e){var a="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,i=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(i.call(setTimeout,a,arguments),clearTimeout)},t.setInterval=function(){return new s(i.call(setInterval,a,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(a,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("de8a"),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("d1c9"))},da12:function(e,t,n){"use strict";var a=n("9a41"),i=n.n(a);i.a},de8a:function(e,t,n){(function(e,t){(function(e,n){"use strict";if(!e.setImmediate){var a,i=1,s={},o=!1,r=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?d():p()?v():e.MessageChannel?h():r&&"onreadystatechange"in r.createElement("script")?b():g(),c.setImmediate=u,c.clearImmediate=l}function u(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return s[i]=o,a(i),i++}function l(e){delete s[e]}function f(e){var t=e.callback,a=e.args;switch(a.length){case 0:t();break;case 1:t(a[0]);break;case 2:t(a[0],a[1]);break;case 3:t(a[0],a[1],a[2]);break;default:t.apply(n,a);break}}function m(e){if(o)setTimeout(m,0,e);else{var t=s[e];if(t){o=!0;try{f(t)}finally{l(e),o=!1}}}}function d(){a=function(e){t.nextTick((function(){m(e)}))}}function p(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}function v(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"===typeof n.data&&0===n.data.indexOf(t)&&m(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),a=function(n){e.postMessage(t+n,"*")}}function h(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;m(t)},a=function(t){e.port2.postMessage(t)}}function b(){var e=r.documentElement;a=function(t){var n=r.createElement("script");n.onreadystatechange=function(){m(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}function g(){a=function(e){setTimeout(m,0,e)}}})("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(this,n("d1c9"),n("eef6"))}}]);