"use strict";(self["webpackChunkfibocom"]=self["webpackChunkfibocom"]||[]).push([[7987],{67987:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[n("el-card",{staticClass:"box-card"},[n("el-tabs",{staticClass:"tabs",on:{"tab-click":e.handleClick},model:{value:e.netActiveName,callback:function(t){e.netActiveName=t},expression:"netActiveName"}},[e._l(e.netWorkMenu,(function(t){return[t.show?[n("el-tab-pane",{key:t.index,attrs:{label:e.$t(t.title),name:t.index}},[t.children?[n("el-tabs",{staticClass:"sub-tabs",on:{"tab-click":e.secondClick},model:{value:e.netSubActiveName,callback:function(t){e.netSubActiveName=t},expression:"netSubActiveName"}},[e._l(t.children,(function(t){return[t.show?[n("el-tab-pane",{key:t.index,attrs:{label:e.$t(t.title),name:t.index}})]:e._e()]}))],2)]:e._e()],2)]:e._e()]}))],2)],1)],1),n("div",[n("router-view")],1)])},s=[],a=(n(82772),n(5212),n(41539),n(68309),n(89554),n(54747),n(73051));const o={data:function(){return{netActiveName:"",netSubActiveName:""}},created:function(){this.$store.dispatch("GetDeviceInfo"),this.netWorkMenu=a.M7||[];var e="";if(e=""===this.$store.state.DeviceName?sessionStorage.getItem("DeviceName"):this.$store.state.DeviceName,e){var t="FG131",n=-1!==e.indexOf(t);this.netWorkMenu[1].show=!n}this.netActiveName=sessionStorage.getItem("netActiveName"),this.netSubActiveName=sessionStorage.getItem("netSubActiveName"),this.netActiveName||this.netSubActiveName||this.getTabPosition()},beforeDestroy:function(){sessionStorage.removeItem("netActiveName"),sessionStorage.removeItem("netSubActiveName")},methods:{getTabPosition:function(){var e=this;this.netWorkMenu.some((function(t){if(1==t.show)return e.netActiveName=t.index,e.$router.push(t.index),t.children&&t.children.some((function(t){if(1==t.show)return e.netSubActiveName=t.index,e.$router.push(t.index),!0})),!0}))},handleClick:function(e){var t=this;this.$router.push(e.name),sessionStorage.setItem("netActiveName",e.name),this.netWorkMenu.forEach((function(e){e.index==t.netActiveName&&e.children.some((function(e){if(1==e.show)return t.netSubActiveName=e.index,t.$router.push(e.index),!0}))}))},secondClick:function(e){this.$router.push(e.name),sessionStorage.setItem("netSubActiveName",e.name)}}},c=o;var r=n(1001),u=(0,r.Z)(c,i,s,!1,null,null,null);const m=u.exports}}]);