2 lines
2.1 KiB
JavaScript
2 lines
2.1 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1933435a"],{"37f9":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-wrapper"},[t.visible?a("div",{staticClass:"app-header"},[t._m(0)]):t._e(),a("div",{attrs:{id:"large"}},[a("div",{staticClass:"index-title"}),a("div",{staticClass:"index-tab"},t._l(t.tabList,(function(e){return a("div",{key:e.tab,staticClass:"item"},[a("div",{class:"tab "+e.tab,on:{click:function(a){return t.goLink(e.path)}}}),a("div",{staticClass:"name"},[t._v(t._s(e.label))])])})),0)])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"header-logo"},[a("div",{staticClass:"name"})])}],n=a("2909"),c=a("5530"),l=(a("d3b7"),a("159b"),a("99af"),a("df7c")),o=a.n(l),r=a("2f62"),d={name:"Index",components:{},computed:Object(c["a"])({},Object(r["b"])(["permission_routes"])),data:function(){return{visible:!0,date:"",tabList:[{label:"智慧配电",tab:"electirc",name:"electircIndex"},{label:"设备监控",tab:"device",name:"electircIndex"},{label:"能耗管理",tab:"energy",name:"electircIndex"},{label:"智慧运维",tab:"oa",name:"electircIndex"}],tabLists:["智慧配电","设备监控","能耗管理","智慧运维"]}},mounted:function(){var t=this;console.log(this.permission_routes),this.permission_routes.forEach((function(e){var a=t.tabLists.indexOf(e.meta&&e.meta.title);a>-1&&(console.log(t.getRoutes(e)),t.tabList[a].path=o.a.resolve.apply(o.a,Object(n["a"])(t.getRoutes(e))))})),console.log(this.tabList)},methods:{goLink:function(t){this.$router.push(t)},getRoutes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.children&&t.children.length>0){e.push(t.path),console.log(t.children,t,e);var a=this.getRoutes(t.children[0],e);return a}return[].concat(Object(n["a"])(e),[t.path])}}},u=d,b=(a("5974"),a("2877")),h=Object(b["a"])(u,i,s,!1,null,"26a5a424",null);e["default"]=h.exports},5974:function(t,e,a){"use strict";a("abcd")},abcd:function(t,e,a){}}]);
|
||
|
//# sourceMappingURL=chunk-1933435a.ce1bfb40.js.map
|