"use strict";(self.webpackChunkwu_vue_zone_ecology_net=self.webpackChunkwu_vue_zone_ecology_net||[]).push([[310],{99310:function(e,a,l){l.r(a),l.d(a,{default:function(){return m}});l(74538);var o=l(67759),n=l(76364),t=l(20336),u=l(79065),r=l(76698),d=l(21847);const b={class:"ve_nav_bar"},s={style:{position:"absolute",right:"40px",top:"80px"}},p={class:"ve_nav_dropdown"};var c={__name:"NavigateMenuBar",setup(e){const a=(0,u.tv)(),l=(0,o.Fl)({get:()=>t.Z.getters.currentBar,set:e=>t.Z.dispatch(`tabbar/${r.RV}`,e)}),c=(0,n.iH)({barCode:"Home",barName:"首页"}),m=(0,o.Fl)({get:()=>t.Z.getters.barList}),v=e=>{t.Z.dispatch(`tabbar/${r.i7}`,e.barCode),e.barCode===l.value.barCode&&(t.Z.dispatch(`tabbar/${r.RV}`,c.value),a.push({name:c.value.barCode}))},i=()=>{console.log("closeOtherBar"),m.value.forEach((e=>{e.barCode!==l.value.barCode&&t.Z.dispatch(`tabbar/${r.i7}`,e.barCode)}))},_=e=>{a.push({name:e.paneName.barCode}),t.Z.dispatch(`tabbar/${r.RV}`,e.paneName)};return(0,o.bv)((async()=>{})),(e,a)=>{const t=(0,o.up)("el-tab-pane"),u=(0,o.up)("el-tabs"),r=(0,o.up)("el-icon"),w=(0,o.up)("el-dropdown-item"),C=(0,o.up)("el-dropdown-menu"),f=(0,o.up)("el-dropdown");return(0,o.wg)(),(0,o.iD)("div",b,[(0,o.Wm)(u,{modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e),type:"card",closable:"",onTabRemove:v,onTabClick:_},{default:(0,o.w5)((()=>[((0,o.wg)(),(0,o.j4)(t,{key:c.value.barCode,label:c.value.barName,name:c.value,closable:"false"},null,8,["label","name"])),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(m.value,(e=>((0,o.wg)(),(0,o.j4)(t,{key:e.barCode,label:e.barName,name:e},null,8,["label","name"])))),128))])),_:1},8,["modelValue"]),(0,o._)("div",s,[(0,o.Wm)(f,{onCommand:i},{dropdown:(0,o.w5)((()=>[(0,o.Wm)(C,null,{default:(0,o.w5)((()=>[(0,o.Wm)(w,{onCommand:i},{default:(0,o.w5)((()=>a[1]||(a[1]=[(0,o.Uk)(" 关闭其他 ")]))),_:1})])),_:1})])),default:(0,o.w5)((()=>[(0,o._)("span",p,[(0,o.Wm)(r,null,{default:(0,o.w5)((()=>[(0,o.Wm)((0,n.SU)(d.ArrowDownBold))])),_:1})])])),_:1})])])}}};var m=(0,l(70636).Z)(c,[["__scopeId","data-v-3ca12f2e"]])}}]);