"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[6488],{60662:function(e,t,l){l.r(t),l.d(t,{default:function(){return Z}});var o=l(66252);const a=(0,o.Uk)("打开个人信息"),r=(0,o.Uk)("打开后执行"),i=(0,o.Uk)("刷新当前"),n=(0,o.Uk)("关闭当前"),u=(0,o.Uk)("关闭其他"),s=(0,o.Uk)("关闭后执行"),m=(0,o.Uk)("设置标题"),p=(0,o.Uk)("fullpage");function c(e,t,l,c,f,h){const d=(0,o.up)("el-button"),w=(0,o.up)("el-alert"),v=(0,o.up)("el-card"),k=(0,o.up)("el-input"),g=(0,o.up)("el-form-item"),y=(0,o.up)("el-form"),Z=(0,o.up)("el-main");return(0,o.wg)(),(0,o.j4)(Z,null,{default:(0,o.w5)((()=>[(0,o.Wm)(v,{shadow:"never",header:"打开"},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{type:"primary",plain:"",onClick:h.open1},{default:(0,o.w5)((()=>[a])),_:1},8,["onClick"]),(0,o.Wm)(d,{type:"primary",plain:"",onClick:h.open2},{default:(0,o.w5)((()=>[r])),_:1},8,["onClick"]),(0,o.Wm)(w,{title:"打开后执行原理: 路由push时,在当前路由对象中插入一个特殊标识, 在目标视图中beforeRouteEnter获取判断是否需要执行特殊方法",style:{"margin-top":"20px"}})])),_:1}),(0,o.Wm)(v,{shadow:"never",header:"刷新",style:{"margin-top":"15px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{type:"primary",plain:"",onClick:h.refresh1},{default:(0,o.w5)((()=>[i])),_:1},8,["onClick"])])),_:1}),(0,o.Wm)(v,{shadow:"never",header:"关闭",style:{"margin-top":"15px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{type:"primary",plain:"",onClick:h.close1},{default:(0,o.w5)((()=>[n])),_:1},8,["onClick"]),(0,o.Wm)(d,{type:"primary",plain:"",onClick:h.close2},{default:(0,o.w5)((()=>[u])),_:1},8,["onClick"]),(0,o.Wm)(d,{type:"primary",plain:"",onClick:h.close3},{default:(0,o.w5)((()=>[s])),_:1},8,["onClick"])])),_:1}),(0,o.Wm)(v,{shadow:"never",header:"设置",style:{"margin-top":"15px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(y,{inline:!0},{default:(0,o.w5)((()=>[(0,o.Wm)(g,null,{default:(0,o.w5)((()=>[(0,o.Wm)(k,{modelValue:f.input,"onUpdate:modelValue":t[0]||(t[0]=e=>f.input=e),placeholder:"请输入内容"},null,8,["modelValue"])])),_:1}),(0,o.Wm)(g,null,{default:(0,o.w5)((()=>[(0,o.Wm)(d,{type:"primary",plain:"",onClick:h.set1},{default:(0,o.w5)((()=>[m])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1}),(0,o.Wm)(v,{shadow:"never",header:"整页路由",style:{"margin-top":"15px"}},{default:(0,o.w5)((()=>[(0,o.Wm)(d,{type:"primary",plain:"",onClick:h.fullpage},{default:(0,o.w5)((()=>[p])),_:1},8,["onClick"]),(0,o.Wm)(w,{title:"变更路由的层级关系,向上推至顶级达到在layout视图中显示. 只需要在路由中设置 meta.fullpage 即可",style:{"margin-top":"20px"}})])),_:1})])),_:1})}l(57658);var f=l(74865),h=l.n(f),d=l(2314),w=l(24239),v={refresh(){h().start();const e=d.Z.currentRoute.value;w.Z.commit("removeKeepLive",e.name),w.Z.commit("setRouteShow",!1),(0,o.Y3)((()=>{w.Z.commit("pushKeepLive",e.name),w.Z.commit("setRouteShow",!0),h().done()}))},close(e){const t=e||d.Z.currentRoute.value;w.Z.commit("removeViewTags",t),w.Z.commit("removeIframeList",t),w.Z.commit("removeKeepLive",t.name);const l=w.Z.state.viewTags.viewTags,o=l.slice(-1)[0];o?d.Z.push(o):d.Z.push("/")},closeNext(e){const t=d.Z.currentRoute.value;if(w.Z.commit("removeViewTags",t),w.Z.commit("removeIframeList",t),w.Z.commit("removeKeepLive",t.name),e){const t=w.Z.state.viewTags.viewTags;e(t)}},closeOther(){const e=d.Z.currentRoute.value,t=[...w.Z.state.viewTags.viewTags];t.forEach((t=>{if(t.meta&&t.meta.affix||e.fullPath==t.fullPath)return!0;this.close(t)}))},setTitle(e){w.Z.commit("updateViewTagsTitle",e)}},k={name:"viewTags",data(){return{input:"newTabName"}},mounted(){},methods:{open1(){this.$router.push("/usercenter")},open2(){this.$router.push("/usercenter"),this.$route.is=!0},refresh1(){v.refresh()},close1(){v.close()},close2(){v.closeOther()},close3(){v.closeNext((e=>{console.log(e),this.$router.push("/usercenter"),this.$route.is=!0}))},set1(){v.setTitle(this.input)},fullpage(){this.$router.push("/other/fullpage")}}},g=l(83744);const y=(0,g.Z)(k,[["render",c]]);var Z=y}}]);