vue-admin-beautiful/static/js/vab-layouts.ed833a95.js
2022-02-26 00:27:18 +08:00

7 lines
17 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
* build: vue-admin-better
* vue-admin-beautiful.com
* https://gitee.com/chu1204505056/vue-admin-better
* time: 2022-2-26 00:26:40
*/
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["vab-layouts"],{"0a76":function(e,t,a){},"1e68":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-bar-container"},[a("el-row",{attrs:{gutter:15}},[a("el-col",{attrs:{xs:4,sm:12,md:12,lg:12,xl:12}},[a("div",{staticClass:"left-panel"},[a("i",{staticClass:"fold-unfold",class:e.collapse?"el-icon-s-unfold":"el-icon-s-fold",attrs:{title:e.collapse?"展开":"收起"},on:{click:e.handleCollapse}}),a("vab-breadcrumb",{staticClass:"hidden-xs-only"})],1)]),a("el-col",{attrs:{xs:20,sm:12,md:12,lg:12,xl:12}},[a("div",{staticClass:"right-panel"},[a("vab-error-log"),a("vab-full-screen-bar",{on:{refresh:e.refreshRoute}}),a("vab-theme-bar",{staticClass:"hidden-xs-only"}),a("vab-icon",{attrs:{title:"重载所有路由",pulse:e.pulse,icon:["fas","redo"]},on:{click:e.refreshRoute}}),a("vab-avatar")],1)])],1)],1)},i=[],s=a("febe"),r=a("597f"),o=(a("e186"),a("7736")),l={name:"VabNavBar",data:function(){return{pulse:!1}},computed:Object(r["a"])({},Object(o["c"])({collapse:"settings/collapse",visitedRoutes:"tabsBar/visitedRoutes",device:"settings/device",routes:"routes/routes"})),methods:Object(r["a"])(Object(r["a"])({},Object(o["b"])({changeCollapse:"settings/changeCollapse"})),{},{handleCollapse:function(){this.changeCollapse()},refreshRoute:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$baseEventBus.$emit("reload-router-view"),e.pulse=!0,setTimeout((function(){e.pulse=!1}),1e3);case 3:case"end":return t.stop()}}),t)})))()}})},c=l,u=(a("9300"),a("cba8")),d=Object(u["a"])(c,n,i,!1,null,"63690af4",null);t["default"]=d.exports},"397a":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.routerView?a("div",{staticClass:"app-main-container"},[a("vab-github-corner"),a("transition",{attrs:{mode:"out-in",name:"fade-transform"}},[a("keep-alive",{attrs:{include:e.cachedRoutes,max:e.keepAliveMaxNum}},[a("router-view",{key:e.key,staticClass:"app-main-height"})],1)],1),a("footer",{directives:[{name:"show",rawName:"v-show",value:e.footerCopyright,expression:"footerCopyright"}],staticClass:"footer-copyright"},[e._v(" Copyright "),a("vab-icon",{attrs:{icon:["fas","copyright"]}}),e._v(" vue-admin-better 开源免费版 "+e._s(e.fullYear)+" ")],1)],1):e._e()},i=[],s=a("597f"),r=(a("89a8"),a("1a91"),a("10dd"),a("7736")),o=a("f121"),l={name:"VabAppMain",data:function(){return{show:!1,fullYear:(new Date).getFullYear(),copyright:o["copyright"],title:o["title"],keepAliveMaxNum:o["keepAliveMaxNum"],routerView:!0,footerCopyright:o["footerCopyright"]}},computed:Object(s["a"])(Object(s["a"])({},Object(r["c"])({visitedRoutes:"tabsBar/visitedRoutes",device:"settings/device"})),{},{cachedRoutes:function(){var e=[];return this.visitedRoutes.forEach((function(t){t.meta.noKeepAlive||e.push(t.name)})),e},key:function(){return this.$route.path}}),watch:{$route:{handler:function(e){"mobile"===this.device&&this.foldSideBar()},immediate:!0}},created:function(){var e=this;this.$baseEventBus.$on("reload-router-view",(function(){e.routerView=!1,e.$nextTick((function(){e.routerView=!0}))}))},mounted:function(){},methods:Object(s["a"])({},Object(r["b"])({foldSideBar:"settings/foldSideBar"}))},c=l,u=(a("b551"),a("cba8")),d=Object(u["a"])(c,n,i,!1,null,"07113694",null);t["default"]=d.exports},"3ab0":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vue-admin-beautiful-wrapper",class:e.classObj},["horizontal"===e.layout?a("div",{staticClass:"layout-container-horizontal",class:{fixed:"fixed"===e.header,"no-tabs-bar":"false"===e.tabsBar||!1===e.tabsBar}},[a("div",{class:"fixed"===e.header?"fixed-header":""},[a("vab-top-bar"),"true"===e.tabsBar||!0===e.tabsBar?a("div",{class:{"tag-view-show":e.tabsBar}},[a("div",{staticClass:"vab-main"},[a("vab-tabs-bar")],1)]):e._e()],1),a("div",{staticClass:"vab-main main-padding"},[a("vab-ad"),a("vab-app-main")],1)]):a("div",{staticClass:"layout-container-vertical",class:{fixed:"fixed"===e.header,"no-tabs-bar":"false"===e.tabsBar||!1===e.tabsBar}},["mobile"===e.device&&!1===e.collapse?a("div",{staticClass:"mask",on:{click:e.handleFoldSideBar}}):e._e(),a("vab-side-bar"),a("div",{staticClass:"vab-main",class:e.collapse?"is-collapse-main":""},[a("div",{class:"fixed"===e.header?"fixed-header":""},[a("vab-nav-bar"),"true"===e.tabsBar||!0===e.tabsBar?a("vab-tabs-bar"):e._e()],1),a("vab-ad"),a("vab-app-main")],1)],1),a("el-backtop")],1)},i=[],s=a("597f"),r=(a("2788"),a("aa08"),a("7736")),o=a("f121"),l={name:"Layout",data:function(){return{oldLayout:""}},computed:Object(s["a"])(Object(s["a"])({},Object(r["c"])({layout:"settings/layout",tabsBar:"settings/tabsBar",collapse:"settings/collapse",header:"settings/header",device:"settings/device"})),{},{classObj:function(){return{mobile:"mobile"===this.device}}}),beforeMount:function(){window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)},mounted:function(){var e=this;this.oldLayout=this.layout;var t=navigator.userAgent;t.includes("Juejin")&&this.$baseAlert("vue-admin-beautiful不支持在掘金内置浏览器演示请手动复制以下地址到浏览器中查看http://mpfhrd48.sanxing.uz7.cn/vue-admin-beautiful");var a=this.handleIsMobile();a?(a?this.$store.dispatch("settings/changeLayout","vertical"):this.$store.dispatch("settings/changeLayout",this.oldLayout),this.$store.dispatch("settings/toggleDevice","mobile"),setTimeout((function(){e.$store.dispatch("settings/foldSideBar")}),2e3)):this.$store.dispatch("settings/openSideBar"),this.$nextTick((function(){window.addEventListener("storage",(function(e){e.key!==o["tokenName"]&&null!==e.key||window.location.reload(),e.key===o["tokenName"]&&null===e.value&&window.location.reload()}),!1)}))},methods:Object(s["a"])(Object(s["a"])({},Object(r["b"])({handleFoldSideBar:"settings/foldSideBar"})),{},{handleIsMobile:function(){return document.body.getBoundingClientRect().width-1<992},handleResize:function(){if(!document.hidden){var e=this.handleIsMobile();e?this.$store.dispatch("settings/changeLayout","vertical"):this.$store.dispatch("settings/changeLayout",this.oldLayout),this.$store.dispatch("settings/toggleDevice",e?"mobile":"desktop")}}})},c=l,u=(a("d849"),a("cba8")),d=Object(u["a"])(c,n,i,!1,null,"a1e859d6",null);t["default"]=d.exports},"4ad7":function(e,t,a){},5216:function(e,t,a){},"5c63":function(e,t,a){},"5f5f":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("router-view")},i=[],s=a("cba8"),r={},o=Object(s["a"])(r,n,i,!1,null,null,null);t["default"]=o.exports},"5f9d":function(e,t,a){},6997:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-breadcrumb",{staticClass:"breadcrumb-container",attrs:{separator:">"}},e._l(e.list,(function(t){return a("el-breadcrumb-item",{key:t.path},[e._v(" "+e._s(t.meta.title)+" ")])})),1)},i=[],s=(a("5a05"),a("89a8"),a("10dd"),{name:"VabBreadcrumb",data:function(){return{list:this.getBreadcrumb()}},watch:{$route:function(){this.list=this.getBreadcrumb()}},methods:{getBreadcrumb:function(){return this.$route.matched.filter((function(e){return e.name&&e.meta.title}))}}}),r=s,o=(a("8a85"),a("cba8")),l=Object(o["a"])(r,n,i,!1,null,"2b4cacba",null);t["default"]=l.exports},"6b2b":function(e,t,a){"use strict";a("5c63")},"72d1":function(e,t,a){"use strict";a("76cd")},"76cd":function(e,t,a){},"7f9a":function(e,t,a){"use strict";a("5216")},"803c":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.themeBar?a("span",[a("vab-icon",{attrs:{title:"主题配置",icon:["fas","palette"]},on:{click:e.handleOpenThemeBar}}),a("div",{staticClass:"theme-bar-setting"},[a("div",{on:{click:e.handleOpenThemeBar}},[a("vab-icon",{attrs:{icon:["fas","palette"]}}),a("p",[e._v("主题配置")])],1),a("div",{on:{click:e.handleGetCode}},[a("vab-icon",{attrs:{icon:["fas","laptop-code"]}}),a("p",[e._v("拷贝源码")])],1)]),a("el-drawer",{attrs:{title:"主题配置",visible:e.drawerVisible,direction:"rtl","append-to-body":"",size:"470px"},on:{"update:visible":function(t){e.drawerVisible=t}}},[a("el-scrollbar",{staticStyle:{height:"94vh",overflow:"hidden"}},[a("div",{staticClass:"el-drawer__body"},[a("el-form",{ref:"form",attrs:{model:e.theme,"label-position":"top"}},[a("el-form-item",{attrs:{label:"主题"}},[a("el-radio-group",{model:{value:e.theme.name,callback:function(t){e.$set(e.theme,"name",t)},expression:"theme.name"}},[a("el-radio-button",{attrs:{label:"default"}},[e._v("默认")]),a("el-radio-button",{attrs:{label:"green"}},[e._v("绿荫草场")]),a("el-radio-button",{attrs:{label:"glory"}},[e._v("荣耀典藏")])],1)],1),a("el-form-item",{attrs:{label:"布局"}},[a("el-radio-group",{model:{value:e.theme.layout,callback:function(t){e.$set(e.theme,"layout",t)},expression:"theme.layout"}},[a("el-radio-button",{attrs:{label:"vertical"}},[e._v("纵向布局")]),a("el-radio-button",{attrs:{label:"horizontal"}},[e._v("横向布局")])],1)],1),a("el-form-item",{attrs:{label:"头部"}},[a("el-radio-group",{model:{value:e.theme.header,callback:function(t){e.$set(e.theme,"header",t)},expression:"theme.header"}},[a("el-radio-button",{attrs:{label:"fixed"}},[e._v("固定头部")]),a("el-radio-button",{attrs:{label:"noFixed"}},[e._v("不固定头部")])],1)],1),a("el-form-item",{attrs:{label:"多标签"}},[a("el-radio-group",{model:{value:e.theme.tabsBar,callback:function(t){e.$set(e.theme,"tabsBar",t)},expression:"theme.tabsBar"}},[a("el-radio-button",{attrs:{label:"true"}},[e._v("开启")]),a("el-radio-button",{attrs:{label:"false"}},[e._v("不开启")])],1)],1),a("el-form-item",{attrs:{label:"操作"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.handleSaveTheme}},[e._v(" 保存 ")]),a("el-button",{attrs:{type:""},on:{click:function(t){e.drawerVisible=!1}}},[e._v("取消")])],1)],1)],1)])],1)],1):e._e()},i=[],s=a("597f"),r=(a("10dd"),a("b3d9"),a("7736")),o=a("f121"),l={name:"VabThemeBar",data:function(){return{drawerVisible:!1,theme:{name:"default",layout:"",header:"fixed",tabsBar:""}}},computed:Object(s["a"])({},Object(r["c"])({layout:"settings/layout",header:"settings/header",tabsBar:"settings/tabsBar",themeBar:"settings/themeBar"})),created:function(){var e=this;this.$baseEventBus.$on("theme",(function(){e.handleOpenThemeBar()}));var t=localStorage.getItem("vue-admin-beautiful-theme");null!==t?(this.theme=JSON.parse(t),this.handleSetTheme()):(this.theme.layout=this.layout,this.theme.header=this.header,this.theme.tabsBar=this.tabsBar)},methods:Object(s["a"])(Object(s["a"])({},Object(r["b"])({changeLayout:"settings/changeLayout",changeHeader:"settings/changeHeader",changeTabsBar:"settings/changeTabsBar"})),{},{handleIsMobile:function(){return document.body.getBoundingClientRect().width-1<992},handleOpenThemeBar:function(){this.drawerVisible=!0},handleSetTheme:function(){var e=this.theme,t=e.name,a=e.layout,n=e.header,i=e.tabsBar;localStorage.setItem("vue-admin-beautiful-theme",'{\n "name":"'.concat(t,'",\n "layout":"').concat(a,'",\n "header":"').concat(n,'",\n "tabsBar":"').concat(i,'"\n }')),this.handleIsMobile()||this.changeLayout(a),this.changeHeader(n),this.changeTabsBar(i),document.getElementsByTagName("body")[0].className="vue-admin-beautiful-theme-".concat(t),this.drawerVisible=!1},handleSaveTheme:function(){this.handleSetTheme()},handleSetDfaultTheme:function(){var e=this.theme.name;document.getElementsByTagName("body")[0].classList.remove("vue-admin-beautiful-theme-".concat(e)),localStorage.removeItem("vue-admin-beautiful-theme"),this.$refs["form"].resetFields(),Object.assign(this.$data,this.$options.data()),this.changeHeader(o["layout"]),this.theme.name="default",this.theme.layout=this.layout,this.theme.header=this.header,this.theme.tabsBar=this.tabsBar,this.drawerVisible=!1,location.reload()},handleGetCode:function(){var e="https://github.com/chuzhixin/vue-admin-beautiful/tree/master/src/views",t=this.$route.path+"/index.vue";"/vab/menu1/menu1-1/menu1-1-1/index.vue"===t&&(t="/vab/nested/menu1/menu1-1/menu1-1-1/index.vue"),"/vab/icon/awesomeIcon/index.vue"===t&&(t="/vab/icon/index.vue"),"/vab/icon/remixIcon/index.vue"===t&&(t="/vab/icon/remixIcon.vue"),"/vab/icon/colorfulIcon/index.vue"===t&&(t="/vab/icon/colorfulIcon.vue"),"/vab/table/comprehensiveTable/index.vue"===t&&(t="/vab/table/index.vue"),"/vab/table/inlineEditTable/index.vue"===t&&(t="/vab/table/inlineEditTable.vue"),window.open(e+t)}})},c=l,u=(a("6b2b"),a("ad67"),a("cba8")),d=Object(u["a"])(c,n,i,!1,null,"014800e2",null);t["default"]=d.exports},"84c8":function(e,t,a){"use strict";a.r(t);a("89a8"),a("1a91"),a("fe35"),a("10dd"),a("acc0");var n=a("2c46"),i=a("f192");i.keys().forEach((function(e){var t=i(e),a=t.default.name;n["default"].component(a,t.default||t)}));var s=a("e114");s.keys().forEach((function(e){var t=s(e),a=t.default.name;n["default"].component(a,t.default||t)}));var r=a("1654");r.keys().forEach((function(e){a("e8cc")("./".concat(e.slice(2)))}))},"8a85":function(e,t,a){"use strict";a("5f9d")},9300:function(e,t,a){"use strict";a("a9d7")},"9b65":function(e,t,a){"use strict";a("4ad7")},a9d7:function(e,t,a){},ab5f:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:"logo-container-"+e.layout},[a("router-link",{attrs:{to:"/"}},[e.logo?a("vab-remix-icon",{staticClass:"logo",attrs:{"icon-class":e.logo}}):e._e(),a("span",{staticClass:"title",class:{"hidden-xs-only":"horizontal"===e.layout},attrs:{title:e.title}},[e._v(" "+e._s(e.title)+" ")])],1)],1)},i=[],s=a("597f"),r=a("7736"),o={name:"VabLogo",data:function(){return{title:this.$baseTitle}},computed:Object(s["a"])({},Object(r["c"])({logo:"settings/logo",layout:"settings/layout"}))},l=o,c=(a("9b65"),a("cba8")),u=Object(c["a"])(l,n,i,!1,null,"9789ca38",null);t["default"]=u.exports},abf6:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vab-ad"},[e.adList?a("el-carousel",{attrs:{height:"30px",direction:"vertical",autoplay:!0,interval:3e3,"indicator-position":"none"}},e._l(e.adList,(function(t,n){return a("el-carousel-item",{key:n},[a("el-tag",{attrs:{type:"warning"}},[e._v("Ad")]),a("a",{attrs:{target:"_blank",href:t.url}},[e._v(e._s(t.title))])],1)})),1):e._e()],1)},i=[],s=a("febe"),r=(a("e186"),a("ff02")),o={name:"VabAd",data:function(){return{nodeEnv:"production",adList:[]}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(r["getList"])();case 2:a=t.sent,n=a.data,e.adList=n;case 5:case"end":return t.stop()}}),t)})))()}}},l=o,c=(a("7f9a"),a("cba8")),u=Object(c["a"])(l,n,i,!1,null,"219934e2",null);t["default"]=u.exports},ad67:function(e,t,a){"use strict";a("cd54")},b551:function(e,t,a){"use strict";a("0a76")},cbe4:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dropdown",{on:{command:e.handleCommand}},[a("span",{staticClass:"avatar-dropdown"},[a("img",{staticClass:"user-avatar",attrs:{src:e.avatar,alt:""}}),a("div",{staticClass:"user-name"},[e._v(" "+e._s(e.username)+" "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"github"}},[e._v("github地址")]),a("el-dropdown-item",{attrs:{command:"gitee",divided:""}},[e._v("码云地址")]),a("el-dropdown-item",{attrs:{command:"pro",divided:""}},[e._v("pro付费版地址")]),a("el-dropdown-item",{attrs:{command:"plus",divided:""}},[e._v("plus付费版地址")]),a("el-dropdown-item",{attrs:{command:"logout",divided:""}},[e._v("退出登录")])],1)],1)},i=[],s=a("febe"),r=a("597f"),o=(a("e186"),a("7736")),l=a("f121"),c={name:"VabAvatar",computed:Object(r["a"])({},Object(o["c"])({avatar:"user/avatar",username:"user/username"})),methods:{handleCommand:function(e){switch(e){case"logout":this.logout();break;case"personalCenter":this.personalCenter();break;case"github":window.open("https://github.com/chuzhixin/vue-admin-beautiful");break;case"gitee":window.open("https://gitee.com/chu1204505056/vue-admin-beautiful");break;case"pro":window.open("https://chu1204505056.gitee.io/admin-pro/?hmsr=homeAd&hmpl=&hmcu=&hmkw=&hmci=");break;case"plus":window.open("https://chu1204505056.gitee.io/admin-plus/?hmsr=homeAd&hmpl=&hmcu=&hmkw=&hmci=")}},personalCenter:function(){this.$router.push("/personalCenter/personalCenter")},logout:function(){var e=this;this.$baseConfirm("您确定要退出"+this.$baseTitle+"吗?",null,Object(s["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:l["recordRoute"]?(a=e.$route.fullPath,e.$router.push("/login?redirect=".concat(a))):e.$router.push("/login");case 3:case"end":return t.stop()}}),t)}))))}}},u=c,d=(a("72d1"),a("cba8")),h=Object(d["a"])(u,n,i,!1,null,"a36df994",null);t["default"]=h.exports},cd54:function(e,t,a){e.exports={"menu-color":"rgba(255,255,255,.95)","menu-color-active":"rgba(255,255,255,.95)","menu-background":"#282c34"}},d849:function(e,t,a){"use strict";a("f653")},f653:function(e,t,a){}}]);