x-php-Admin/dist/static/js/705.63192f3e.js
2023-10-15 16:16:41 +08:00

1 line
38 KiB
JavaScript

"use strict";(self["webpackChunkX_PHP_Admin"]=self["webpackChunkX_PHP_Admin"]||[]).push([[705],{8705:function(e,t,i){i.r(t),i.d(t,{default:function(){return kt}});var l=i(6252),a=i(3577),n=i(9963);const s={class:"adminui-header"},o={class:"adminui-header-left"},u={class:"logo-bar"},r=["src"],d={key:0,class:"nav"},m=["onClick"],c={class:"adminui-header-right"},h={class:"aminui-wrapper"},p={key:0,class:"adminui-side-top",style:{height:"35px","line-height":"35px"}},g={style:{"text-align":"center"}},f={class:"adminui-side-scroll"},w={class:"aminui-body el-container"},y={class:"adminui-main",id:"adminui-main"},v={class:"adminui-header"},_={class:"adminui-header-left"},k={class:"logo-bar"},b=["src"],$={class:"adminui-header-right"},W={class:"aminui-wrapper"},x={class:"adminui-side-scroll"},C={class:"aminui-body el-container"},T={class:"adminui-main",id:"adminui-main"},L={class:"adminui-header"},E={class:"adminui-header-left"},M={class:"logo-bar"},D=["src"],I={class:"adminui-header-right"},P={key:0,class:"adminui-header-menu"},A={class:"aminui-wrapper"},V={class:"aminui-body el-container"},q={class:"adminui-main",id:"adminui-main"},j={key:3,class:"aminui-wrapper"},U={key:0,class:"aminui-side-split"},z={class:"aminui-side-split-top"},N=["title","src"],H={class:"adminui-side-split-scroll"},O=["onClick"],S={key:0,class:"adminui-side-top"},R={class:"adminui-side-scroll"},Y={class:"aminui-body el-container"},F={class:"adminui-main",id:"adminui-main"};function G(e,t,i,G,K,B){const Z=(0,l.up)("el-icon"),X=(0,l.up)("userbar"),Q=(0,l.up)("NavMenu"),J=(0,l.up)("el-menu"),ee=(0,l.up)("el-scrollbar"),te=(0,l.up)("el-icon-expand"),ie=(0,l.up)("el-icon-fold"),le=(0,l.up)("Side-m"),ae=(0,l.up)("Tags"),ne=(0,l.up)("router-view"),se=(0,l.up)("iframe-view"),oe=(0,l.up)("Topbar"),ue=(0,l.up)("router-link"),re=(0,l.up)("el-icon-close"),de=(0,l.up)("el-icon-brush-filled"),me=(0,l.up)("setting"),ce=(0,l.up)("el-drawer"),he=(0,l.up)("auto-exit");return(0,l.wg)(),(0,l.iD)(l.HY,null,["header"==B.layout?((0,l.wg)(),(0,l.iD)(l.HY,{key:0},[(0,l.wy)((0,l._)("header",s,[(0,l._)("div",o,[(0,l._)("div",u,[(0,l._)("img",{class:"logo",src:K.appLogo},null,8,r),(0,l._)("span",null,(0,a.zw)(e.$config.APP_NAME),1)]),B.ismobile?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("ul",d,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(K.menu,(e=>((0,l.wg)(),(0,l.iD)("li",{key:e,class:(0,a.C_)(K.pmenu.path==e.path?"active":""),onClick:t=>B.showMenu(e)},[(0,l.Wm)(Z,null,{default:(0,l.w5)((()=>[((0,l.wg)(),(0,l.j4)((0,l.LL)(e.meta.icon||"el-icon-menu")))])),_:2},1024),(0,l._)("span",null,(0,a.zw)(e.meta.title),1)],10,m)))),128))]))]),(0,l._)("div",c,[(0,l.Wm)(X)])],512),[[n.F8,B.layoutHeader]]),(0,l._)("section",h,[!B.ismobile&&K.nextMenu.length>0?((0,l.wg)(),(0,l.iD)("div",{key:0,class:(0,a.C_)(B.menuIsCollapse?"aminui-side isCollapse":"aminui-side")},[B.menuIsCollapse?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("div",p,[(0,l._)("h2",g,(0,a.zw)(K.pmenu.meta.title),1)])),(0,l._)("div",f,[(0,l.Wm)(ee,null,{default:(0,l.w5)((()=>[(0,l.Wm)(J,{"default-active":K.active,router:"",collapse:B.menuIsCollapse,"unique-opened":e.$config.MENU_UNIQUE_OPENED},{default:(0,l.w5)((()=>[(0,l.Wm)(Q,{navMenus:K.nextMenu},null,8,["navMenus"])])),_:1},8,["default-active","collapse","unique-opened"])])),_:1})]),(0,l._)("div",{class:"adminui-side-bottom",onClick:t[0]||(t[0]=t=>e.$store.commit("TOGGLE_menuIsCollapse"))},[(0,l.Wm)(Z,null,{default:(0,l.w5)((()=>[B.menuIsCollapse?((0,l.wg)(),(0,l.j4)(te,{key:0})):((0,l.wg)(),(0,l.j4)(ie,{key:1}))])),_:1})])],2)):(0,l.kq)("",!0),B.ismobile?((0,l.wg)(),(0,l.j4)(le,{key:1})):(0,l.kq)("",!0),(0,l._)("div",w,[!B.ismobile&&B.layoutTags?((0,l.wg)(),(0,l.j4)(ae,{key:0,ref:"tags"},null,512)):(0,l.kq)("",!0),(0,l._)("div",y,[(0,l.wy)((0,l.Wm)(ne,null,{default:(0,l.w5)((({Component:t})=>[((0,l.wg)(),(0,l.j4)(l.Ob,{include:this.$store.state.keepAlive.keepLiveRoute},[e.$store.state.keepAlive.routeShow?((0,l.wg)(),(0,l.j4)((0,l.LL)(t),{key:e.$route.fullPath})):(0,l.kq)("",!0)],1032,["include"]))])),_:1},512),[[n.F8,"iframe"!=e.$route.meta.type]]),(0,l.Wm)(se)])])])],64)):"menu"==B.layout?((0,l.wg)(),(0,l.iD)(l.HY,{key:1},[(0,l.wy)((0,l._)("header",v,[(0,l._)("div",_,[(0,l._)("div",k,[(0,l._)("img",{class:"logo",src:K.appLogo},null,8,b),(0,l._)("span",null,(0,a.zw)(e.$config.APP_NAME),1)])]),(0,l._)("div",$,[(0,l.Wm)(X)])],512),[[n.F8,B.layoutHeader]]),(0,l._)("section",W,[B.ismobile?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("div",{key:0,class:(0,a.C_)(B.menuIsCollapse?"aminui-side isCollapse":"aminui-side")},[(0,l._)("div",x,[(0,l.Wm)(ee,null,{default:(0,l.w5)((()=>[(0,l.Wm)(J,{"default-active":K.active,router:"",collapse:B.menuIsCollapse,"unique-opened":e.$config.MENU_UNIQUE_OPENED},{default:(0,l.w5)((()=>[(0,l.Wm)(Q,{navMenus:K.menu},null,8,["navMenus"])])),_:1},8,["default-active","collapse","unique-opened"])])),_:1})]),(0,l._)("div",{class:"adminui-side-bottom",onClick:t[1]||(t[1]=t=>e.$store.commit("TOGGLE_menuIsCollapse"))},[(0,l.Wm)(Z,null,{default:(0,l.w5)((()=>[B.menuIsCollapse?((0,l.wg)(),(0,l.j4)(te,{key:0})):((0,l.wg)(),(0,l.j4)(ie,{key:1}))])),_:1})])],2)),B.ismobile?((0,l.wg)(),(0,l.j4)(le,{key:1})):(0,l.kq)("",!0),(0,l._)("div",C,[B.ismobile?(0,l.kq)("",!0):((0,l.wg)(),(0,l.j4)(oe,{key:0})),(0,l._)("div",T,[(0,l.wy)((0,l.Wm)(ne,null,{default:(0,l.w5)((({Component:t})=>[((0,l.wg)(),(0,l.j4)(l.Ob,{include:this.$store.state.keepAlive.keepLiveRoute},[e.$store.state.keepAlive.routeShow?((0,l.wg)(),(0,l.j4)((0,l.LL)(t),{key:e.$route.fullPath})):(0,l.kq)("",!0)],1032,["include"]))])),_:1},512),[[n.F8,"iframe"!=e.$route.meta.type]]),(0,l.Wm)(se)])])])],64)):"dock"==B.layout?((0,l.wg)(),(0,l.iD)(l.HY,{key:2},[(0,l.wy)((0,l._)("header",L,[(0,l._)("div",E,[(0,l._)("div",M,[(0,l._)("img",{class:"logo",src:K.appLogo},null,8,D),(0,l._)("span",null,(0,a.zw)(e.$config.APP_NAME),1)])]),(0,l._)("div",I,[B.ismobile?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("div",P,[(0,l.Wm)(J,{mode:"horizontal","default-active":K.active,router:"","background-color":"#222b45","text-color":"#fff","active-text-color":"var(--el-color-primary)"},{default:(0,l.w5)((()=>[(0,l.Wm)(Q,{navMenus:K.menu},null,8,["navMenus"])])),_:1},8,["default-active"])])),B.ismobile?((0,l.wg)(),(0,l.j4)(le,{key:1})):(0,l.kq)("",!0),(0,l.Wm)(X)])],512),[[n.F8,B.layoutHeader]]),(0,l._)("section",A,[(0,l._)("div",V,[!B.ismobile&&B.layoutTags?((0,l.wg)(),(0,l.j4)(ae,{key:0,ref:"tags"},null,512)):(0,l.kq)("",!0),(0,l._)("div",q,[(0,l.wy)((0,l.Wm)(ne,null,{default:(0,l.w5)((({Component:t})=>[((0,l.wg)(),(0,l.j4)(l.Ob,{include:this.$store.state.keepAlive.keepLiveRoute},[e.$store.state.keepAlive.routeShow?((0,l.wg)(),(0,l.j4)((0,l.LL)(t),{key:e.$route.fullPath})):(0,l.kq)("",!0)],1032,["include"]))])),_:1},512),[[n.F8,"iframe"!=e.$route.meta.type]]),(0,l.Wm)(se)])])])],64)):((0,l.wg)(),(0,l.iD)("section",j,[B.ismobile?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("div",U,[(0,l._)("div",z,[(0,l.Wm)(ue,{to:e.$config.DASHBOARD_URL},{default:(0,l.w5)((()=>[(0,l._)("img",{class:"logo",title:e.$config.APP_NAME,src:K.appLogo},null,8,N)])),_:1},8,["to"])]),(0,l._)("div",H,[(0,l.Wm)(ee,null,{default:(0,l.w5)((()=>[(0,l._)("ul",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(K.menu,(t=>((0,l.wg)(),(0,l.iD)("li",{key:t,class:(0,a.C_)(K.pmenu.path==t.path?"active":""),onClick:e=>B.showMenu(t)},[(0,l.Wm)(Z,null,{default:(0,l.w5)((()=>[((0,l.wg)(),(0,l.j4)((0,l.LL)(t.meta.icon||e.el-e.icon-K.menu)))])),_:2},1024),(0,l._)("p",null,(0,a.zw)(t.meta.title),1)],10,O)))),128))])])),_:1})])])),!B.ismobile&&K.nextMenu.length>0||!K.pmenu.component?((0,l.wg)(),(0,l.iD)("div",{key:1,class:(0,a.C_)(B.menuIsCollapse?"aminui-side isCollapse":"aminui-side")},[B.menuIsCollapse?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("div",S,[(0,l._)("h2",null,(0,a.zw)(K.pmenu.meta.title),1)])),(0,l._)("div",R,[(0,l.Wm)(ee,null,{default:(0,l.w5)((()=>[(0,l.Wm)(J,{"default-active":K.active,router:"",collapse:B.menuIsCollapse,"unique-opened":e.$config.MENU_UNIQUE_OPENED},{default:(0,l.w5)((()=>[(0,l.Wm)(Q,{navMenus:K.nextMenu},null,8,["navMenus"])])),_:1},8,["default-active","collapse","unique-opened"])])),_:1})]),(0,l._)("div",{class:"adminui-side-bottom",onClick:t[2]||(t[2]=t=>e.$store.commit("TOGGLE_menuIsCollapse"))},[(0,l.Wm)(Z,null,{default:(0,l.w5)((()=>[B.menuIsCollapse?((0,l.wg)(),(0,l.j4)(te,{key:0})):((0,l.wg)(),(0,l.j4)(ie,{key:1}))])),_:1})])],2)):(0,l.kq)("",!0),B.ismobile?((0,l.wg)(),(0,l.j4)(le,{key:2})):(0,l.kq)("",!0),(0,l._)("div",Y,[(0,l.Wm)(oe,null,{default:(0,l.w5)((()=>[(0,l.Wm)(X)])),_:1}),e.$route.meta.hideTags||B.ismobile||!B.layoutTags?(0,l.kq)("",!0):((0,l.wg)(),(0,l.j4)(ae,{key:0,ref:"tags"},null,512)),(0,l._)("div",F,[(0,l.wy)((0,l.Wm)(ne,null,{default:(0,l.w5)((({Component:t})=>[((0,l.wg)(),(0,l.j4)(l.Ob,{include:this.$store.state.keepAlive.keepLiveRoute},[e.$store.state.keepAlive.routeShow?((0,l.wg)(),(0,l.j4)((0,l.LL)(t),{key:e.$route.fullPath})):(0,l.kq)("",!0)],1032,["include"]))])),_:1},512),[[n.F8,"iframe"!=e.$route.meta.type]]),(0,l.Wm)(se)])])])),(0,l._)("div",{class:"main-maximize-exit",onClick:t[3]||(t[3]=(...e)=>B.exitMaximize&&B.exitMaximize(...e))},[(0,l.Wm)(Z,null,{default:(0,l.w5)((()=>[(0,l.Wm)(re)])),_:1})]),e.$config.THEMESETTING?((0,l.wg)(),(0,l.iD)("div",{key:4,class:"layout-setting",onClick:t[4]||(t[4]=(...e)=>B.openSetting&&B.openSetting(...e))},[(0,l.Wm)(Z,null,{default:(0,l.w5)((()=>[(0,l.Wm)(de)])),_:1})])):(0,l.kq)("",!0),(0,l.Wm)(ce,{title:"布局实时演示",modelValue:K.settingDialog,"onUpdate:modelValue":t[5]||(t[5]=e=>K.settingDialog=e),size:400,"append-to-body":"","destroy-on-close":""},{default:(0,l.w5)((()=>[(0,l.Wm)(me)])),_:1},8,["modelValue"]),(0,l.Wm)(he)],64)}i(7658);var K=i(5080);const B=e=>((0,l.dD)("data-v-80b8c2f0"),e=e(),(0,l.Cn)(),e),Z={class:"logo-bar"},X=B((()=>(0,l._)("img",{class:"logo",src:K},null,-1)));function Q(e,t,i,n,s,o){const u=(0,l.up)("el-icon-menu"),r=(0,l.up)("el-icon"),d=(0,l.up)("el-header"),m=(0,l.up)("NavMenu"),c=(0,l.up)("el-menu"),h=(0,l.up)("el-scrollbar"),p=(0,l.up)("el-main"),g=(0,l.up)("el-container"),f=(0,l.up)("el-drawer"),w=(0,l.Q2)("drag");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.wy)(((0,l.wg)(),(0,l.iD)("div",{ref:"",class:"mobile-nav-button",onClick:t[0]||(t[0]=e=>o.showMobileNav(e)),draggable:"false"},[(0,l.Wm)(r,null,{default:(0,l.w5)((()=>[(0,l.Wm)(u)])),_:1})])),[[w]]),(0,l.Wm)(f,{ref:"mobileNavBox",title:"移动端菜单",size:240,modelValue:s.nav,"onUpdate:modelValue":t[1]||(t[1]=e=>s.nav=e),direction:"ltr","with-header":!1,"destroy-on-close":""},{default:(0,l.w5)((()=>[(0,l.Wm)(g,{class:"mobile-nav"},{default:(0,l.w5)((()=>[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l._)("div",Z,[X,(0,l._)("span",null,(0,a.zw)(e.$config.APP_NAME),1)])])),_:1}),(0,l.Wm)(p,null,{default:(0,l.w5)((()=>[(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[(0,l.Wm)(c,{"default-active":e.$route.meta.active||e.$route.fullPath,onSelect:o.select,router:"","background-color":"#212d3d","text-color":"#fff","active-text-color":"#409EFF"},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{navMenus:s.menu},null,8,["navMenus"])])),_:1},8,["default-active","onSelect"])])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])],64)}const J={key:0,style:{padding:"20px"}},ee=["href"],te={key:0,class:"menu-tag"},ie={key:1,class:"menu-tag"};function le(e,t,i,s,o,u){const r=(0,l.up)("el-alert"),d=(0,l.up)("el-icon"),m=(0,l.up)("el-menu-item"),c=(0,l.up)("NavMenu",!0),h=(0,l.up)("el-sub-menu");return(0,l.wg)(),(0,l.iD)(l.HY,null,[i.navMenus.length<=0?((0,l.wg)(),(0,l.iD)("div",J,[(0,l.Wm)(r,{title:"无子集菜单",center:"",type:"info",closable:!1})])):(0,l.kq)("",!0),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(i.navMenus,(e=>((0,l.wg)(),(0,l.iD)(l.HY,{key:e},[u.hasChildren(e)?((0,l.wg)(),(0,l.j4)(h,{key:1,index:e.path},{title:(0,l.w5)((()=>[e.meta&&e.meta.icon?((0,l.wg)(),(0,l.j4)(d,{key:0},{default:(0,l.w5)((()=>[((0,l.wg)(),(0,l.j4)((0,l.LL)(e.meta.icon||"el-icon-menu")))])),_:2},1024)):(0,l.kq)("",!0),(0,l._)("span",null,(0,a.zw)(e.meta.title),1),e.meta.tag?((0,l.wg)(),(0,l.iD)("span",ie,(0,a.zw)(e.meta.tag),1)):(0,l.kq)("",!0)])),default:(0,l.w5)((()=>[(0,l.Wm)(c,{navMenus:e.children},null,8,["navMenus"])])),_:2},1032,["index"])):((0,l.wg)(),(0,l.j4)(m,{key:0,index:e.path},{title:(0,l.w5)((()=>[(0,l._)("span",null,(0,a.zw)(e.meta.title),1),e.meta.tag?((0,l.wg)(),(0,l.iD)("span",te,(0,a.zw)(e.meta.tag),1)):(0,l.kq)("",!0)])),default:(0,l.w5)((()=>[e.meta&&"link"==e.meta.type?((0,l.wg)(),(0,l.iD)("a",{key:0,href:e.path,target:"_blank",onClick:t[0]||(t[0]=(0,n.iM)((()=>{}),["stop"]))},null,8,ee)):(0,l.kq)("",!0),e.meta&&e.meta.icon?((0,l.wg)(),(0,l.j4)(d,{key:1},{default:(0,l.w5)((()=>[((0,l.wg)(),(0,l.j4)((0,l.LL)(e.meta.icon||"el-icon-menu")))])),_:2},1024)):(0,l.kq)("",!0)])),_:2},1032,["index"]))],64)))),128))],64)}var ae={name:"NavMenu",props:["navMenus"],data(){return{}},methods:{hasChildren(e){return e.children&&!e.children.every((e=>e.meta.hidden))}}},ne=i(3744);const se=(0,ne.Z)(ae,[["render",le]]);var oe=se,ue={components:{NavMenu:oe},data(){return{nav:!1,menu:[]}},computed:{},created(){var e=this.$router.x_getMenu();this.menu=this.filterUrl(e)},watch:{},methods:{showMobileNav(e){var t=e.currentTarget.getAttribute("drag-flag");if("true"==t)return!1;this.nav=!0},select(){this.$refs.mobileNavBox.handleClose()},filterUrl(e){var t=[];return e&&e.forEach((e=>{if(e.meta=e.meta?e.meta:{},e.meta.hidden||"button"==e.meta.type)return!1;"iframe"==e.meta.type&&(e.path=`/i/${e.name}`),e.children&&e.children.length>0&&(e.children=this.filterUrl(e.children)),t.push(e)})),t}},directives:{drag(e){let t=e,i="",l="";t.onmousedown=function(e){let a=e.clientX-t.offsetLeft,n=e.clientY-t.offsetTop;return document.onmousemove=function(e){t.setAttribute("drag-flag",!0),i=(new Date).getTime();let l=e.clientX-a,s=e.clientY-n;s>0&&s<document.body.clientHeight-50&&(t.style.top=s+"px"),l>0&&l<document.body.clientWidth-50&&(t.style.left=l+"px")},document.onmouseup=function(){l=(new Date).getTime(),l-i>200&&t.setAttribute("drag-flag",!1),document.onmousemove=null,document.onmouseup=null},!1}}}};const re=(0,ne.Z)(ue,[["render",Q],["__scopeId","data-v-80b8c2f0"]]);var de=re;const me=e=>((0,l.dD)("data-v-29cbd22a"),e=e(),(0,l.Cn)(),e),ce={class:"adminui-topbar"},he={class:"left-panel"},pe=me((()=>(0,l._)("div",{class:"center-panel"},null,-1))),ge={class:"right-panel"};function fe(e,t,i,s,o,u){const r=(0,l.up)("el-icon"),d=(0,l.up)("el-breadcrumb-item"),m=(0,l.up)("el-breadcrumb");return(0,l.wg)(),(0,l.iD)("div",ce,[(0,l._)("div",he,[(0,l.Wm)(m,{"separator-icon":"el-icon-arrow-right"},{default:(0,l.w5)((()=>[(0,l.Wm)(n.W3,{name:"breadcrumb"},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.breadList,(e=>((0,l.wg)(),(0,l.iD)(l.HY,{key:e.title},["/"==e.path||e.meta.hiddenBreadcrumb?(0,l.kq)("",!0):((0,l.wg)(),(0,l.j4)(d,{key:e.meta.title},{default:(0,l.w5)((()=>[e.meta.icon?((0,l.wg)(),(0,l.j4)(r,{key:0,class:"icon"},{default:(0,l.w5)((()=>[((0,l.wg)(),(0,l.j4)((0,l.LL)(e.meta.icon)))])),_:2},1024)):(0,l.kq)("",!0),(0,l.Uk)((0,a.zw)(e.meta.title),1)])),_:2},1024))],64)))),128))])),_:1})])),_:1})]),pe,(0,l._)("div",ge,[(0,l.WI)(e.$slots,"default",{},void 0,!0)])])}var we={data(){return{breadList:[]}},created(){this.getBreadcrumb()},watch:{$route(){this.getBreadcrumb()}},methods:{getBreadcrumb(){let e=this.$route.meta.breadcrumb;this.breadList=e}}};const ye=(0,ne.Z)(we,[["render",fe],["__scopeId","data-v-29cbd22a"]]);var ve=ye;const _e={class:"adminui-tags"},ke={ref:"tags"},be=["onContextmenu"],$e=(0,l._)("hr",null,null,-1),We=(0,l._)("hr",null,null,-1);function xe(e,t,i,s,o,u){const r=(0,l.up)("el-icon-close"),d=(0,l.up)("el-icon"),m=(0,l.up)("router-link"),c=(0,l.up)("el-icon-refresh"),h=(0,l.up)("el-icon-folder-delete"),p=(0,l.up)("el-icon-full-screen"),g=(0,l.up)("el-icon-copy-document");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",_e,[(0,l._)("ul",ke,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.tagList,(e=>((0,l.wg)(),(0,l.iD)("li",{key:e,class:(0,a.C_)([u.isActive(e)?"active":"",e.meta.affix?"affix":""]),onContextmenu:(0,n.iM)((t=>u.openContextMenu(t,e)),["prevent"])},[(0,l.Wm)(m,{to:e},{default:(0,l.w5)((()=>[(0,l._)("span",null,(0,a.zw)(e.meta.title),1),e.meta.affix?(0,l.kq)("",!0):((0,l.wg)(),(0,l.j4)(d,{key:0,onClick:(0,n.iM)((t=>u.closeSelectedTag(e)),["prevent","stop"])},{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:2},1032,["onClick"]))])),_:2},1032,["to"])],42,be)))),128))],512)]),(0,l.Wm)(n.uT,{name:"el-zoom-in-top"},{default:(0,l.w5)((()=>[o.contextMenuVisible?((0,l.wg)(),(0,l.iD)("ul",{key:0,style:(0,a.j5)({left:o.left+"px",top:o.top+"px"}),class:"contextmenu",id:"contextmenu"},[(0,l._)("li",{onClick:t[0]||(t[0]=e=>u.refreshTab())},[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Wm)(c)])),_:1}),(0,l.Uk)("刷新")]),$e,(0,l._)("li",{onClick:t[1]||(t[1]=e=>u.closeTabs()),class:(0,a.C_)(o.contextMenuItem.meta.affix?"disabled":"")},[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1}),(0,l.Uk)("关闭标签")],2),(0,l._)("li",{onClick:t[2]||(t[2]=e=>u.closeOtherTabs())},[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Wm)(h)])),_:1}),(0,l.Uk)("关闭其他标签")]),We,(0,l._)("li",{onClick:t[3]||(t[3]=e=>u.maximize())},[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p)])),_:1}),(0,l.Uk)("最大化")]),(0,l._)("li",{onClick:t[4]||(t[4]=e=>u.openWindow())},[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Wm)(g)])),_:1}),(0,l.Uk)("在新的窗口中打开")])],4)):(0,l.kq)("",!0)])),_:1})],64)}var Ce=i(1474),Te={name:"tags",data(){return{contextMenuVisible:!1,contextMenuItem:null,left:0,top:0,tagList:this.$store.state.viewTags.viewTags,tipDisplayed:!1}},props:{},watch:{$route(e){this.addViewTags(e),this.$nextTick((()=>{const e=this.$refs.tags;if(e&&e.scrollWidth>e.clientWidth){let t=e.querySelector(".active");t.scrollIntoView(),this.tipDisplayed||(this.$msgbox({type:"warning",center:!0,title:"提示",message:"当前标签数量过多,可通过鼠标滚轴滚动标签栏。关闭标签数量可减少系统性能消耗。",confirmButtonText:"知道了"}),this.tipDisplayed=!0)}}))},contextMenuVisible(e){const t=e=>{const t=document.getElementById("contextmenu");t&&!t.contains(e.target)&&this.closeMenu()};e?document.body.addEventListener("click",(e=>t(e))):document.body.removeEventListener("click",(e=>t(e)))}},created(){var e=this.$router.x_getMenu(),t=this.treeFind(e,(e=>e.path==this.$config.DASHBOARD_URL));t&&(t.fullPath=t.path,this.addViewTags(t),this.addViewTags(this.$route))},mounted(){this.tagDrop(),this.scrollInit()},methods:{treeFind(e,t){for(const i of e){if(t(i))return i;if(i.children){const e=this.treeFind(i.children,t);if(e)return e}}return null},tagDrop(){const e=this.$refs.tags;Ce.ZP.create(e,{draggable:"li",animation:300})},addViewTags(e){e.name&&!e.meta.fullpage&&(this.$store.commit("pushViewTags",e),this.$store.commit("pushKeepLive",e.name))},isActive(e){return e.fullPath===this.$route.fullPath},closeSelectedTag(e,t=!0){const i=this.tagList.findIndex((t=>t.fullPath==e.fullPath));if(this.$store.commit("removeViewTags",e),this.$store.commit("removeIframeList",e),this.$store.commit("removeKeepLive",e.name),t&&this.isActive(e)){const e=this.tagList[i-1];e?this.$router.push(e):this.$router.push("/")}},openContextMenu(e,t){this.contextMenuItem=t,this.contextMenuVisible=!0,this.left=e.clientX+1,this.top=e.clientY+1,this.$nextTick((()=>{let t=document.getElementById("contextmenu");document.body.offsetWidth-e.clientX<t.offsetWidth&&(this.left=document.body.offsetWidth-t.offsetWidth+1,this.top=e.clientY+1)}))},closeMenu(){this.contextMenuItem=null,this.contextMenuVisible=!1},refreshTab(){this.contextMenuVisible=!1;const e=this.contextMenuItem;this.$route.fullPath!==e.fullPath&&this.$router.push({path:e.fullPath,query:e.query}),this.$store.commit("refreshIframe",e),setTimeout((()=>{this.$store.commit("removeKeepLive",e.name),this.$store.commit("setRouteShow",!1),this.$nextTick((()=>{this.$store.commit("pushKeepLive",e.name),this.$store.commit("setRouteShow",!0)}))}),0)},closeTabs(){var e=this.contextMenuItem;e.meta.affix||(this.closeSelectedTag(e),this.contextMenuVisible=!1)},closeOtherTabs(){var e=this.contextMenuItem;this.$route.fullPath!=e.fullPath&&this.$router.push({path:e.fullPath,query:e.query});var t=[...this.tagList];t.forEach((t=>{if(t.meta&&t.meta.affix||e.fullPath==t.fullPath)return!0;this.closeSelectedTag(t,!1)})),this.contextMenuVisible=!1},maximize(){var e=this.contextMenuItem;this.contextMenuVisible=!1,this.$route.fullPath!=e.fullPath&&this.$router.push({path:e.fullPath,query:e.query}),document.getElementById("app").classList.add("main-maximize")},openWindow(){var e=this.contextMenuItem,t=e.href||"/";e.meta.affix||this.closeSelectedTag(e),window.open(t),this.contextMenuVisible=!1},scrollInit(){const e=this.$refs.tags;function t(t){const i=t.wheelDelta||t.detail,l=1,a=-1;let n=0;n=3==i||i<0&&-3!=i?50*l:50*a,e.scrollLeft+=n}e.addEventListener("mousewheel",t,!1)||e.addEventListener("DOMMouseScroll",t,!1)}}};const Le=(0,ne.Z)(Te,[["render",xe]]);var Ee=Le;const Me={class:"user-bar"},De={class:"user-avatar"};function Ie(e,t,i,n,s,o){const u=(0,l.up)("el-icon-open"),r=(0,l.up)("el-icon"),d=(0,l.up)("el-icon-TurnOff"),m=(0,l.up)("el-icon-search"),c=(0,l.up)("el-icon-full-screen"),h=(0,l.up)("el-icon-sort"),p=(0,l.up)("el-avatar"),g=(0,l.up)("el-icon-arrow-down"),f=(0,l.up)("el-dropdown-item"),w=(0,l.up)("el-dropdown-menu"),y=(0,l.up)("el-dropdown"),v=(0,l.up)("search"),_=(0,l.up)("el-dialog"),k=(0,l.up)("tasks"),b=(0,l.up)("el-drawer");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",Me,["menu"!=e.$store.state.global.layout?((0,l.wg)(),(0,l.iD)("div",{key:0,class:"panel-item hidden-sm-and-down",onClick:t[0]||(t[0]=t=>e.$store.commit("TOGGLE_layoutTags"))},[e.$store.state.global.layoutTags?((0,l.wg)(),(0,l.j4)(r,{key:0},{default:(0,l.w5)((()=>[(0,l.Wm)(u)])),_:1})):((0,l.wg)(),(0,l.j4)(r,{key:1},{default:(0,l.w5)((()=>[(0,l.Wm)(d)])),_:1}))])):(0,l.kq)("",!0),(0,l._)("div",{class:"panel-item hidden-sm-and-down",onClick:t[1]||(t[1]=(...e)=>o.search&&o.search(...e))},[(0,l.Wm)(r,null,{default:(0,l.w5)((()=>[(0,l.Wm)(m)])),_:1})]),(0,l._)("div",{class:"screen panel-item hidden-sm-and-down",onClick:t[2]||(t[2]=(...e)=>o.screen&&o.screen(...e))},[(0,l.Wm)(r,null,{default:(0,l.w5)((()=>[(0,l.Wm)(c)])),_:1})]),(0,l._)("div",{class:"tasks panel-item",onClick:t[3]||(t[3]=(...e)=>o.tasks&&o.tasks(...e))},[(0,l.Wm)(r,null,{default:(0,l.w5)((()=>[(0,l.Wm)(h)])),_:1})]),(0,l.Wm)(y,{class:"user panel-item",trigger:"click",onCommand:o.handleUser},{dropdown:(0,l.w5)((()=>[(0,l.Wm)(w,null,{default:(0,l.w5)((()=>[(0,l.Wm)(f,{command:"userinfo"},{default:(0,l.w5)((()=>[(0,l.Uk)("帐号信息")])),_:1}),(0,l.Wm)(f,{command:"clearCache"},{default:(0,l.w5)((()=>[(0,l.Uk)("清除缓存")])),_:1}),(0,l.Wm)(f,{divided:"",command:"outLogin"},{default:(0,l.w5)((()=>[(0,l.Uk)("退出登录")])),_:1})])),_:1})])),default:(0,l.w5)((()=>[(0,l._)("div",De,[(0,l.Wm)(p,{size:30,src:s.avatar},{default:(0,l.w5)((()=>[(0,l.Uk)((0,a.zw)(s.username),1)])),_:1},8,["src"]),(0,l._)("label",null,(0,a.zw)(s.username),1),(0,l.Wm)(r,{class:"el-icon--right"},{default:(0,l.w5)((()=>[(0,l.Wm)(g)])),_:1})])])),_:1},8,["onCommand"])]),(0,l.Wm)(_,{modelValue:s.searchVisible,"onUpdate:modelValue":t[5]||(t[5]=e=>s.searchVisible=e),width:700,title:"搜索",center:"","destroy-on-close":""},{default:(0,l.w5)((()=>[(0,l.Wm)(v,{onSuccess:t[4]||(t[4]=e=>s.searchVisible=!1)})])),_:1},8,["modelValue"]),(0,l.Wm)(b,{modelValue:s.tasksVisible,"onUpdate:modelValue":t[6]||(t[6]=e=>s.tasksVisible=e),size:450,title:"任务中心","destroy-on-close":""},{default:(0,l.w5)((()=>[(0,l.Wm)(k)])),_:1},8,["modelValue"])],64)}const Pe={class:"x-search"},Ae={key:0,class:"x-search-history"},Ve={class:"x-search-result"},qe={key:0,class:"x-search-no-result"},je={key:1},Ue=["onClick"],ze={class:"title"};function Ne(e,t,i,n,s,o){const u=(0,l.up)("el-input"),r=(0,l.up)("el-tag"),d=(0,l.up)("el-icon"),m=(0,l.up)("el-scrollbar");return(0,l.wg)(),(0,l.iD)("div",Pe,[(0,l.Wm)(u,{ref:"input",modelValue:s.input,"onUpdate:modelValue":t[0]||(t[0]=e=>s.input=e),placeholder:"搜索",size:"large",clearable:"","prefix-icon":"el-icon-search","trigger-on-focus":!1,onInput:o.inputChange},null,8,["modelValue","onInput"]),s.history.length>0?((0,l.wg)(),(0,l.iD)("div",Ae,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(s.history,((e,t)=>((0,l.wg)(),(0,l.j4)(r,{closable:"",effect:"dark",type:"info",key:e,onClick:t=>o.historyClick(e),onClose:e=>o.historyClose(t)},{default:(0,l.w5)((()=>[(0,l.Uk)((0,a.zw)(e),1)])),_:2},1032,["onClick","onClose"])))),128))])):(0,l.kq)("",!0),(0,l._)("div",Ve,[s.result.length<=0?((0,l.wg)(),(0,l.iD)("div",qe,"暂无搜索结果")):((0,l.wg)(),(0,l.iD)("ul",je,[(0,l.Wm)(m,{"max-height":"366px"},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(s.result,(e=>((0,l.wg)(),(0,l.iD)("li",{key:e.path,onClick:t=>o.to(e)},[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[((0,l.wg)(),(0,l.j4)((0,l.LL)(e.icon||"el-icon-menu")))])),_:2},1024),(0,l._)("span",ze,(0,a.zw)(e.breadcrumb),1)],8,Ue)))),128))])),_:1})]))])])}var He={data(){return{input:"",menu:[],result:[],history:[]}},mounted(){var e=this.$tool.data.get("SEARCH_HISTORY")||[];this.history=e;var t=this.$tool.data.get("menu");this.filterMenu(t),this.$refs.input.focus()},methods:{inputChange(e){this.result=e?this.menuFilter(e):[]},filterMenu(e){e.forEach((e=>{if(e.meta.hidden||"button"==e.meta.type)return!1;"iframe"==e.meta.type&&(e.path=`/i/${e.name}`),e.children&&e.children.length>0?(e.component,this.filterMenu(e.children)):this.menu.push(e)}))},menuFilter(e){var t=[],i=this.menu.filter((t=>t.meta.title.toLowerCase().indexOf(e.toLowerCase())>=0||(t.name.toLowerCase().indexOf(e.toLowerCase())>=0||void 0))),l=this.$router.getRoutes(),a=i.map((e=>"link"==e.meta.type?l.find((t=>t.path=="/"+e.path)):l.find((t=>t.path==e.path))));return a.forEach((e=>{t.push({name:e.name,children:e.children||[],type:e.meta.type,path:"link"==e.meta.type?e.path.slice(1):e.path,icon:e.meta.icon,title:e.meta.title,breadcrumb:e.meta.breadcrumb.map((e=>e.meta.title)).join(" - ")})})),t},to(e){this.history.includes(this.input)||(this.history.push(this.input),this.$tool.data.set("SEARCH_HISTORY",this.history)),"link"==e.type?setTimeout((()=>{let t=document.createElement("a");t.style="display: none",t.target="_blank",t.href=e.path,document.body.appendChild(t),t.click(),document.body.removeChild(t)}),10):this.getchildren(e),this.$emit("success",!0)},getchildren(e){if(e&&e.children&&e.children.length>0)return this.getchildren(e.children[0]);this.$router.push({path:e.path})},historyClick(e){this.input=e,this.inputChange(e)},historyClose(e){this.history.splice(e,1),this.history.length<=0?this.$tool.data.remove("SEARCH_HISTORY"):this.$tool.data.set("SEARCH_HISTORY",this.history)}}};const Oe=(0,ne.Z)(He,[["render",Ne],["__scopeId","data-v-08cde374"]]);var Se=Oe;const Re=e=>((0,l.dD)("data-v-3102f840"),e=e(),(0,l.Cn)(),e),Ye=Re((()=>(0,l._)("h2",null,"没有正在执行的任务",-1))),Fe=Re((()=>(0,l._)("p",{style:{"font-size":"14px",color:"#999","line-height":"1.5",margin:"0 40px"}},"在处理耗时过久的任务时为了不阻碍正在处理的工作,可在任务中心进行异步执行。",-1))),Ge={class:"user-bar-tasks-item-body"},Ke={class:"taskIcon"},Be={class:"taskMain"},Ze={class:"title"},Xe={class:"bottom"},Qe={class:"state"},Je={class:"handler"};function et(e,t,i,n,s,o){const u=(0,l.up)("el-empty"),r=(0,l.up)("el-icon-paperclip"),d=(0,l.up)("el-icon"),m=(0,l.up)("el-icon-dataAnalysis"),c=(0,l.up)("el-tag"),h=(0,l.up)("el-button"),p=(0,l.up)("el-card"),g=(0,l.up)("el-main"),f=(0,l.up)("el-footer"),w=(0,l.up)("el-container"),y=(0,l.Q2)("time"),v=(0,l.Q2)("loading");return(0,l.wy)(((0,l.wg)(),(0,l.j4)(w,null,{default:(0,l.w5)((()=>[(0,l.Wm)(g,null,{default:(0,l.w5)((()=>[0==s.tasks.length?((0,l.wg)(),(0,l.j4)(u,{key:0,"image-size":120},{description:(0,l.w5)((()=>[Ye])),default:(0,l.w5)((()=>[Fe])),_:1})):(0,l.kq)("",!0),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(s.tasks,(e=>((0,l.wg)(),(0,l.j4)(p,{key:e.id,shadow:"hover",class:"user-bar-tasks-item"},{default:(0,l.w5)((()=>[(0,l._)("div",Ge,[(0,l._)("div",Ke,["export"==e.type?((0,l.wg)(),(0,l.j4)(d,{key:0,size:20},{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1})):(0,l.kq)("",!0),"report"==e.type?((0,l.wg)(),(0,l.j4)(d,{key:1,size:20},{default:(0,l.w5)((()=>[(0,l.Wm)(m)])),_:1})):(0,l.kq)("",!0)]),(0,l._)("div",Be,[(0,l._)("div",Ze,[(0,l._)("h2",null,(0,a.zw)(e.taskName),1),(0,l._)("p",null,[(0,l.wy)((0,l._)("span",null,null,512),[[y,e.createDate,void 0,{tip:!0}]]),(0,l.Uk)(" 创建")])]),(0,l._)("div",Xe,[(0,l._)("div",Qe,["0"==e.state?((0,l.wg)(),(0,l.j4)(c,{key:0,type:"info"},{default:(0,l.w5)((()=>[(0,l.Uk)("执行中")])),_:1})):(0,l.kq)("",!0),"1"==e.state?((0,l.wg)(),(0,l.j4)(c,{key:1},{default:(0,l.w5)((()=>[(0,l.Uk)("完成")])),_:1})):(0,l.kq)("",!0)]),(0,l._)("div",Je,["1"==e.state?((0,l.wg)(),(0,l.j4)(h,{key:0,type:"primary",circle:"",icon:"el-icon-download",onClick:t=>o.download(e)},null,8,["onClick"])):(0,l.kq)("",!0)])])])])])),_:2},1024)))),128))])),_:1}),(0,l.Wm)(f,{style:{padding:"10px","text-align":"right"}},{default:(0,l.w5)((()=>[(0,l.Wm)(h,{circle:"",icon:"el-icon-refresh",onClick:o.refresh},null,8,["onClick"])])),_:1})])),_:1})),[[v,s.loading]])}var tt={data(){return{loading:!1,tasks:[]}},mounted(){this.getData()},methods:{async getData(){this.loading=!0;var e=await this.$http.get("tasks");this.tasks=e.data,this.loading=!1},refresh(){this.getData()},download(e){let t=document.createElement("a");t.style="display: none",t.target="_blank",t.href=e.result,document.body.appendChild(t),t.click(),document.body.removeChild(t)}}};const it=(0,ne.Z)(tt,[["render",et],["__scopeId","data-v-3102f840"]]);var lt=it,at={components:{search:Se,tasks:lt},data(){return{username:"",avatar:"",searchVisible:!1,tasksVisible:!1,msg:!1,msgList:[{id:1,type:"user",avatar:"img/avatar.jpg",title:"Skuya",describe:"如果喜欢就点个星星支持一下哦",link:"",time:"5分钟前"},{id:2,type:"user",avatar:"img/avatar2.gif",title:"Lolowan",describe:"点进去Gitee获取最新开源版本",link:"",time:"14分钟前"},{id:3,type:"system",avatar:"img/logo.png",title:"感谢登录Admin",describe:"Vue 3.0 + Vue-Router 4.0 + ElementPlus + Axios 后台管理系统。",link:"",time:"2020年7月24日"}]}},created(){var e=this.$tool.data.get("user");this.username=e.username,this.avatar=e.avatar},methods:{handleUser(e){"userinfo"==e&&this.$router.push({path:"/user/index/info"}),"cmd"==e&&this.$router.push({path:"/cmd"}),"clearCache"==e&&this.$confirm("清除缓存会将系统初始化,包括登录状态、主题、语言设置等,是否继续?","提示",{type:"info"}).then((()=>{const e=this.$loading();this.$tool.data.clear(),this.$router.replace({path:"/login",query:{redirect:this.$route.fullPath}}),setTimeout((()=>{e.close(),location.reload()}),1e3)})).catch((()=>{})),"outLogin"==e&&this.$confirm("确认是否退出当前用户?","提示",{type:"warning",confirmButtonText:"退出",confirmButtonClass:"el-button--danger"}).then((()=>{this.$router.replace({path:"/login",query:{redirect:this.$route.fullPath}})})).catch((()=>{}))},screen(){var e=document.documentElement;this.$tool.screen(e)},showMsg(){this.msg=!0},markRead(){this.msgList=[]},search(){this.searchVisible=!0},tasks(){this.tasksVisible=!0}}};const nt=(0,ne.Z)(at,[["render",Ie],["__scopeId","data-v-4c73622a"]]);var st=nt;function ot(e,t,i,a,n,s){const o=(0,l.up)("el-switch"),u=(0,l.up)("el-form-item"),r=(0,l.up)("el-option"),d=(0,l.up)("el-select"),m=(0,l.up)("el-divider"),c=(0,l.up)("el-color-picker"),h=(0,l.up)("el-form");return(0,l.wg)(),(0,l.j4)(h,{ref:"form","label-width":"120px","label-position":"left",style:{padding:"0 20px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{label:e.$t("user.nightmode")},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{modelValue:n.dark,"onUpdate:modelValue":t[0]||(t[0]=e=>n.dark=e)},null,8,["modelValue"])])),_:1},8,["label"]),(0,l.Wm)(u,{label:e.$t("user.language")},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{modelValue:n.lang,"onUpdate:modelValue":t[1]||(t[1]=e=>n.lang=e)},{default:(0,l.w5)((()=>[(0,l.Wm)(r,{label:"简体中文",value:"zh-cn"}),(0,l.Wm)(r,{label:"English",value:"en"})])),_:1},8,["modelValue"])])),_:1},8,["label"]),(0,l.Wm)(m),(0,l.Wm)(u,{label:"主题颜色"},{default:(0,l.w5)((()=>[(0,l.Wm)(c,{modelValue:n.colorPrimary,"onUpdate:modelValue":t[2]||(t[2]=e=>n.colorPrimary=e),predefine:n.colorList},{default:(0,l.w5)((()=>[(0,l.Uk)(">")])),_:1},8,["modelValue","predefine"])])),_:1}),(0,l.Wm)(m),(0,l.Wm)(u,{label:"框架布局"},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{modelValue:n.layout,"onUpdate:modelValue":t[3]||(t[3]=e=>n.layout=e),placeholder:"请选择"},{default:(0,l.w5)((()=>[(0,l.Wm)(r,{label:"默认",value:"default"}),(0,l.Wm)(r,{label:"通栏",value:"header"}),(0,l.Wm)(r,{label:"经典",value:"menu"}),(0,l.Wm)(r,{label:"功能坞",value:"dock"})])),_:1},8,["modelValue"])])),_:1}),(0,l.Wm)(u,{label:"折叠菜单"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{modelValue:n.menuIsCollapse,"onUpdate:modelValue":t[4]||(t[4]=e=>n.menuIsCollapse=e)},null,8,["modelValue"])])),_:1}),(0,l.Wm)(u,{label:"标签栏"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{modelValue:n.layoutTags,"onUpdate:modelValue":t[5]||(t[5]=e=>n.layoutTags=e)},null,8,["modelValue"])])),_:1}),(0,l.Wm)(m)])),_:1},512)}var ut=i(3111),rt={data(){return{layout:this.$store.state.global.layout,menuIsCollapse:this.$store.state.global.menuIsCollapse,layoutTags:this.$store.state.global.layoutTags,lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1,colorList:["#409EFF","#009688","#536dfe","#ff5c93","#c62f2f","#fd726d"],colorPrimary:this.$tool.data.get("APP_COLOR")||this.$config.COLOR||"#409EFF"}},watch:{layout(e){this.$store.commit("SET_layout",e),this.$tool.data.set("layout",e)},menuIsCollapse(){this.$store.commit("TOGGLE_menuIsCollapse")},layoutTags(){this.$store.commit("TOGGLE_layoutTags")},dark(e){e?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",e)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))},lang(e){this.$i18n.locale=e,this.$tool.data.set("APP_LANG",e)},colorPrimary(e){e||(e="#409EFF",this.colorPrimary="#409EFF"),document.documentElement.style.setProperty("--el-color-primary",e);for(let t=1;t<=9;t++)document.documentElement.style.setProperty(`--el-color-primary-light-${t}`,ut.Z.lighten(e,t/10));for(let t=1;t<=9;t++)document.documentElement.style.setProperty(`--el-color-primary-dark-${t}`,ut.Z.darken(e,t/10));this.$tool.data.set("APP_COLOR",e)}}};const dt=(0,ne.Z)(rt,[["render",ot]]);var mt=dt;const ct={class:"iframe-pages"},ht=["src"];function pt(e,t,i,a,s,o){return(0,l.wy)(((0,l.wg)(),(0,l.iD)("div",ct,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.iframeList,(t=>(0,l.wy)(((0,l.wg)(),(0,l.iD)("iframe",{key:t.meta.url,src:o.url(t.meta.url),frameborder:"0"},"\n\t\t\t\n\t\t",8,ht)),[[n.F8,e.$route.meta.url==t.meta.url]]))),128))],512)),[[n.F8,"iframe"==e.$route.meta.type]])}var gt={data(){return{}},watch:{$route(e){this.push(e)}},created(){this.push(this.$route)},computed:{iframeList(){return this.$store.state.iframe.iframeList},ismobile(){return this.$store.state.global.ismobile},layoutTags(){return this.$store.state.global.layoutTags}},mounted(){},methods:{url(e){let t=this.$tool.cookie.get(this.$config.SESSIONNAME);return-1===e.indexOf("?")?e+="?"+this.$config.TOKEN_NAME+"="+t:e+="&"+this.$config.TOKEN_NAME+"="+t,e},push(e){"iframe"==e.meta.type?(e.meta.maximize&&document.getElementById("app").classList.add("main-maximize"),this.ismobile||!this.layoutTags?this.$store.commit("setIframeList",e):this.$store.commit("pushIframeList",e)):!this.ismobile&&this.layoutTags||this.$store.commit("clearIframeList")}}};const ft=(0,ne.Z)(gt,[["render",pt],["__scopeId","data-v-3a9537e6"]]);var wt=ft,yt={render(){},data(){return{logoutCount:this.$tool.data.get("AUTO_EXIT")}},mounted(){this.logoutCount&&(this.setNewAutoExitTime(),document.onclick=()=>{this.setNewAutoExitTime()},document.onmousemove=()=>{this.setNewAutoExitTime()},document.onkeydown=()=>{this.setNewAutoExitTime()},document.onscroll=()=>{this.setNewAutoExitTime()},window.autoExitTimer=window.setInterval(this.autoExitfun,1e3))},unmounted(){this.logoutCount&&(clearInterval(window.autoExitTimer),window.autoExitTimer=null)},methods:{setNewAutoExitTime(){window.autoExitTime=(new Date).getTime()},autoExitfun(){(new Date).getTime()-window.autoExitTime>60*this.logoutCount*1e3&&(clearInterval(window.autoExitTimer),window.autoExitTimer=null,this.$router.replace({path:"/login"}),this.$alert("用户长时间无操作,为保证账户安全,系统已自动登出。","提示",{type:"warning",center:!0,roundButton:!0}))}}},vt={name:"index",components:{SideM:de,Topbar:ve,Tags:Ee,NavMenu:oe,userbar:st,setting:mt,iframeView:wt,autoExit:yt},data(){return{settingDialog:!1,menu:[],nextMenu:[],pmenu:{},active:"",appLogo:""}},computed:{ismobile(){return this.$store.state.global.ismobile},layout(){return this.$store.state.global.layout},layoutHeader(){return this.$store.state.global.layoutHeader},layoutTags(){return this.$store.state.global.layoutTags},menuIsCollapse(){return this.$store.state.global.menuIsCollapse}},created(){this.appLogo=this.$tool.data.get("appLogo")||this.$config.APP_LOGO||K,this.onLayoutResize(),window.addEventListener("resize",this.onLayoutResize);var e=this.$router.x_getMenu();this.menu=this.filterUrl(e),this.showThis()},watch:{$route(){this.showThis()},layout:{handler(e){document.body.setAttribute("data-layout",e)},immediate:!0}},methods:{openSetting(){this.settingDialog=!0},onLayoutResize(){this.$store.commit("SET_ismobile",document.body.clientWidth<992)},showThis(){this.pmenu=this.$route.meta.breadcrumb?this.$route.meta.breadcrumb[0]:{},this.nextMenu=this.filterUrl(this.pmenu.children),this.$nextTick((()=>{this.active=this.$route.meta.active||this.$route.fullPath}))},showMenu(e){this.pmenu=e,this.nextMenu=this.filterUrl(e.children),e.children&&0!=e.children.length||"iframe"!=e.meta.type&&!e.component?e.children.length>0&&this.getchildren(e.children[0]):this.$router.push({path:e.path})},getchildren(e){if(e&&e.children&&e.children.length>0)return this.getchildren(e.children[0]);this.$router.push({path:e.path})},filterUrl(e){var t=[];return e&&e.forEach((e=>{if(e.meta=e.meta?e.meta:{},e.meta.hidden||"button"==e.meta.type)return!1;"iframe"==e.meta.type&&(e.path=`/i/${e.name}`),e.children&&e.children.length>0&&(e.children=this.filterUrl(e.children)),t.push(e)})),t},exitMaximize(){document.getElementById("app").classList.remove("main-maximize")}}};const _t=(0,ne.Z)(vt,[["render",G]]);var kt=_t}}]);