diff --git a/dist/index.html b/dist/index.html index 7c46228..a4e34a0 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -嘉洛马 — 文件后台管理系统
\ No newline at end of file +嘉洛马 — 文件后台管理系统
\ No newline at end of file diff --git a/dist/static/css/app.e3ce4bc6.css b/dist/static/css/app.0e0385f0.css similarity index 85% rename from dist/static/css/app.e3ce4bc6.css rename to dist/static/css/app.0e0385f0.css index 60b7533..4c0bf7b 100644 --- a/dist/static/css/app.e3ce4bc6.css +++ b/dist/static/css/app.0e0385f0.css @@ -1 +1 @@ -.fade-enter-active,.fade-leave-active{-webkit-transition:opacity .28s;transition:opacity .28s}.fade-enter,.fade-leave-active{opacity:0}.fade-transform-enter-active,.fade-transform-leave-active{-webkit-transition:all .5s;transition:all .5s}.fade-transform-enter{opacity:0;-webkit-transform:translateX(-30px);transform:translateX(-30px)}.fade-transform-leave-to{opacity:0;-webkit-transform:translateX(30px);transform:translateX(30px)}.breadcrumb-enter-active,.breadcrumb-leave-active{-webkit-transition:all .5s;transition:all .5s}.breadcrumb-enter,.breadcrumb-leave-active{opacity:0;-webkit-transform:translateX(20px);transform:translateX(20px)}.breadcrumb-move{-webkit-transition:all .5s;transition:all .5s}.breadcrumb-leave-active{position:absolute}.el-breadcrumb__inner,.el-breadcrumb__inner a{font-weight:400!important}.el-upload input[type=file]{display:none!important}.el-upload__input{display:none}.el-dialog{-webkit-transform:none;transform:none;left:0;position:relative;margin:0 auto}.upload-container .el-upload{width:100%}.upload-container .el-upload .el-upload-dragger{width:100%;height:200px}.el-dropdown-menu a{display:block}.el-range-separator{-webkit-box-sizing:content-box;box-sizing:content-box}.el-submenu__title i{color:#fff}#app .main-container{min-height:100%;-webkit-transition:margin-left .28s;transition:margin-left .28s;margin-left:210px;position:relative}#app .sidebar-container{-webkit-transition:width .28s;transition:width .28s;width:210px!important;background-color:#2b3245;height:100%;position:fixed;font-size:0;top:91px;bottom:0;left:0;z-index:1888;overflow:hidden}#app .sidebar-container .el_submenu_link{width:76%;height:56px;z-index:100;position:absolute;left:0;top:0;bottom:0;right:10%}#app .sidebar-container .el_submenu_link:hover{background-color:rgba(0,0,0,.3)}#app .sidebar-container .horizontal-collapse-transition{-webkit-transition:width 0s ease-in-out,padding-left 0s ease-in-out,padding-right 0s ease-in-out;transition:width 0s ease-in-out,padding-left 0s ease-in-out,padding-right 0s ease-in-out}#app .sidebar-container .scrollbar-wrapper{overflow-x:hidden!important}#app .sidebar-container .el-scrollbar__view{padding-bottom:92px}#app .sidebar-container .el-scrollbar__bar.is-vertical{right:0}#app .sidebar-container .el-scrollbar{height:100%}#app .sidebar-container.has-logo .el-scrollbar{height:calc(100% - 50px)}#app .sidebar-container .is-horizontal{display:none}#app .sidebar-container a{display:inline-block;width:100%;overflow:hidden}#app .sidebar-container .svg-icon{margin-right:16px}#app .sidebar-container .sub-el-icon{margin-right:12px;margin-left:-2px}#app .sidebar-container .el-menu{border:none;height:100%;width:100%!important}#app .sidebar-container .el-menu>div{position:relative}#app .sidebar-container .is-active>.el-submenu__title{color:#f4f4f5!important}#app .sidebar-container .el-submenu .el-menu-item,#app .sidebar-container .nest-menu .el-submenu>.el-submenu__title{min-width:210px!important;background-color:#1f2d3d!important}#app .sidebar-container .el-submenu .el-menu-item:hover,#app .sidebar-container .nest-menu .el-submenu>.el-submenu__title:hover{background-color:#001528!important}#app .hideSidebar .sidebar-container{width:54px!important}#app .hideSidebar .main-container{margin-left:54px}#app .hideSidebar .submenu-title-noDropdown{padding:0!important;position:relative}#app .hideSidebar .submenu-title-noDropdown .el-tooltip{padding:0!important}#app .hideSidebar .submenu-title-noDropdown .el-tooltip .svg-icon{margin-left:20px}#app .hideSidebar .submenu-title-noDropdown .el-tooltip .sub-el-icon{margin-left:19px}#app .hideSidebar .el-submenu{overflow:hidden}#app .hideSidebar .el-submenu>.el-submenu__title{padding:0!important}#app .hideSidebar .el-submenu>.el-submenu__title .svg-icon{margin-left:20px}#app .hideSidebar .el-submenu>.el-submenu__title .sub-el-icon{margin-left:19px}#app .hideSidebar .el-submenu>.el-submenu__title .el-submenu__icon-arrow{display:none}#app .hideSidebar .el-menu--collapse .el-submenu>.el-submenu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}#app .el-menu--collapse .el-menu .el-submenu{min-width:210px!important}#app .mobile .main-container{margin-left:0}#app .mobile .sidebar-container{-webkit-transition:-webkit-transform .28s;transition:-webkit-transform .28s;transition:transform .28s;transition:transform .28s,-webkit-transform .28s;width:210px!important}#app .mobile.hideSidebar .sidebar-container{pointer-events:none;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transform:translate3d(-210px,0,0);transform:translate3d(-210px,0,0)}#app .withoutAnimation .main-container,#app .withoutAnimation .sidebar-container{-webkit-transition:none;transition:none}.el-menu--vertical>.el-menu .svg-icon{margin-right:16px}.el-menu--vertical>.el-menu .sub-el-icon{margin-right:12px;margin-left:-2px}.el-menu--vertical .el-menu-item:hover,.el-menu--vertical .nest-menu .el-submenu>.el-submenu__title:hover{background-color:#263445!important}.el-menu--vertical>.el-menu--popup{max-height:100vh;overflow-y:auto}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar-track-piece{background:#d3dce6}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar{width:6px}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar-thumb{background:#99a9bf;border-radius:20px}label{font-weight:700}html{-webkit-box-sizing:border-box;box-sizing:border-box}#app,html{height:100%}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}a:active,a:focus{outline:none}a,a:focus,a:hover{cursor:pointer;color:inherit;text-decoration:none}div:focus{outline:none}.clearfix:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.app-container{padding:20px}.app-breadcrumb.el-breadcrumb[data-v-59b332f4]{display:inline-block;font-size:14px;line-height:50px;margin-left:8px}.app-breadcrumb.el-breadcrumb .no-redirect[data-v-59b332f4]{color:#97a8be;cursor:text}.hamburger[data-v-49e15297]{display:inline-block;vertical-align:middle;width:20px;height:20px}.hamburger.is-active[data-v-49e15297]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.navbar[data-v-bfe8efa0]{height:50px;overflow:hidden;position:relative;background:#fff;-webkit-box-shadow:0 1px 4px rgba(0,21,41,.08);box-shadow:0 1px 4px rgba(0,21,41,.08)}.navbar .hamburger-container[data-v-bfe8efa0]{line-height:46px;height:100%;float:left;cursor:pointer;-webkit-transition:background .3s;transition:background .3s;-webkit-tap-highlight-color:transparent}.navbar .hamburger-container[data-v-bfe8efa0]:hover{background:rgba(0,0,0,.025)}.navbar .breadcrumb-container[data-v-bfe8efa0]{float:left}.navbar .right-menu[data-v-bfe8efa0]{float:right;height:100%;line-height:50px}.navbar .right-menu[data-v-bfe8efa0]:focus{outline:none}.navbar .right-menu .right-menu-item[data-v-bfe8efa0]{display:inline-block;padding:0 8px;height:100%;font-size:18px;color:#5a5e66;vertical-align:text-bottom}.navbar .right-menu .right-menu-item.hover-effect[data-v-bfe8efa0]{cursor:pointer;-webkit-transition:background .3s;transition:background .3s}.navbar .right-menu .right-menu-item.hover-effect[data-v-bfe8efa0]:hover{background:rgba(0,0,0,.025)}.navbar .right-menu .avatar-container[data-v-bfe8efa0]{margin-right:30px}.navbar .right-menu .avatar-container .avatar-wrapper[data-v-bfe8efa0]{margin-top:5px;position:relative}.navbar .right-menu .avatar-container .avatar-wrapper .user-avatar[data-v-bfe8efa0]{cursor:pointer;width:40px;height:40px;border-radius:10px}.navbar .right-menu .avatar-container .avatar-wrapper .el-icon-caret-bottom[data-v-bfe8efa0]{cursor:pointer;position:absolute;right:-20px;top:25px;font-size:12px}.sidebarLogoFade-enter-active[data-v-39d3a2a9]{-webkit-transition:opacity 1.5s;transition:opacity 1.5s}.sidebarLogoFade-enter[data-v-39d3a2a9],.sidebarLogoFade-leave-to[data-v-39d3a2a9]{opacity:0}.sidebar-logo-container[data-v-39d3a2a9]{position:relative;width:100%;height:50px;line-height:50px;background:#2b2f3a;text-align:center;overflow:hidden}.sidebar-logo-container .sidebar-logo-link[data-v-39d3a2a9]{height:100%;width:100%}.sidebar-logo-container .sidebar-logo-link .sidebar-logo[data-v-39d3a2a9]{width:32px;height:32px;vertical-align:middle;margin-right:12px}.sidebar-logo-container .sidebar-logo-link .sidebar-title[data-v-39d3a2a9]{display:inline-block;margin:0;color:#fff;font-weight:600;line-height:50px;font-size:14px;font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;vertical-align:middle}.sidebar-logo-container.collapse .sidebar-logo[data-v-39d3a2a9]{margin-right:0}.sub-el-icon[data-v-18eeea00]{color:currentColor;width:1em;height:1em}.app-main[data-v-2c621124]{min-height:100%;width:100%;position:relative;overflow:hidden}.fixed-header+.app-main[data-v-2c621124]{padding-top:50px}.el-popup-parent--hidden .fixed-header{padding-right:15px}[data-v-0e0b7f70]:export{menuText:#bfcbd9;menuActiveText:#409eff;subMenuActiveText:#f4f4f5;menuBg:#2b3245;menuHover:#263445;subMenuBg:#1f2d3d;subMenuHover:#001528;sideBarWidth:210px}.toptitle[data-v-0e0b7f70]{color:#fff;height:91px;padding:0 6% 0 36px;z-index:1002;background-color:#2b3245;position:fixed;top:0;left:0;right:0;overflow:hidden}.toptitle .leftk[data-v-0e0b7f70]{float:left;margin-top:16px;height:60px}.toptitle .leftk>img[data-v-0e0b7f70]{vertical-align:middle;display:inline-block;max-width:100%;height:100%;background-color:#fff;border-radius:50%}.toptitle .leftk>i[data-v-0e0b7f70]{vertical-align:middle;color:#fff;font-size:30px;margin:6px 0 0 15px}.toptitle .rightk[data-v-0e0b7f70]{float:right;margin-top:24px;position:relative}.toptitle .erectline[data-v-0e0b7f70]{margin:0 18px;display:inline-block;vertical-align:middle;height:40px;width:1px;background-color:#414758}.app-wrapper[data-v-0e0b7f70]{position:relative;height:100%;width:100%}.app-wrapper[data-v-0e0b7f70]:after{content:"";display:table;clear:both}.app-wrapper.mobile.openSidebar[data-v-0e0b7f70]{position:fixed;top:0}.drawer-bg[data-v-0e0b7f70]{background:#000;opacity:.3;width:100%;top:0;height:100%;position:absolute;z-index:999}.fixed-header[data-v-0e0b7f70]{position:fixed;top:0;right:0;z-index:9;width:calc(100% - 210px);-webkit-transition:width .28s;transition:width .28s}.hideSidebar .fixed-header[data-v-0e0b7f70]{width:calc(100% - 54px)}.mobile .fixed-header[data-v-0e0b7f70]{width:100%}.content_main[data-v-0e0b7f70]{padding-top:91px}.svg-icon[data-v-f9f7fefc]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.svg-external-icon[data-v-f9f7fefc]{background-color:currentColor;-webkit-mask-size:cover!important;mask-size:cover!important;display:inline-block} \ No newline at end of file +.fade-enter-active,.fade-leave-active{-webkit-transition:opacity .28s;transition:opacity .28s}.fade-enter,.fade-leave-active{opacity:0}.fade-transform-enter-active,.fade-transform-leave-active{-webkit-transition:all .5s;transition:all .5s}.fade-transform-enter{opacity:0;-webkit-transform:translateX(-30px);transform:translateX(-30px)}.fade-transform-leave-to{opacity:0;-webkit-transform:translateX(30px);transform:translateX(30px)}.breadcrumb-enter-active,.breadcrumb-leave-active{-webkit-transition:all .5s;transition:all .5s}.breadcrumb-enter,.breadcrumb-leave-active{opacity:0;-webkit-transform:translateX(20px);transform:translateX(20px)}.breadcrumb-move{-webkit-transition:all .5s;transition:all .5s}.breadcrumb-leave-active{position:absolute}.el-breadcrumb__inner,.el-breadcrumb__inner a{font-weight:400!important}.el-upload input[type=file]{display:none!important}.el-upload__input{display:none}.el-dialog{-webkit-transform:none;transform:none;left:0;position:relative;margin:0 auto}.upload-container .el-upload{width:100%}.upload-container .el-upload .el-upload-dragger{width:100%;height:200px}.el-dropdown-menu a{display:block}.el-range-separator{-webkit-box-sizing:content-box;box-sizing:content-box}.el-submenu__title i{color:#fff}#app .main-container{min-height:100%;-webkit-transition:margin-left .28s;transition:margin-left .28s;margin-left:210px;position:relative}#app .sidebar-container{-webkit-transition:width .28s;transition:width .28s;width:210px!important;background-color:#2b3245;height:100%;position:fixed;font-size:0;top:91px;bottom:0;left:0;z-index:1888;overflow:hidden}#app .sidebar-container .el_submenu_link{width:76%;height:56px;z-index:100;position:absolute;left:0;top:0;bottom:0;right:10%}#app .sidebar-container .el_submenu_link:hover{background-color:rgba(0,0,0,.3)}#app .sidebar-container .horizontal-collapse-transition{-webkit-transition:width 0s ease-in-out,padding-left 0s ease-in-out,padding-right 0s ease-in-out;transition:width 0s ease-in-out,padding-left 0s ease-in-out,padding-right 0s ease-in-out}#app .sidebar-container .scrollbar-wrapper{overflow-x:hidden!important}#app .sidebar-container .el-scrollbar__view{padding-bottom:92px}#app .sidebar-container .el-scrollbar__bar.is-vertical{right:0}#app .sidebar-container .el-scrollbar{height:100%}#app .sidebar-container.has-logo .el-scrollbar{height:calc(100% - 50px)}#app .sidebar-container .is-horizontal{display:none}#app .sidebar-container a{display:inline-block;width:100%;overflow:hidden}#app .sidebar-container .svg-icon{margin-right:16px}#app .sidebar-container .sub-el-icon{margin-right:12px;margin-left:-2px}#app .sidebar-container .el-menu{border:none;height:100%;width:100%!important}#app .sidebar-container .el-menu>div{position:relative}#app .sidebar-container .is-active>.el-submenu__title{color:#f4f4f5!important}#app .sidebar-container .el-submenu .el-menu-item,#app .sidebar-container .nest-menu .el-submenu>.el-submenu__title{min-width:210px!important;background-color:#1f2d3d!important}#app .sidebar-container .el-submenu .el-menu-item:hover,#app .sidebar-container .nest-menu .el-submenu>.el-submenu__title:hover{background-color:#001528!important}#app .hideSidebar .sidebar-container{width:54px!important}#app .hideSidebar .main-container{margin-left:54px}#app .hideSidebar .submenu-title-noDropdown{padding:0!important;position:relative}#app .hideSidebar .submenu-title-noDropdown .el-tooltip{padding:0!important}#app .hideSidebar .submenu-title-noDropdown .el-tooltip .svg-icon{margin-left:20px}#app .hideSidebar .submenu-title-noDropdown .el-tooltip .sub-el-icon{margin-left:19px}#app .hideSidebar .el-submenu{overflow:hidden}#app .hideSidebar .el-submenu>.el-submenu__title{padding:0!important}#app .hideSidebar .el-submenu>.el-submenu__title .svg-icon{margin-left:20px}#app .hideSidebar .el-submenu>.el-submenu__title .sub-el-icon{margin-left:19px}#app .hideSidebar .el-submenu>.el-submenu__title .el-submenu__icon-arrow{display:none}#app .hideSidebar .el-menu--collapse .el-submenu>.el-submenu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}#app .el-menu--collapse .el-menu .el-submenu{min-width:210px!important}#app .mobile .main-container{margin-left:0}#app .mobile .sidebar-container{-webkit-transition:-webkit-transform .28s;transition:-webkit-transform .28s;transition:transform .28s;transition:transform .28s,-webkit-transform .28s;width:210px!important}#app .mobile.hideSidebar .sidebar-container{pointer-events:none;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transform:translate3d(-210px,0,0);transform:translate3d(-210px,0,0)}#app .withoutAnimation .main-container,#app .withoutAnimation .sidebar-container{-webkit-transition:none;transition:none}.el-menu--vertical>.el-menu .svg-icon{margin-right:16px}.el-menu--vertical>.el-menu .sub-el-icon{margin-right:12px;margin-left:-2px}.el-menu--vertical .el-menu-item:hover,.el-menu--vertical .nest-menu .el-submenu>.el-submenu__title:hover{background-color:#263445!important}.el-menu--vertical>.el-menu--popup{max-height:100vh;overflow-y:auto}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar-track-piece{background:#d3dce6}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar{width:6px}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar-thumb{background:#99a9bf;border-radius:20px}label{font-weight:700}html{-webkit-box-sizing:border-box;box-sizing:border-box}#app,html{height:100%}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}a:active,a:focus{outline:none}a,a:focus,a:hover{cursor:pointer;color:inherit;text-decoration:none}div:focus{outline:none}.clearfix:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.app-container{padding:20px}.app-breadcrumb.el-breadcrumb[data-v-59b332f4]{display:inline-block;font-size:14px;line-height:50px;margin-left:8px}.app-breadcrumb.el-breadcrumb .no-redirect[data-v-59b332f4]{color:#97a8be;cursor:text}.hamburger[data-v-49e15297]{display:inline-block;vertical-align:middle;width:20px;height:20px}.hamburger.is-active[data-v-49e15297]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.navbar[data-v-bfe8efa0]{height:50px;overflow:hidden;position:relative;background:#fff;-webkit-box-shadow:0 1px 4px rgba(0,21,41,.08);box-shadow:0 1px 4px rgba(0,21,41,.08)}.navbar .hamburger-container[data-v-bfe8efa0]{line-height:46px;height:100%;float:left;cursor:pointer;-webkit-transition:background .3s;transition:background .3s;-webkit-tap-highlight-color:transparent}.navbar .hamburger-container[data-v-bfe8efa0]:hover{background:rgba(0,0,0,.025)}.navbar .breadcrumb-container[data-v-bfe8efa0]{float:left}.navbar .right-menu[data-v-bfe8efa0]{float:right;height:100%;line-height:50px}.navbar .right-menu[data-v-bfe8efa0]:focus{outline:none}.navbar .right-menu .right-menu-item[data-v-bfe8efa0]{display:inline-block;padding:0 8px;height:100%;font-size:18px;color:#5a5e66;vertical-align:text-bottom}.navbar .right-menu .right-menu-item.hover-effect[data-v-bfe8efa0]{cursor:pointer;-webkit-transition:background .3s;transition:background .3s}.navbar .right-menu .right-menu-item.hover-effect[data-v-bfe8efa0]:hover{background:rgba(0,0,0,.025)}.navbar .right-menu .avatar-container[data-v-bfe8efa0]{margin-right:30px}.navbar .right-menu .avatar-container .avatar-wrapper[data-v-bfe8efa0]{margin-top:5px;position:relative}.navbar .right-menu .avatar-container .avatar-wrapper .user-avatar[data-v-bfe8efa0]{cursor:pointer;width:40px;height:40px;border-radius:10px}.navbar .right-menu .avatar-container .avatar-wrapper .el-icon-caret-bottom[data-v-bfe8efa0]{cursor:pointer;position:absolute;right:-20px;top:25px;font-size:12px}.sidebarLogoFade-enter-active[data-v-39d3a2a9]{-webkit-transition:opacity 1.5s;transition:opacity 1.5s}.sidebarLogoFade-enter[data-v-39d3a2a9],.sidebarLogoFade-leave-to[data-v-39d3a2a9]{opacity:0}.sidebar-logo-container[data-v-39d3a2a9]{position:relative;width:100%;height:50px;line-height:50px;background:#2b2f3a;text-align:center;overflow:hidden}.sidebar-logo-container .sidebar-logo-link[data-v-39d3a2a9]{height:100%;width:100%}.sidebar-logo-container .sidebar-logo-link .sidebar-logo[data-v-39d3a2a9]{width:32px;height:32px;vertical-align:middle;margin-right:12px}.sidebar-logo-container .sidebar-logo-link .sidebar-title[data-v-39d3a2a9]{display:inline-block;margin:0;color:#fff;font-weight:600;line-height:50px;font-size:14px;font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;vertical-align:middle}.sidebar-logo-container.collapse .sidebar-logo[data-v-39d3a2a9]{margin-right:0}.sub-el-icon[data-v-18eeea00]{color:currentColor;width:1em;height:1em}.app-main[data-v-2c621124]{min-height:100%;width:100%;position:relative;overflow:hidden}.fixed-header+.app-main[data-v-2c621124]{padding-top:50px}.el-popup-parent--hidden .fixed-header{padding-right:15px}[data-v-08776dca]:export{menuText:#bfcbd9;menuActiveText:#409eff;subMenuActiveText:#f4f4f5;menuBg:#2b3245;menuHover:#263445;subMenuBg:#1f2d3d;subMenuHover:#001528;sideBarWidth:210px}.toptitle[data-v-08776dca]{color:#fff;height:91px;padding:0 6% 0 36px;z-index:1002;background-color:#2b3245;position:fixed;top:0;left:0;right:0;overflow:hidden}.toptitle .leftk[data-v-08776dca]{float:left;margin-top:16px;height:60px}.toptitle .leftk>img[data-v-08776dca]{vertical-align:middle;display:inline-block;max-width:100%;height:100%;background-color:#fff;border-radius:50%}.toptitle .leftk>i[data-v-08776dca]{vertical-align:middle;color:#fff;font-size:30px;margin:6px 0 0 15px}.toptitle .rightk[data-v-08776dca]{float:right;margin-top:18px;position:relative}.toptitle .erectline[data-v-08776dca]{margin:0 18px;display:inline-block;vertical-align:middle;height:40px;width:1px;background-color:#414758}.toptitle .avatark[data-v-08776dca]{height:20px}.toptitle .avatark>img[data-v-08776dca]{width:58px;background-color:#409eff;border-radius:50%}.app-wrapper[data-v-08776dca]{position:relative;height:100%;width:100%}.app-wrapper[data-v-08776dca]:after{content:"";display:table;clear:both}.app-wrapper.mobile.openSidebar[data-v-08776dca]{position:fixed;top:0}.drawer-bg[data-v-08776dca]{background:#000;opacity:.3;width:100%;top:0;height:100%;position:absolute;z-index:999}.fixed-header[data-v-08776dca]{position:fixed;top:0;right:0;z-index:9;width:calc(100% - 210px);-webkit-transition:width .28s;transition:width .28s}.hideSidebar .fixed-header[data-v-08776dca]{width:calc(100% - 54px)}.mobile .fixed-header[data-v-08776dca]{width:100%}.content_main[data-v-08776dca]{padding-top:91px}.svg-icon[data-v-f9f7fefc]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.svg-external-icon[data-v-f9f7fefc]{background-color:currentColor;-webkit-mask-size:cover!important;mask-size:cover!important;display:inline-block} \ No newline at end of file diff --git a/dist/static/css/chunk-6082a362.d185d2a3.css b/dist/static/css/chunk-2e716637.d185d2a3.css similarity index 100% rename from dist/static/css/chunk-6082a362.d185d2a3.css rename to dist/static/css/chunk-2e716637.d185d2a3.css diff --git a/dist/static/css/chunk-fd39e1d2.275fbea1.css b/dist/static/css/chunk-fd39e1d2.275fbea1.css deleted file mode 100644 index 2d8d073..0000000 --- a/dist/static/css/chunk-fd39e1d2.275fbea1.css +++ /dev/null @@ -1 +0,0 @@ -.toptitle{color:#fff;height:91px;padding:0 6% 0 36px;z-index:1002;background-color:#2b3245;position:fixed;top:0;left:0;right:0;overflow:hidden}.toptitle .leftk{float:left;margin-top:16px;height:60px}.toptitle .leftk>img{vertical-align:middle;display:inline-block;max-width:100%;height:100%;background-color:#fff;border-radius:50%}.toptitle .leftk>i{vertical-align:middle;color:#fff;font-size:30px;margin:6px 0 0 15px}.toptitle .rightk{float:right;margin-top:24px;position:relative}.toptitle .erectline{margin:0 18px;display:inline-block;vertical-align:middle;height:40px;width:1px;background-color:#414758}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#000;height:47px;caret-color:#3c3535}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#3c3535!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container{min-height:100%;width:100%;background-color:#fff;overflow:hidden}.login-container .bt_login{width:100%;margin:0 0 16px 0}.login-container .bt_rest{margin:0}.login-container .login-form{position:relative;width:520px;max-width:100%;padding:0 32px 0 32px;margin:160px auto 0 auto;overflow:hidden}.login-container .svg-container{padding:6px 5px 6px 15px;color:#000;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container{position:relative}.login-container .title-container .title{font-size:26px;color:#000;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd{position:absolute;right:10px;top:7px;font-size:16px;color:#000;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.login-container .captcha_k{display:-webkit-box;display:-ms-flexbox;display:flex}.login-container .captcha_k .captcha_main{width:100px;height:54px;margin:0 0 0 15px}.login-container .captcha_k .captcha_img{border-radius:6px;display:block;max-width:100%;height:100%;cursor:pointer}.login-container .captcha_k>.el-form-item{-webkit-box-flex:1;-ms-flex:1;flex:1} \ No newline at end of file diff --git a/dist/static/css/chunk-fd39e1d2.5b395f52.css b/dist/static/css/chunk-fd39e1d2.5b395f52.css new file mode 100644 index 0000000..61e5325 --- /dev/null +++ b/dist/static/css/chunk-fd39e1d2.5b395f52.css @@ -0,0 +1 @@ +.toptitle{color:#fff;height:91px;padding:0 6% 0 36px;z-index:1002;background-color:#2b3245;position:fixed;top:0;left:0;right:0;overflow:hidden}.toptitle .leftk{float:left;margin-top:16px;height:60px}.toptitle .leftk>img{vertical-align:middle;display:inline-block;max-width:100%;height:100%;background-color:#fff;border-radius:50%}.toptitle .leftk>i{vertical-align:middle;color:#fff;font-size:30px;margin:6px 0 0 15px}.toptitle .rightk{float:right;margin-top:18px;position:relative}.toptitle .erectline{margin:0 18px;display:inline-block;vertical-align:middle;height:40px;width:1px;background-color:#414758}.toptitle .avatark{height:20px}.toptitle .avatark>img{width:58px;background-color:#409eff;border-radius:50%}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#000;height:47px;caret-color:#3c3535}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#3c3535!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container{min-height:100%;width:100%;background-color:#fff;overflow:hidden}.login-container .bt_login{width:100%;margin:0 0 16px 0}.login-container .bt_rest{margin:0}.login-container .login-form{position:relative;width:520px;max-width:100%;padding:0 32px 0 32px;margin:160px auto 0 auto;overflow:hidden}.login-container .svg-container{padding:6px 5px 6px 15px;color:#000;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container{position:relative}.login-container .title-container .title{font-size:26px;color:#000;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd{position:absolute;right:10px;top:7px;font-size:16px;color:#000;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.login-container .captcha_k{display:-webkit-box;display:-ms-flexbox;display:flex}.login-container .captcha_k .captcha_main{width:100px;height:54px;margin:0 0 0 15px}.login-container .captcha_k .captcha_img{border-radius:6px;display:block;max-width:100%;height:100%;cursor:pointer}.login-container .captcha_k>.el-form-item{-webkit-box-flex:1;-ms-flex:1;flex:1} \ No newline at end of file diff --git a/dist/static/js/app.1309a4dc.js b/dist/static/js/app.1309a4dc.js deleted file mode 100644 index b5aeaf4..0000000 --- a/dist/static/js/app.1309a4dc.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0259":function(e,t,n){},"0f50":function(e,t,n){"use strict";n("3c88")},"17f3":function(e,t,n){},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),o=n.n(r),s=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"28e8":function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),o=n.n(r),s=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"2e7c":function(e,t,n){"use strict";n("ef37")},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),o=n.n(r),s=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"320d":function(e,t,n){},"3c88":function(e,t,n){},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),o=n.n(r),s=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"4a9d":function(e,t,n){"use strict";var a=n("2b0e"),i=new a["default"];t["a"]=i},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),o=n.n(r),s=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(s);t["default"]=s},"51ff":function(e,t,n){var a={"./dashboard.svg":"f782","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./link.svg":"18f0","./nested.svg":"dcf8","./password.svg":"2a3d","./table.svg":"47f1","./tree.svg":"93cd","./user.svg":"b3b5"};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id="51ff"},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var a=n("2b0e"),i=n("5c96"),r=n.n(i),o=(n("0fae"),n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)}),s=[],c={name:"App"},u=c,l=n("2877"),d=Object(l["a"])(u,o,s,!1,null,null,null),h=d.exports,m=n("2f62"),f=(n("b0c0"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name}}),p=f,b=n("a78e"),v=n.n(b),g={sidebar:{opened:!v.a.get("sidebarStatus")||!!+v.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},w={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?v.a.set("sidebarStatus",1):v.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){v.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},x={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},y={namespaced:!0,state:g,mutations:w,actions:x},C=n("83d6"),_=n.n(C),O=_.a.showSettings,k=_.a.fixedHeader,S=_.a.sidebarLogo,E={showSettings:O,fixedHeader:k,sidebarLogo:S},z={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},M={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},T={namespaced:!0,state:E,mutations:z,actions:M},H=(n("d3b7"),n("498a"),n("c24f")),B="jialuoma_token";function j(){return v.a.get(B)}function L(e){return v.a.set(B,e)}function $(){return v.a.remove(B)}n("3ca3"),n("ddb0");var A=n("8c4f"),V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},[e._m(0),n("div",{staticClass:"content_main"},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container"},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),n("app-main")],1)],1)])},I=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"toptitle clearfix"},[a("a",{staticClass:"leftk",attrs:{href:"javascript:;"}},[a("img",{attrs:{src:n("7b07"),alt:"图片"}}),a("em",{staticClass:"erectline"}),a("span",[e._v("后台管理系统")])]),a("div",{staticClass:"rightk tpriht"},[a("a",{attrs:{id:"dLabel",href:"javascript:;","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[a("img",{staticClass:"mailtp verMiddle",attrs:{src:n("7b07"),alt:"图片"}}),a("span",{staticClass:"verMiddle glyphicon glyphicon-menu-down"})]),a("em",{staticClass:"erectline"})])])}],q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),n("breadcrumb",{staticClass:"breadcrumb-container"})],1)},D=[],P=n("c7eb"),N=n("1da1"),G=n("5530"),R=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.breadcrumbq?n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,a){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||a==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1):n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList2,(function(t){return n("el-breadcrumb-item",{key:t.path},[n("a",{attrs:{href:"/#"+t.path}},[e._v(e._s(t.meta.title))])])})),1)],1)},U=[],F=(n("4de4"),n("99af"),n("bd11")),J=n.n(F),K=[{id:"0",path:"/homepage",meta:{title:"首页",icon:"dashboard"}},{id:"1",path:"/filemange/index",class:"file",meta:{title:"文件管理",icon:"el-icon-s-help"},children:[]},{id:"2",path:"/usermange/index",meta:{title:"用户管理",icon:"form"}},{id:"3",path:"/systme",meta:{title:"系统管理",icon:"dashboard"},children:[{id:"3-1",path:"changepass",meta:{title:"修改密码",icon:"table"}},{id:"3-2",path:"userrelated",meta:{title:"用户相关",icon:"tree"}},{id:"3-3",path:"switchtheme",meta:{title:"皮肤更换",icon:"tree"}}]},{id:"4",path:"/",meta:{title:"前端展示页面",icon:"link"}}],W=K,Q={data:function(){return{levelList:null,breadcrumbq:!0,getcrumbsData:W,levelList2:[]}},watch:{$route:function(){this.ifbreadshow()},getcrumbsData:{handler:function(e,t){this.extractChild=this.arrToobj(e),this.ifbreadshow()},deep:!0}},created:function(){this.extractChild=null},computed:{},methods:{ifbreadshow:function(){var e=window.location.href,t=null,n=null;if(-1!=e.indexOf("filemange")){for(var a in this.extractChild)if(1==this.extractChild[a].id){n=this.extractChild[a];break}-1!=e.indexOf("?id")?(t=e.split("?id=")[1],this.levelList2=this.getBread(t,this.extractChild),this.levelList2.reverse()):this.levelList2=[],this.levelList2.unshift(n),this.breadcrumbq=!1}else this.breadcrumbq=!0,this.getBreadcrumb()},arrToobj:function(e){var t,n={};for(var a in e)if("undefined"!=typeof e[a]["children"])for(var i in t=this.arrToobj(e[a]["children"]),n[e[a].id]=e[a],t)n[t[i].id]=t[i];else n[e[a].id]=e[a];return n},getBread:function(e,t){if("undefined"==typeof t[e])return!1;var n=[];n[n.length]=t[e];var a="undefined"!=typeof t[e]["pid"]?t[e]["pid"]:0;while(a)n[n.length]=t[a],a="undefined"!=typeof t[a]["pid"]?t[a]["pid"]:0;return n},getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:""}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=J.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},X=Q,Y=(n("abb9"),Object(l["a"])(X,R,U,!1,null,"59b332f4",null)),Z=Y.exports,ee=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},te=[],ne={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ae=ne,ie=(n("d49d"),Object(l["a"])(ae,ee,te,!1,null,"49e15297",null)),re=ie.exports,oe={components:{Breadcrumb:Z,Hamburger:re},computed:Object(G["a"])({},Object(m["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(N["a"])(Object(P["a"])().mark((function t(){return Object(P["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 1:case"end":return t.stop()}}),t)})))()}}},se=oe,ce=(n("b55f"),Object(l["a"])(se,q,D,!1,null,"bfe8efa0",null)),ue=ce.exports,le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical","default-openeds":e.openedsindex},on:{open:e.handleOpen}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},de=[],he=(n("159b"),n("4a9d")),me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},fe=[],pe={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"嘉洛马",logo:"https://static.jialuoma.cn/img/logo_jialuoma.png"}}},be=pe,ve=(n("d508"),Object(l["a"])(be,me,fe,!1,null,"39d3a2a9",null)),ge=ve.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?[e.item.class&&"file"==e.item.class?n("a",{staticClass:"el_submenu_link",attrs:{index:e.resolvePath(e.item.path),href:"#"+e.resolvePath(e.item.path)}}):e._e(),n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2)]:[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},xe=[],ye=n("df7c"),Ce=n.n(ye);n("ac1f"),n("00b4");function _e(e){return/^(https?:|mailto:|tel:)/.test(e)}n("caad"),n("2532");var Oe,ke,Se={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,i=n.title,r=[];return a&&(a.includes("el-icon")?r.push(e("i",{class:[a,"sub-el-icon"]})):r.push(e("svg-icon",{attrs:{"icon-class":a}}))),i&&r.push(e("span",{slot:"title"},[i])),r}},Ee=Se,ze=(n("f15b"),Object(l["a"])(Ee,Oe,ke,!1,null,"18eeea00",null)),Me=ze.exports,Te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},He=[],Be={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return _e(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},je=Be,Le=Object(l["a"])(je,Te,He,!1,null,null,null),$e=Le.exports,Ae={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},Ve={name:"SidebarItem",components:{Item:Me,AppLink:$e},mixins:[Ae],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(G["a"])(Object(G["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return _e(e)?e:_e(this.basePath)?this.basePath:Ce.a.resolve(this.basePath,e)}}},Ie=Ve,qe=Object(l["a"])(Ie,we,xe,!1,null,null,null),De=qe.exports,Pe=n("cf1e"),Ne=n.n(Pe),Ge={components:{SidebarItem:De,Logo:ge},created:function(){this.getmunusdata()},mounted:function(){he["a"].$on("mkdirSuccess",this.getmunusdata);var e=window.location.href;-1!=e.indexOf("filemange/index")&&this.menuopeneds()},data:function(){return{routes:W,openedsindex:[]}},computed:Object(G["a"])(Object(G["a"])({},Object(m["b"])(["sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path,a=window.location.href;return-1!=a.indexOf("?id")?a.split("/#")[1]:t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Ne.a},isCollapse:function(){return!this.sidebar.opened}}),methods:{menuopeneds:function(){var e=this;window.setTimeout((function(){e.openedsindex=["/filemange/index"]}),400)},SplicingMenuTree:function(e){var t=this,n=null,a=[];return e.forEach((function(e){n={path:"/filemange/subfile?id="+e.id,meta:{title:e.directory},class:"file",id:e.id,pid:e.pid,children:[]},e.directories&&e.directories.length>0&&(n.children=t.SplicingMenuTree(e.directories)),a.push(n)})),a},getmunusdata:function(){var e=this,t=this;Object(H["f"])().then((function(t){var n=t.data;e.routes[1].children=[],1==n.code&&(e.routes[1].children=e.SplicingMenuTree(n.data.menus))})).catch((function(e){if(e.response){if(401==e.response.status)return t.$message({showClose:!0,message:e.response.data.err,type:"error"}),void t.$router.push({path:"/login"});t.$message({showClose:!0,message:e.response.data.err,type:"error"})}else e.request,t.$message({showClose:!0,message:e.response.data.err,type:"error"})}))},handleOpen:function(e,t){}}},Re=Ge,Ue=Object(l["a"])(Re,le,de,!1,null,null,null),Fe=Ue.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},Ke=[],We={name:"AppMain",computed:{key:function(){return this.$route.path}}},Qe=We,Xe=(n("0f50"),n("92cc"),Object(l["a"])(Qe,Je,Ke,!1,null,"2c621124",null)),Ye=Xe.exports,Ze=document,et=Ze.body,tt=992,nt={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&>.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(gt.dispatch("app/toggleDevice","mobile"),gt.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=et.getBoundingClientRect();return e.width-1'});o.a.add(s);t["default"]=s},abb9:function(e,t,n){"use strict";n("17f3")},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#2b3245",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),o=n.n(r),s=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(s);t["default"]=s},b55f:function(e,t,n){"use strict";n("0259")},b775:function(e,t,n){"use strict";var a=n("bc3a"),i=a["a"].create({headers:{"Content-Type":"multipart/form-data"},timeout:0});t["a"]=i},c24f:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"l",(function(){return c})),n.d(t,"j",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"h",(function(){return h})),n.d(t,"k",(function(){return m}));var a=n("b775");function i(e){return Object(a["a"])({url:"/api/captcha",method:"post",data:e})}function r(e){return Object(a["a"])({url:"/api/login",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/api/ls",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/api/mkdir",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/api/uploadbase64",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/api/rmdir",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/api/delete",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/api/rename",method:"post",data:e})}function h(e){return Object(a["a"])({url:"/api/move",method:"post",data:e})}function m(e){return Object(a["a"])({url:"/api/switchtheme/",method:"post",data:e})}},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#2b3245",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d49d:function(e,t,n){"use strict";n("da64")},d508:function(e,t,n){"use strict";n("e5f4")},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),o=n.n(r),s=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},da64:function(e,t,n){},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),o=n.n(r),s=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},e5f4:function(e,t,n){},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),o=n.n(r),s=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},ef37:function(e,t,n){},f15b:function(e,t,n){"use strict";n("28e8")},f782:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),o=n.n(r),s=new i.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});o.a.add(s);t["default"]=s}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/dist/static/js/app.eaeeec51.js b/dist/static/js/app.eaeeec51.js new file mode 100644 index 0000000..42faf9b --- /dev/null +++ b/dist/static/js/app.eaeeec51.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0259":function(e,t,n){},"0f50":function(e,t,n){"use strict";n("3c88")},"17f3":function(e,t,n){},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),s=n.n(r),o=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"28e8":function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),s=n.n(r),o=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),s=n.n(r),o=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"320d":function(e,t,n){},"3c88":function(e,t,n){},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),s=n.n(r),o=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"4a9d":function(e,t,n){"use strict";var a=n("2b0e"),i=new a["default"];t["a"]=i},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),s=n.n(r),o=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});s.a.add(o);t["default"]=o},"51ff":function(e,t,n){var a={"./dashboard.svg":"f782","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./link.svg":"18f0","./nested.svg":"dcf8","./password.svg":"2a3d","./table.svg":"47f1","./tree.svg":"93cd","./user.svg":"b3b5"};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id="51ff"},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var a=n("2b0e"),i=n("5c96"),r=n.n(i),s=(n("0fae"),n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)}),o=[],c={name:"App"},u=c,l=n("2877"),d=Object(l["a"])(u,s,o,!1,null,null,null),h=d.exports,m=n("2f62"),f=(n("b0c0"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name}}),p=f,v=n("a78e"),b=n.n(v),g={sidebar:{opened:!b.a.get("sidebarStatus")||!!+b.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},w={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?b.a.set("sidebarStatus",1):b.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){b.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},x={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},C={namespaced:!0,state:g,mutations:w,actions:x},y=n("83d6"),_=n.n(y),k=_.a.showSettings,O=_.a.fixedHeader,S=_.a.sidebarLogo,E={showSettings:k,fixedHeader:O,sidebarLogo:S},z={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},T={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},H={namespaced:!0,state:E,mutations:z,actions:T},M=(n("d3b7"),n("498a"),n("c24f")),j="jialuoma_token";function B(){return b.a.get(j)}function $(e){return b.a.set(j,e)}function L(){return b.a.remove(j)}n("3ca3"),n("ddb0");var A=n("8c4f"),V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},[n("div",{staticClass:"toptitle clearfix"},[e._m(0),n("div",{staticClass:"rightk tpriht"},[e._m(1),n("em",{staticClass:"erectline"}),n("el-button",{staticClass:"quit",attrs:{id:"tuichu",size:"mini",round:""},nativeOn:{click:function(t){return e.logout(t)}}},[e._v("退出")])],1)]),n("div",{staticClass:"content_main"},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container"},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),n("app-main")],1)],1)])},q=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{staticClass:"leftk",attrs:{href:"javascript:;"}},[a("img",{attrs:{src:n("7b07"),alt:"图片"}}),a("em",{staticClass:"erectline"}),a("span",[e._v("后台管理系统")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{staticClass:"avatark",attrs:{href:"javascript:;","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[a("img",{staticClass:"mailtp verMiddle",attrs:{src:n("7b07"),alt:"图片"}})])}],D=n("c7eb"),I=n("1da1"),P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),n("breadcrumb",{staticClass:"breadcrumb-container"})],1)},N=[],G=n("5530"),R=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.breadcrumbq?n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,a){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||a==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1):n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList2,(function(t){return n("el-breadcrumb-item",{key:t.path},[n("a",{attrs:{href:"/#"+t.path}},[e._v(e._s(t.meta.title))])])})),1)],1)},U=[],F=(n("4de4"),n("99af"),n("bd11")),J=n.n(F),K=[{id:"0",path:"/homepage",meta:{title:"首页",icon:"dashboard"}},{id:"1",path:"/filemange/index",class:"file",meta:{title:"文件管理",icon:"el-icon-s-help"},children:[]},{id:"2",path:"/usermange/index",meta:{title:"用户管理",icon:"form"}},{id:"3",path:"/systme",meta:{title:"系统管理",icon:"dashboard"},children:[{id:"3-1",path:"changepass",meta:{title:"修改密码",icon:"table"}},{id:"3-2",path:"userrelated",meta:{title:"用户相关",icon:"tree"}},{id:"3-3",path:"switchtheme",meta:{title:"皮肤更换",icon:"tree"}}]}],W=K,Q={data:function(){return{levelList:null,breadcrumbq:!0,getcrumbsData:W,levelList2:[]}},watch:{$route:function(){this.ifbreadshow()},getcrumbsData:{handler:function(e,t){this.extractChild=this.arrToobj(e),this.ifbreadshow()},deep:!0}},created:function(){this.extractChild=null},computed:{},methods:{ifbreadshow:function(){var e=window.location.href,t=null,n=null;if(-1!=e.indexOf("filemange")){for(var a in this.extractChild)if(1==this.extractChild[a].id){n=this.extractChild[a];break}-1!=e.indexOf("?id")?(t=e.split("?id=")[1],this.levelList2=this.getBread(t,this.extractChild),this.levelList2.reverse()):this.levelList2=[],this.levelList2.unshift(n),this.breadcrumbq=!1}else this.breadcrumbq=!0,this.getBreadcrumb()},arrToobj:function(e){var t,n={};for(var a in e)if("undefined"!=typeof e[a]["children"])for(var i in t=this.arrToobj(e[a]["children"]),n[e[a].id]=e[a],t)n[t[i].id]=t[i];else n[e[a].id]=e[a];return n},getBread:function(e,t){if("undefined"==typeof t[e])return!1;var n=[];n[n.length]=t[e];var a="undefined"!=typeof t[e]["pid"]?t[e]["pid"]:0;while(a)n[n.length]=t[a],a="undefined"!=typeof t[a]["pid"]?t[a]["pid"]:0;return n},getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:""}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=J.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},X=Q,Y=(n("abb9"),Object(l["a"])(X,R,U,!1,null,"59b332f4",null)),Z=Y.exports,ee=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},te=[],ne={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ae=ne,ie=(n("d49d"),Object(l["a"])(ae,ee,te,!1,null,"49e15297",null)),re=ie.exports,se={components:{Breadcrumb:Z,Hamburger:re},computed:Object(G["a"])({},Object(m["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(I["a"])(Object(D["a"])().mark((function t(){return Object(D["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 1:case"end":return t.stop()}}),t)})))()}}},oe=se,ce=(n("b55f"),Object(l["a"])(oe,P,N,!1,null,"bfe8efa0",null)),ue=ce.exports,le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical","default-openeds":e.openedsindex},on:{open:e.handleOpen}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1),n("div",[n("a",{staticClass:"router-link-active",attrs:{href:"/",target:"_blank"}},[n("li",{staticClass:"el-menu-item submenu-title-noDropdown",staticStyle:{"padding-left":"20px",color:"rgb(191, 203, 217)","background-color":"rgb(43, 50, 69)"},attrs:{role:"menuitem",tabindex:"-1"}},[n("svg",{staticClass:"svg-icon",attrs:{"data-v-c8a70580":"","aria-hidden":"true","data-v-31ea41b3":""}},[n("use",{attrs:{"data-v-c8a70580":"","xlink:href":"#icon-link"}})]),n("span",{attrs:{"data-v-31ea41b3":""}},[e._v("前端展示页面")])])])])],1)],1)},de=[],he=(n("159b"),n("4a9d")),me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},fe=[],pe={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"嘉洛马",logo:"https://static.jialuoma.cn/img/logo_jialuoma.png"}}},ve=pe,be=(n("d508"),Object(l["a"])(ve,me,fe,!1,null,"39d3a2a9",null)),ge=be.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?[e.item.class&&"file"==e.item.class?n("a",{staticClass:"el_submenu_link",attrs:{index:e.resolvePath(e.item.path),href:"#"+e.resolvePath(e.item.path)}}):e._e(),n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2)]:[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},xe=[],Ce=n("df7c"),ye=n.n(Ce);n("ac1f"),n("00b4");function _e(e){return/^(https?:|mailto:|tel:)/.test(e)}n("caad"),n("2532");var ke,Oe,Se={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,i=n.title,r=[];return a&&(a.includes("el-icon")?r.push(e("i",{class:[a,"sub-el-icon"]})):r.push(e("svg-icon",{attrs:{"icon-class":a}}))),i&&r.push(e("span",{slot:"title"},[i])),r}},Ee=Se,ze=(n("f15b"),Object(l["a"])(Ee,ke,Oe,!1,null,"18eeea00",null)),Te=ze.exports,He=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},Me=[],je={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return _e(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},Be=je,$e=Object(l["a"])(Be,He,Me,!1,null,null,null),Le=$e.exports,Ae={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},Ve={name:"SidebarItem",components:{Item:Te,AppLink:Le},mixins:[Ae],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(G["a"])(Object(G["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return _e(e)?e:_e(this.basePath)?this.basePath:ye.a.resolve(this.basePath,e)}}},qe=Ve,De=Object(l["a"])(qe,we,xe,!1,null,null,null),Ie=De.exports,Pe=n("cf1e"),Ne=n.n(Pe),Ge={components:{SidebarItem:Ie,Logo:ge},created:function(){this.getmunusdata()},mounted:function(){he["a"].$on("mkdirSuccess",this.getmunusdata);var e=window.location.href;-1!=e.indexOf("filemange/index")&&this.menuopeneds()},data:function(){return{routes:W,openedsindex:[]}},computed:Object(G["a"])(Object(G["a"])({},Object(m["b"])(["sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path,a=window.location.href;return-1!=a.indexOf("?id")?a.split("/#")[1]:t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Ne.a},isCollapse:function(){return!this.sidebar.opened}}),methods:{menuopeneds:function(){var e=this;window.setTimeout((function(){e.openedsindex=["/filemange/index"]}),400)},SplicingMenuTree:function(e){var t=this,n=null,a=[];return e.forEach((function(e){n={path:"/filemange/subfile?id="+e.id,meta:{title:e.directory},class:"file",id:e.id,pid:e.pid,children:[]},e.directories&&e.directories.length>0&&(n.children=t.SplicingMenuTree(e.directories)),a.push(n)})),a},getmunusdata:function(){var e=this,t=this;Object(M["e"])().then((function(t){var n=t.data;e.routes[1].children=[],1==n.code&&(e.routes[1].children=e.SplicingMenuTree(n.data.menus))})).catch((function(e){if(e.response){if(401==e.response.status)return t.$message({showClose:!0,message:e.response.data.err,type:"error"}),void t.$router.push({path:"/login"});t.$message({showClose:!0,message:e.response.data.err,type:"error"})}else e.request,t.$message({showClose:!0,message:e.response.data.err,type:"error"})}))},handleOpen:function(e,t){}}},Re=Ge,Ue=Object(l["a"])(Re,le,de,!1,null,null,null),Fe=Ue.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},Ke=[],We={name:"AppMain",computed:{key:function(){return this.$route.path}}},Qe=We,Xe=(n("0f50"),n("92cc"),Object(l["a"])(Qe,Je,Ke,!1,null,"2c621124",null)),Ye=Xe.exports,Ze=document,et=Ze.body,tt=992,nt={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&>.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(gt.dispatch("app/toggleDevice","mobile"),gt.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=et.getBoundingClientRect();return e.width-1'});s.a.add(o);t["default"]=o},abb9:function(e,t,n){"use strict";n("17f3")},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#2b3245",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),s=n.n(r),o=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});s.a.add(o);t["default"]=o},b533:function(e,t,n){},b55f:function(e,t,n){"use strict";n("0259")},b775:function(e,t,n){"use strict";var a=n("bc3a"),i=a["a"].create({headers:{"Content-Type":"multipart/form-data"},timeout:0});t["a"]=i},c24f:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return o})),n.d(t,"k",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"h",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"j",(function(){return m}));var a=n("b775");function i(e){return Object(a["a"])({url:"/api/captcha",method:"post",data:e})}function r(e){return Object(a["a"])({url:"/api/login",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/api/ls",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/api/mkdir",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/api/uploadbase64",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/api/rmdir",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/api/delete",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/api/rename",method:"post",data:e})}function h(e){return Object(a["a"])({url:"/api/move",method:"post",data:e})}function m(e){return Object(a["a"])({url:"/api/switchtheme/",method:"post",data:e})}},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#2b3245",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d49d:function(e,t,n){"use strict";n("da64")},d508:function(e,t,n){"use strict";n("e5f4")},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),s=n.n(r),o=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},da64:function(e,t,n){},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),s=n.n(r),o=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},e5f4:function(e,t,n){},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),s=n.n(r),o=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},f15b:function(e,t,n){"use strict";n("28e8")},f18f:function(e,t,n){"use strict";n("b533")},f782:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),r=n("21a1"),s=n.n(r),o=new i.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});s.a.add(o);t["default"]=o}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/dist/static/js/chunk-2e716637.7449b031.js b/dist/static/js/chunk-2e716637.7449b031.js new file mode 100644 index 0000000..93b050d --- /dev/null +++ b/dist/static/js/chunk-2e716637.7449b031.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2e716637"],{"1e39":function(e,n,t){"use strict";t.r(n);var s=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[e._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[e._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:e.selectbian},model:{value:e.skinvalue,callback:function(n){e.skinvalue=n},expression:"skinvalue"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:e.skinloading,type:"primary"},on:{click:e.skinSubmit}},[e._v("提交")]),e.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:e.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[e._v("查看"+e._s(e.skinlabel)+"站点")])],1):e._e()],1)],1)])},i=[],a=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l=t("4a9d"),o={data:function(){return{options:[{value:"manual",label:"文档站",link:"/?"},{value:"webdirectory",label:"导航站",link:"/?"},{value:"googleimage",label:"图片站",link:"/?"},{value:"videoblog",label:"视频站",link:"/?"}],skinvalue:"",skinlabel:"",skinLink:"",skinAsk:!1,skinloading:!1,skinForm:{theme:""}}},created:function(){},methods:{skinSubmit:function(){var e=this,n=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(a["j"])(this.skinForm).then((function(t){var s=t.data;1==s.code?(n.$message({showClose:!0,message:s.msg,type:"success"}),e.skinAsk=!0,l["a"].$emit("mkdirSuccess")):n.$message({showClose:!0,message:s.err,type:"error"}),e.skinloading=!1})).catch((function(t){e.skinloading=!1,t.response||t.request,n.$message({showClose:!0,message:t.response.data.err,type:"error"})}))},selectbian:function(e){var n=this;this.options.forEach((function(t){t.value==e&&(n.skinlabel=t.label,n.skinLink=t.link+Math.round(1e3*Math.random()))})),this.skinAsk=!1}}},r=o,u=(t("bbc9"),t("2877")),c=Object(u["a"])(r,s,i,!1,null,null,null);n["default"]=c.exports},"857a":function(e,n,t){var s=t("1d80"),i=/"/g;e.exports=function(e,n,t,a){var l=String(s(e)),o="<"+n;return""!==t&&(o+=" "+t+'="'+String(a).replace(i,""")+'"'),o+">"+l+""}},9566:function(e,n,t){},9911:function(e,n,t){"use strict";var s=t("23e7"),i=t("857a"),a=t("af03");s({target:"String",proto:!0,forced:a("link")},{link:function(e){return i(this,"a","href",e)}})},af03:function(e,n,t){var s=t("d039");e.exports=function(e){return s((function(){var n=""[e]('"');return n!==n.toLowerCase()||n.split('"').length>3}))}},bbc9:function(e,n,t){"use strict";t("9566")}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-6082a362.15333289.js b/dist/static/js/chunk-6082a362.15333289.js deleted file mode 100644 index fa5e1fd..0000000 --- a/dist/static/js/chunk-6082a362.15333289.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6082a362"],{"1e39":function(e,n,t){"use strict";t.r(n);var s=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[e._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[e._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:e.selectbian},model:{value:e.skinvalue,callback:function(n){e.skinvalue=n},expression:"skinvalue"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:e.skinloading,type:"primary"},on:{click:e.skinSubmit}},[e._v("提交")]),e.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:e.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[e._v("查看"+e._s(e.skinlabel)+"站点")])],1):e._e()],1)],1)])},a=[],i=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l=t("4a9d"),o={data:function(){return{options:[{value:"manual",label:"文档站",link:"/"},{value:"webdirectory",label:"导航站",link:"/"},{value:"googleimage",label:"图片站",link:"/"},{value:"videoblog",label:"视频站",link:"/"}],skinvalue:"",skinlabel:"",skinLink:"",skinAsk:!1,skinloading:!1,skinForm:{theme:""}}},created:function(){},methods:{skinSubmit:function(){var e=this,n=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(i["k"])(this.skinForm).then((function(t){var s=t.data;1==s.code?(n.$message({showClose:!0,message:s.msg,type:"success"}),e.skinAsk=!0,l["a"].$emit("mkdirSuccess")):n.$message({showClose:!0,message:s.err,type:"error"}),e.skinloading=!1})).catch((function(t){e.skinloading=!1,t.response||t.request,n.$message({showClose:!0,message:t.response.data.err,type:"error"})}))},selectbian:function(e){var n=this;this.options.forEach((function(t){t.value==e&&(n.skinlabel=t.label,n.skinLink=t.link+Math.round(1e3*Math.random()))})),this.skinAsk=!1}}},r=o,u=(t("a7af"),t("2877")),c=Object(u["a"])(r,s,a,!1,null,null,null);n["default"]=c.exports},"665a":function(e,n,t){},"857a":function(e,n,t){var s=t("1d80"),a=/"/g;e.exports=function(e,n,t,i){var l=String(s(e)),o="<"+n;return""!==t&&(o+=" "+t+'="'+String(i).replace(a,""")+'"'),o+">"+l+""}},9911:function(e,n,t){"use strict";var s=t("23e7"),a=t("857a"),i=t("af03");s({target:"String",proto:!0,forced:i("link")},{link:function(e){return a(this,"a","href",e)}})},a7af:function(e,n,t){"use strict";t("665a")},af03:function(e,n,t){var s=t("d039");e.exports=function(e){return s((function(){var n=""[e]('"');return n!==n.toLowerCase()||n.split('"').length>3}))}}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-6b919d04.2afa5e4b.js b/dist/static/js/chunk-6b919d04.52570c32.js similarity index 95% rename from dist/static/js/chunk-6b919d04.2afa5e4b.js rename to dist/static/js/chunk-6b919d04.52570c32.js index 513bd7c..4a2f2c9 100644 --- a/dist/static/js/chunk-6b919d04.2afa5e4b.js +++ b/dist/static/js/chunk-6b919d04.52570c32.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b919d04"],{"5a1b":function(e,t,o){e.exports=o.p+"static/img/file.8bc3a8bc.png"},"9a2d":function(e,t,o){"use strict";o("e86e")},e86e:function(e,t,o){},f454:function(e,t,o){"use strict";o.r(t);var s=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.subloading,expression:"subloading"}],staticClass:"filemange_container",attrs:{"element-loading-text":"数据加载中..."}},[s("div",{staticClass:"use_button"},[s("el-button",{attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.dirbox=!0}}},[e._v("创建目录")])],1),s("div",{on:{click:e.fileTableMClick}},[s("el-table",{staticClass:"filesmd verleft",staticStyle:{width:"100%"},attrs:{data:e.dirdata,"empty-text":"暂无子目录数据",border:""}},[s("el-table-column",{attrs:{align:"left",prop:"name",label:"名称"}}),s("el-table-column",{attrs:{align:"left",label:"类型",width:"auto"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("div",{staticClass:"type_file_click"},[s("el-tooltip",{attrs:{content:"进入子目录",placement:"bottom-start",effect:"light"}},[s("a",{attrs:{href:"#/filemange/subfile?id="+e.row.id}},[s("img",{attrs:{src:o("5a1b"),alt:"图片"}})])])],1)]}}])}),s("el-table-column",{attrs:{align:"center",label:"操作",width:"auto"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",{staticClass:"file_caozuo"},[s("el-button",{attrs:{size:"mini",filenames:t.row.name,mark:"rename"}},[e._v("重命名")])],1),s("div",{staticClass:"file_caozuo2"},[s("el-button",{attrs:{size:"mini",realpath:t.row.frealpath,mark:"movefiledir"}},[e._v("移动")]),s("el-button",{attrs:{size:"mini",mark:"dirdelete",filenames:t.row.name,type:"danger"}},[e._v("删除")])],1)]}}])})],1)],1),s("el-dialog",{attrs:{title:"创建目录",visible:e.dirbox},on:{"update:visible":function(t){e.dirbox=t}}},[s("el-form",{attrs:{model:e.dirform}},[s("el-form-item",{attrs:{label:"目录名称","label-width":e.formLabelWidth}},[s("el-input",{attrs:{autocomplete:"off"},model:{value:e.dirform.dir,callback:function(t){e.$set(e.dirform,"dir",t)},expression:"dirform.dir"}})],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.dirbox=!1}}},[e._v("取 消")]),s("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.mkdirs}},[e._v("确 定")])],1)],1),s("el-dialog",{attrs:{title:"重命名",visible:e.renamebox},on:{"update:visible":function(t){e.renamebox=t}}},[s("el-form",{attrs:{model:e.renamefileform}},[s("el-form-item",{attrs:{label:"新名称","label-width":e.formLabelWidth}},[s("el-input",{attrs:{autocomplete:"off"},model:{value:e.renamefileform.to,callback:function(t){e.$set(e.renamefileform,"to",t)},expression:"renamefileform.to"}},[e.filesuffix?s("template",{slot:"append"},[e._v(e._s(e.filesuffix))]):e._e()],2)],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.renamebox=!1}}},[e._v("取 消")]),s("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.renameFileDir}},[e._v("确 定")])],1)],1),s("el-dialog",{attrs:{title:"目录移动弹出框",visible:e.movebox},on:{"update:visible":function(t){e.movebox=t}}},[s("el-form",{attrs:{model:e.movefileform}},[s("el-form-item",{attrs:{label:"当前位置","label-width":e.formLabelWidth}},[s("el-input",{attrs:{autocomplete:"off"},model:{value:e.movefileform.from,callback:function(t){e.$set(e.movefileform,"from",t)},expression:"movefileform.from"}})],1),s("el-form-item",{attrs:{label:"目标位置(请参考当前位置的格式填写目标位置,需要带上当前的文件名称)","label-width":e.formLabelWidth}},[s("el-input",{attrs:{autocomplete:"off"},model:{value:e.movefileform.to,callback:function(t){e.$set(e.movefileform,"to",t)},expression:"movefileform.to"}})],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.movebox=!1}}},[e._v("取 消")]),s("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.moveFileDir}},[e._v("确 定")])],1)],1)],1)},i=[],r=(o("d3b7"),o("159b"),o("b64b"),o("c24f")),a=o("4a9d"),l={created:function(){this.getFileData()},data:function(){return{dirdata:[],subloading:!1,mkdirloadings:!1,dirbox:!1,dirform:{dir:"",parent:""},formLabelWidth:"",rmdirform:{dir:"",parent:""},renamebox:!1,filesuffix:!1,renamefileform:{from:"",to:"",parent:""},movebox:!1,movefileform:{from:"",to:""}}},methods:{getFileData:function(){var e=this,t=this;this.subloading=!0,Object(r["f"])().then((function(t){var o=t.data;if(e.dirdata=[],1==o.code){var s=o.data.menus;s&&(e.dirdata=e.forObjectData(s))}e.subloading=!1})).catch((function(o){o.response?t.$message({showClose:!0,message:o.response.data.err,type:"error"}):o.request?t.$message({showClose:!0,message:o,type:"error"}):t.$message({showClose:!0,message:o.message,type:"error"}),e.subloading=!1}))},forObjectData:function(e){var t=null,o=[];return Object.keys(e).forEach((function(s){var i=null;e[s].filename&&(i=e[s].filename+"."+e[s].extension),t={suffix:e[s].extension||"",image:e[s].path,name:i||e[s].directory,id:e[s].id,frealpath:e[s].realpath||e[s].directory},o.push(t)})),o},mkdirs:function(){var e=this,t=this;this.dirform.dir?(this.mkdirloadings=!0,Object(r["g"])(this.dirform).then((function(o){var s=o.data;1==s.code?(a["a"].$emit("mkdirSuccess"),e.getFileData(),e.dirform.dir="",t.$message({showClose:!0,message:s.msg,type:"success"})):t.$message({showClose:!0,message:s.err,type:"error"}),e.mkdirloadings=!1,e.dirbox=!1})).catch((function(e){e.response?(t.mkdirloadings=!1,t.$message({showClose:!0,message:e.response.data.err,type:"error"})):e.request?t.$message({showClose:!0,message:e,type:"error"}):t.$message({showClose:!0,message:e.message,type:"error"})}))):t.$message({showClose:!0,message:"目录名不能为空",type:"error"})},rmdirm:function(){var e=this,t=this;this.subloading=!0,Object(r["j"])(this.rmdirform).then((function(o){var s=o.data;s.data.dirTree;1==s.code?(a["a"].$emit("mkdirSuccess"),e.getFileData(),t.$message({showClose:!0,message:s.msg,type:"success"})):t.$message({showClose:!0,message:s.err,type:"error"}),e.subloading=!1})).catch((function(o){o.response||o.request,t.$message({showClose:!0,message:o.response.data.err,type:"error"}),e.subloading=!1}))},moveFileDir:function(){var e=this;if(this.movefileform.to&&this.movefileform.from){var t=this;this.subloading=!0,Object(r["h"])(this.movefileform).then((function(o){var s=o.data;1==s.code?(console.log(66666),a["a"].$emit("mkdirSuccess"),e.getFileData(),t.$message({showClose:!0,message:s.msg,type:"success"})):t.$message({showClose:!0,message:s.err,type:"error"}),e.subloading=!1,e.movebox=!1})).catch((function(o){e.subloading=!1,o.response||o.request,t.$message({showClose:!0,message:o.response.data.err,type:"error"})}))}else this.$message({showClose:!0,message:"不能为空",type:"error"})},renameFileDir:function(){var e=this;if(this.renamefileform.to){this.filesuffix&&(this.renamefileform.to+=this.filesuffix);var t=this;this.subloading=!0,Object(r["i"])(this.renamefileform).then((function(o){var s=o.data;1==s.code?(a["a"].$emit("mkdirSuccess"),e.getFileData(),t.$message({showClose:!0,message:s.msg,type:"success"})):t.$message({showClose:!0,message:s.err,type:"error"}),e.subloading=!1,e.renamebox=!1})).catch((function(o){e.subloading=!1,o.response||o.request,t.$message({showClose:!0,message:o.response.data.err,type:"error"})}))}else this.$message({showClose:!0,message:"新名称不能为空",type:"error"})},fileTableMClick:function(e){var t=e.target,o=t.tagName.toLowerCase(),s=(e.currentTarget,t),i=null;return"span"==o&&(s=t.parentNode),i=s.getAttribute("mark"),"dirdelete"==i?(this.rmdirform.dir=s.getAttribute("filenames"),void this.rmdirm()):"rename"==i?(this.renamefileform.from=s.getAttribute("filenames"),this.filesuffix=s.getAttribute("suffixs"),this.renamefileform.to="",void(this.renamebox=!0)):"movefiledir"==i?(this.movefileform.from=s.getAttribute("realpath"),this.movefileform.to="",void(this.movebox=!0)):void 0}}},n=l,m=(o("9a2d"),o("2877")),f=Object(m["a"])(n,s,i,!1,null,null,null);t["default"]=f.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b919d04"],{"5a1b":function(e,t,o){e.exports=o.p+"static/img/file.8bc3a8bc.png"},"9a2d":function(e,t,o){"use strict";o("e86e")},e86e:function(e,t,o){},f454:function(e,t,o){"use strict";o.r(t);var s=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.subloading,expression:"subloading"}],staticClass:"filemange_container",attrs:{"element-loading-text":"数据加载中..."}},[s("div",{staticClass:"use_button"},[s("el-button",{attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.dirbox=!0}}},[e._v("创建目录")])],1),s("div",{on:{click:e.fileTableMClick}},[s("el-table",{staticClass:"filesmd verleft",staticStyle:{width:"100%"},attrs:{data:e.dirdata,"empty-text":"暂无子目录数据",border:""}},[s("el-table-column",{attrs:{align:"left",prop:"name",label:"名称"}}),s("el-table-column",{attrs:{align:"left",label:"类型",width:"auto"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("div",{staticClass:"type_file_click"},[s("el-tooltip",{attrs:{content:"进入子目录",placement:"bottom-start",effect:"light"}},[s("a",{attrs:{href:"#/filemange/subfile?id="+e.row.id}},[s("img",{attrs:{src:o("5a1b"),alt:"图片"}})])])],1)]}}])}),s("el-table-column",{attrs:{align:"center",label:"操作",width:"auto"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",{staticClass:"file_caozuo"},[s("el-button",{attrs:{size:"mini",filenames:t.row.name,mark:"rename"}},[e._v("重命名")])],1),s("div",{staticClass:"file_caozuo2"},[s("el-button",{attrs:{size:"mini",realpath:t.row.frealpath,mark:"movefiledir"}},[e._v("移动")]),s("el-button",{attrs:{size:"mini",mark:"dirdelete",filenames:t.row.name,type:"danger"}},[e._v("删除")])],1)]}}])})],1)],1),s("el-dialog",{attrs:{title:"创建目录",visible:e.dirbox},on:{"update:visible":function(t){e.dirbox=t}}},[s("el-form",{attrs:{model:e.dirform}},[s("el-form-item",{attrs:{label:"目录名称","label-width":e.formLabelWidth}},[s("el-input",{attrs:{autocomplete:"off"},model:{value:e.dirform.dir,callback:function(t){e.$set(e.dirform,"dir",t)},expression:"dirform.dir"}})],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.dirbox=!1}}},[e._v("取 消")]),s("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.mkdirs}},[e._v("确 定")])],1)],1),s("el-dialog",{attrs:{title:"重命名",visible:e.renamebox},on:{"update:visible":function(t){e.renamebox=t}}},[s("el-form",{attrs:{model:e.renamefileform}},[s("el-form-item",{attrs:{label:"新名称","label-width":e.formLabelWidth}},[s("el-input",{attrs:{autocomplete:"off"},model:{value:e.renamefileform.to,callback:function(t){e.$set(e.renamefileform,"to",t)},expression:"renamefileform.to"}},[e.filesuffix?s("template",{slot:"append"},[e._v(e._s(e.filesuffix))]):e._e()],2)],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.renamebox=!1}}},[e._v("取 消")]),s("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.renameFileDir}},[e._v("确 定")])],1)],1),s("el-dialog",{attrs:{title:"目录移动弹出框",visible:e.movebox},on:{"update:visible":function(t){e.movebox=t}}},[s("el-form",{attrs:{model:e.movefileform}},[s("el-form-item",{attrs:{label:"当前位置","label-width":e.formLabelWidth}},[s("el-input",{attrs:{autocomplete:"off"},model:{value:e.movefileform.from,callback:function(t){e.$set(e.movefileform,"from",t)},expression:"movefileform.from"}})],1),s("el-form-item",{attrs:{label:"目标位置(请参考当前位置的格式填写目标位置,需要带上当前的文件名称)","label-width":e.formLabelWidth}},[s("el-input",{attrs:{autocomplete:"off"},model:{value:e.movefileform.to,callback:function(t){e.$set(e.movefileform,"to",t)},expression:"movefileform.to"}})],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.movebox=!1}}},[e._v("取 消")]),s("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.moveFileDir}},[e._v("确 定")])],1)],1)],1)},i=[],r=(o("d3b7"),o("159b"),o("b64b"),o("c24f")),a=o("4a9d"),l={created:function(){this.getFileData()},data:function(){return{dirdata:[],subloading:!1,mkdirloadings:!1,dirbox:!1,dirform:{dir:"",parent:""},formLabelWidth:"",rmdirform:{dir:"",parent:""},renamebox:!1,filesuffix:!1,renamefileform:{from:"",to:"",parent:""},movebox:!1,movefileform:{from:"",to:""}}},methods:{getFileData:function(){var e=this,t=this;this.subloading=!0,Object(r["e"])().then((function(t){var o=t.data;if(e.dirdata=[],1==o.code){var s=o.data.menus;s&&(e.dirdata=e.forObjectData(s))}e.subloading=!1})).catch((function(o){o.response?t.$message({showClose:!0,message:o.response.data.err,type:"error"}):o.request?t.$message({showClose:!0,message:o,type:"error"}):t.$message({showClose:!0,message:o.message,type:"error"}),e.subloading=!1}))},forObjectData:function(e){var t=null,o=[];return Object.keys(e).forEach((function(s){var i=null;e[s].filename&&(i=e[s].filename+"."+e[s].extension),t={suffix:e[s].extension||"",image:e[s].path,name:i||e[s].directory,id:e[s].id,frealpath:e[s].realpath||e[s].directory},o.push(t)})),o},mkdirs:function(){var e=this,t=this;this.dirform.dir?(this.mkdirloadings=!0,Object(r["f"])(this.dirform).then((function(o){var s=o.data;1==s.code?(a["a"].$emit("mkdirSuccess"),e.getFileData(),e.dirform.dir="",t.$message({showClose:!0,message:s.msg,type:"success"})):t.$message({showClose:!0,message:s.err,type:"error"}),e.mkdirloadings=!1,e.dirbox=!1})).catch((function(e){e.response?(t.mkdirloadings=!1,t.$message({showClose:!0,message:e.response.data.err,type:"error"})):e.request?t.$message({showClose:!0,message:e,type:"error"}):t.$message({showClose:!0,message:e.message,type:"error"})}))):t.$message({showClose:!0,message:"目录名不能为空",type:"error"})},rmdirm:function(){var e=this,t=this;this.subloading=!0,Object(r["i"])(this.rmdirform).then((function(o){var s=o.data;s.data.dirTree;1==s.code?(a["a"].$emit("mkdirSuccess"),e.getFileData(),t.$message({showClose:!0,message:s.msg,type:"success"})):t.$message({showClose:!0,message:s.err,type:"error"}),e.subloading=!1})).catch((function(o){o.response||o.request,t.$message({showClose:!0,message:o.response.data.err,type:"error"}),e.subloading=!1}))},moveFileDir:function(){var e=this;if(this.movefileform.to&&this.movefileform.from){var t=this;this.subloading=!0,Object(r["g"])(this.movefileform).then((function(o){var s=o.data;1==s.code?(console.log(66666),a["a"].$emit("mkdirSuccess"),e.getFileData(),t.$message({showClose:!0,message:s.msg,type:"success"})):t.$message({showClose:!0,message:s.err,type:"error"}),e.subloading=!1,e.movebox=!1})).catch((function(o){e.subloading=!1,o.response||o.request,t.$message({showClose:!0,message:o.response.data.err,type:"error"})}))}else this.$message({showClose:!0,message:"不能为空",type:"error"})},renameFileDir:function(){var e=this;if(this.renamefileform.to){this.filesuffix&&(this.renamefileform.to+=this.filesuffix);var t=this;this.subloading=!0,Object(r["h"])(this.renamefileform).then((function(o){var s=o.data;1==s.code?(a["a"].$emit("mkdirSuccess"),e.getFileData(),t.$message({showClose:!0,message:s.msg,type:"success"})):t.$message({showClose:!0,message:s.err,type:"error"}),e.subloading=!1,e.renamebox=!1})).catch((function(o){e.subloading=!1,o.response||o.request,t.$message({showClose:!0,message:o.response.data.err,type:"error"})}))}else this.$message({showClose:!0,message:"新名称不能为空",type:"error"})},fileTableMClick:function(e){var t=e.target,o=t.tagName.toLowerCase(),s=(e.currentTarget,t),i=null;return"span"==o&&(s=t.parentNode),i=s.getAttribute("mark"),"dirdelete"==i?(this.rmdirform.dir=s.getAttribute("filenames"),void this.rmdirm()):"rename"==i?(this.renamefileform.from=s.getAttribute("filenames"),this.filesuffix=s.getAttribute("suffixs"),this.renamefileform.to="",void(this.renamebox=!0)):"movefiledir"==i?(this.movefileform.from=s.getAttribute("realpath"),this.movefileform.to="",void(this.movebox=!0)):void 0}}},n=l,m=(o("9a2d"),o("2877")),f=Object(m["a"])(n,s,i,!1,null,null,null);t["default"]=f.exports}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-cbc84f7c.aacabd1a.js b/dist/static/js/chunk-cbc84f7c.5ec0eda8.js similarity index 96% rename from dist/static/js/chunk-cbc84f7c.aacabd1a.js rename to dist/static/js/chunk-cbc84f7c.5ec0eda8.js index ec5f53b..c68e055 100644 --- a/dist/static/js/chunk-cbc84f7c.aacabd1a.js +++ b/dist/static/js/chunk-cbc84f7c.5ec0eda8.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cbc84f7c"],{"5a1b":function(e,t,a){e.exports=a.p+"static/img/file.8bc3a8bc.png"},"9c4f":function(e,t,a){},a434:function(e,t,a){"use strict";var i=a("23e7"),s=a("23cb"),o=a("a691"),r=a("50c4"),l=a("7b0b"),n=a("65f0"),m=a("8418"),d=a("1dde"),f=a("ae40"),c=d("splice"),u=f("splice",{ACCESSORS:!0,0:0,1:2}),g=Math.max,p=Math.min,h=9007199254740991,b="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!c||!u},{splice:function(e,t){var a,i,d,f,c,u,v=l(this),w=r(v.length),y=s(e,w),C=arguments.length;if(0===C?a=i=0:1===C?(a=0,i=w-y):(a=C-2,i=p(g(o(t),0),w-y)),w+a-i>h)throw TypeError(b);for(d=n(v,i),f=0;fw-i+a;f--)delete v[f-1]}else if(a>i)for(f=w-i;f>y;f--)c=f+i-1,u=f+a-1,c in v?v[u]=v[c]:delete v[u];for(f=0;fh)throw TypeError(b);for(d=n(v,i),f=0;fw-i+a;f--)delete v[f-1]}else if(a>i)for(f=w-i;f>y;f--)c=f+i-1,u=f+a-1,c in v?v[u]=v[c]:delete v[u];for(f=0;f + + + diff --git a/src/layout/components/Sidebar/leftMenusData.js b/src/layout/components/Sidebar/leftMenusData.js index 1ed8fdb..14f2c5f 100644 --- a/src/layout/components/Sidebar/leftMenusData.js +++ b/src/layout/components/Sidebar/leftMenusData.js @@ -67,13 +67,13 @@ var menusdata = [ meta: { title: '皮肤更换', icon: 'tree' } } ] - }, - { - id: '4', - path: '/', - meta: { title: '前端展示页面', icon: 'link' } - } + // { + // id: '4', + // path: '/', + // meta: { title: '前端展示页面', icon: 'link' } + + // } ] export default menusdata \ No newline at end of file diff --git a/src/layout/index.vue b/src/layout/index.vue index 878339f..f27164b 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -7,13 +7,13 @@ 后台管理系统
- - + 退出
@@ -30,6 +30,7 @@