From c9fab229cdba8754ae4db76387751f4e04090594 Mon Sep 17 00:00:00 2001 From: wen <1515> Date: Sat, 5 Nov 2022 18:22:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96=E3=80=82?= =?UTF-8?q?=E6=96=B0=E5=A2=9Econfig=E6=8E=A5=E5=8F=A3=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E3=80=82=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=BF=9B=E5=BA=A6?= =?UTF-8?q?=E6=9D=A1=EF=BC=8C=E6=94=AF=E6=8C=81=E5=A4=9A=E5=BC=A0=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.html | 2 +- dist/static/css/app.02ed341d.css | 1 + dist/static/css/app.40c34284.css | 1 - dist/static/css/chunk-0ca0b526.36a6dc56.css | 1 + dist/static/css/chunk-131916dc.fd921d20.css | 1 - dist/static/css/chunk-321d01f1.992eb6c3.css | 1 - dist/static/css/chunk-3d88170c.29596ba5.css | 1 + ...bb60c9.css => chunk-3edb54d0.09bb60c9.css} | 0 dist/static/css/chunk-7739fe40.09d12bc9.css | 1 + dist/static/css/chunk-9519a3ea.f4754777.css | 1 - dist/static/js/app.c29c4220.js | 1 - dist/static/js/app.ddece848.js | 1 + dist/static/js/chunk-0ca0b526.903554fe.js | 1 + dist/static/js/chunk-131916dc.2ae837a0.js | 1 - dist/static/js/chunk-321d01f1.d07b73aa.js | 1 - dist/static/js/chunk-3d88170c.50a3e894.js | 1 + ...02d87e98.js => chunk-3edb54d0.f9a9174f.js} | 2 +- ...5612e2a1.js => chunk-755f3784.57a0ed31.js} | 2 +- dist/static/js/chunk-7739fe40.dee38c5f.js | 1 + dist/static/js/chunk-9519a3ea.ac5ebd68.js | 1 - src/api/user.js | 2 +- src/layout/components/Sidebar/index.vue | 80 +++++++++++++++++-- src/store/modules/settings.js | 22 ++++- src/styles/index.scss | 1 + src/styles/sidebar.scss | 10 ++- src/views/subfile/index.vue | 36 ++++++--- 26 files changed, 141 insertions(+), 32 deletions(-) create mode 100644 dist/static/css/app.02ed341d.css delete mode 100644 dist/static/css/app.40c34284.css create mode 100644 dist/static/css/chunk-0ca0b526.36a6dc56.css delete mode 100644 dist/static/css/chunk-131916dc.fd921d20.css delete mode 100644 dist/static/css/chunk-321d01f1.992eb6c3.css create mode 100644 dist/static/css/chunk-3d88170c.29596ba5.css rename dist/static/css/{chunk-5ac87448.09bb60c9.css => chunk-3edb54d0.09bb60c9.css} (100%) create mode 100644 dist/static/css/chunk-7739fe40.09d12bc9.css delete mode 100644 dist/static/css/chunk-9519a3ea.f4754777.css delete mode 100644 dist/static/js/app.c29c4220.js create mode 100644 dist/static/js/app.ddece848.js create mode 100644 dist/static/js/chunk-0ca0b526.903554fe.js delete mode 100644 dist/static/js/chunk-131916dc.2ae837a0.js delete mode 100644 dist/static/js/chunk-321d01f1.d07b73aa.js create mode 100644 dist/static/js/chunk-3d88170c.50a3e894.js rename dist/static/js/{chunk-5ac87448.02d87e98.js => chunk-3edb54d0.f9a9174f.js} (93%) rename dist/static/js/{chunk-755f3784.5612e2a1.js => chunk-755f3784.57a0ed31.js} (93%) create mode 100644 dist/static/js/chunk-7739fe40.dee38c5f.js delete mode 100644 dist/static/js/chunk-9519a3ea.ac5ebd68.js diff --git a/dist/index.html b/dist/index.html index 629c216..06f68b3 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.02ed341d.css b/dist/static/css/app.02ed341d.css new file mode 100644 index 0000000..c5ec90a --- /dev/null +++ b/dist/static/css/app.02ed341d.css @@ -0,0 +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}.el-message{z-index:6000!important}.content_main .el-drawer__wrapper{z-index:2200!important}#nprogress .bar{background:#409eff!important}@media(max-width:990px){.el-dialog{width:80%}.el-message-box{width:80%;z-index:3000}}#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:2002;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 .current_thme{font-size:14px;color:#fff;padding:0 15px}#app .sidebar-container .current_thme_main{padding:10px 15px;background-color:#152034;border-radius:27px}#app .sidebar-container .current_thme_main svg{margin-right:12px}#app .sidebar-container .current_thme_main span{font-weight:700}#app .sidebar-container .current_version{position:absolute;bottom:129px;left:0;right:0;background-color:#2b3245;font-size:14px;color:#cacdcb;padding:6px 0 36px 48px;text-shadow:1px 1px 0 hsla(0,0%,100%,.3),1px 1px 5px rgba(0,0,0,.1)}#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:196px}#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}blockquote,body,button,code,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,pre,select,td,textarea,th,ul{margin:0;padding:0;font-weight:inherit}.vercenter{text-align:center!important}.verleft{text-align:left!important}.textright{text-align:right!important}.verMiddle{vertical-align:middle!important}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-0c871572]{display:inline-block;font-size:14px;line-height:50px;margin-left:8px}.app-breadcrumb.el-breadcrumb .no-redirect[data-v-0c871572]{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}.sub-el-icon[data-v-18eeea00]{color:currentColor;width:1em;height:1em}.svg-icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.app-main{min-height:100%;width:100%;position:relative;overflow:hidden}.app-main .el-loading-mask{z-index:100}.fixed-header+.app-main{padding-top:50px}.el-popup-parent--hidden .fixed-header{padding-right:15px}[data-v-7d9a6da8]:export{menuText:#bfcbd9;menuActiveText:#409eff;subMenuActiveText:#f4f4f5;menuBg:#2b3245;menuHover:#263445;subMenuBg:#1f2d3d;subMenuHover:#001528;sideBarWidth:210px}.toptitle[data-v-7d9a6da8]{color:#fff;height:91px;padding:0 2% 0 2%;z-index:2005;background-color:#2b3245;position:fixed;top:0;left:0;right:0;overflow:hidden}.toptitle .leftk[data-v-7d9a6da8]{float:left;margin-top:16px;height:60px}.toptitle .leftk>img[data-v-7d9a6da8]{vertical-align:middle;display:inline-block;max-width:100%;height:100%;background-color:#fff;border-radius:50%}.toptitle .leftk>i[data-v-7d9a6da8]{vertical-align:middle;color:#fff;font-size:30px;margin:6px 0 0 15px}.toptitle .rightk[data-v-7d9a6da8]{float:right;margin-top:32px;position:relative}.toptitle .erectline[data-v-7d9a6da8]{margin:0 18px;height:40px;width:1px;background-color:#414758}.toptitle .avatark[data-v-7d9a6da8],.toptitle .erectline[data-v-7d9a6da8]{display:inline-block;vertical-align:middle}.toptitle .avatark>img[data-v-7d9a6da8]{width:58px;background-color:#409eff;border-radius:50%}.app-wrapper[data-v-7d9a6da8]{position:relative;height:100%;width:100%}.app-wrapper[data-v-7d9a6da8]:after{content:"";display:table;clear:both}.app-wrapper.mobile.openSidebar[data-v-7d9a6da8]{position:fixed;top:0}.drawer-bg[data-v-7d9a6da8]{background:#000;opacity:.3;width:100%;top:0;height:100%;position:absolute;z-index:2001}.fixed-header[data-v-7d9a6da8]{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-7d9a6da8]{width:calc(100% - 54px)}.mobile .fixed-header[data-v-7d9a6da8]{width:100%}.content_main[data-v-7d9a6da8]{padding-top:141px}.navbar_main[data-v-7d9a6da8]{width:100%;position:fixed;top:91px;z-index:300}.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/app.40c34284.css b/dist/static/css/app.40c34284.css deleted file mode 100644 index 55fd3aa..0000000 --- a/dist/static/css/app.40c34284.css +++ /dev/null @@ -1 +0,0 @@ -.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}.el-message{z-index:6000!important}.content_main .el-drawer__wrapper{z-index:2200!important}#nprogress .bar{background:#409eff!important}#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:2002;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}blockquote,body,button,code,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,pre,select,td,textarea,th,ul{margin:0;padding:0;font-weight:inherit}.vercenter{text-align:center!important}.verleft{text-align:left!important}.textright{text-align:right!important}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-0c871572]{display:inline-block;font-size:14px;line-height:50px;margin-left:8px}.app-breadcrumb.el-breadcrumb .no-redirect[data-v-0c871572]{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}.svg-icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.app-main{min-height:100%;width:100%;position:relative;overflow:hidden}.app-main .el-loading-mask{z-index:100}.fixed-header+.app-main{padding-top:50px}.el-popup-parent--hidden .fixed-header{padding-right:15px}[data-v-7912d7ab]:export{menuText:#bfcbd9;menuActiveText:#409eff;subMenuActiveText:#f4f4f5;menuBg:#2b3245;menuHover:#263445;subMenuBg:#1f2d3d;subMenuHover:#001528;sideBarWidth:210px}.toptitle[data-v-7912d7ab]{color:#fff;height:91px;padding:0 6% 0 36px;z-index:2005;background-color:#2b3245;position:fixed;top:0;left:0;right:0;overflow:hidden}.toptitle .leftk[data-v-7912d7ab]{float:left;margin-top:16px;height:60px}.toptitle .leftk>img[data-v-7912d7ab]{vertical-align:middle;display:inline-block;max-width:100%;height:100%;background-color:#fff;border-radius:50%}.toptitle .leftk>i[data-v-7912d7ab]{vertical-align:middle;color:#fff;font-size:30px;margin:6px 0 0 15px}.toptitle .rightk[data-v-7912d7ab]{float:right;margin-top:18px;position:relative}.toptitle .erectline[data-v-7912d7ab]{margin:0 18px;height:40px;width:1px;background-color:#414758}.toptitle .avatark[data-v-7912d7ab],.toptitle .erectline[data-v-7912d7ab]{display:inline-block;vertical-align:middle}.toptitle .avatark>img[data-v-7912d7ab]{width:58px;background-color:#409eff;border-radius:50%}.app-wrapper[data-v-7912d7ab]{position:relative;height:100%;width:100%}.app-wrapper[data-v-7912d7ab]:after{content:"";display:table;clear:both}.app-wrapper.mobile.openSidebar[data-v-7912d7ab]{position:fixed;top:0}.drawer-bg[data-v-7912d7ab]{background:#000;opacity:.3;width:100%;top:0;height:100%;position:absolute;z-index:2001}.fixed-header[data-v-7912d7ab]{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-7912d7ab]{width:calc(100% - 54px)}.mobile .fixed-header[data-v-7912d7ab]{width:100%}.content_main[data-v-7912d7ab]{padding-top:141px}.navbar_main[data-v-7912d7ab]{width:100%;position:fixed;top:91px;z-index:300}.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-0ca0b526.36a6dc56.css b/dist/static/css/chunk-0ca0b526.36a6dc56.css new file mode 100644 index 0000000..282b3db --- /dev/null +++ b/dist/static/css/chunk-0ca0b526.36a6dc56.css @@ -0,0 +1 @@ +.subfile_main{padding:26px 5% 47px 5%}.subfile_main .block{margin:0 0 28px 0}.subfile_main .sou_bottom{margin-left:10px}.subfile_main .use_button{margin:15px 0 16px 0}.subfile_main .file_caozuo>button{margin:6px 10px 0 0}.subfile_main .el-table td{padding:9px 0}.subfile_main .folder_bottom a{margin:0 6px}.subfile_main .el-table__body-wrapper img{display:block;max-width:66%;max-height:286px}.subfile_main .el-drawer__body{text-align:center;padding:0 10% 20px 10%}.subfile_main .request_main{text-align:center;margin:12px 0}.subfile_main .addimgtext{line-height:25px;display:inline-block;color:#8c939d;vertical-align:middle}.subfile_main .el-upload--picture-card i{vertical-align:middle}.subfile_main .type_file_click img{width:64px;height:48px}.subfile_main .file_show a,.subfile_main .type_file_click a{display:block} \ No newline at end of file diff --git a/dist/static/css/chunk-131916dc.fd921d20.css b/dist/static/css/chunk-131916dc.fd921d20.css deleted file mode 100644 index c30801f..0000000 --- a/dist/static/css/chunk-131916dc.fd921d20.css +++ /dev/null @@ -1 +0,0 @@ -.toptitle{color:#fff;height:91px;padding:0 6% 0 36px;z-index:2005;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;height:40px;width:1px;background-color:#414758}.toptitle .avatark,.toptitle .erectline{display:inline-block;vertical-align:middle}.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/css/chunk-321d01f1.992eb6c3.css b/dist/static/css/chunk-321d01f1.992eb6c3.css deleted file mode 100644 index 925bcae..0000000 --- a/dist/static/css/chunk-321d01f1.992eb6c3.css +++ /dev/null @@ -1 +0,0 @@ -.subfile_main{padding:26px 5% 47px 5%}.subfile_main .block{margin:0 0 28px 0}.subfile_main .sou_bottom{margin-left:10px}.subfile_main .use_button{margin:15px 0 16px 0}.subfile_main .file_caozuo2>button{margin-top:6px}.subfile_main .el-table td{padding:9px 0}.subfile_main .folder_bottom a{margin:0 6px}.subfile_main .el-table__body-wrapper img{width:100px;height:71px}.subfile_main .el-drawer__body{text-align:center;padding:0 10% 20px 10%}.subfile_main .request_main{text-align:center;margin:12px 0}.subfile_main .addimgtext{line-height:25px;display:inline-block;color:#8c939d;vertical-align:middle}.subfile_main .el-upload--picture-card i{vertical-align:middle}.subfile_main .type_file_click img{width:64px;height:48px}.subfile_main .type_file_click a{display:block} \ No newline at end of file diff --git a/dist/static/css/chunk-3d88170c.29596ba5.css b/dist/static/css/chunk-3d88170c.29596ba5.css new file mode 100644 index 0000000..e9ca6c8 --- /dev/null +++ b/dist/static/css/chunk-3d88170c.29596ba5.css @@ -0,0 +1 @@ +.filemange_container{padding:26px 5% 47px 5%}.filemange_container .block{margin:0 0 28px 0}.filemange_container .sou_bottom{margin-left:10px}.filemange_container .use_button{margin:15px 0 16px 0}.filemange_container .file_caozuo2>button{margin:6px 10px 0 0}.filemange_container .el-table td{padding:9px 0}.filemange_container .folder_bottom a{margin:0 6px}.filemange_container .el-drawer__body{text-align:center;padding:0 10% 20px 10%}.filemange_container .request_main{text-align:center;margin:12px 0}.filemange_container .addimgtext{line-height:25px;display:inline-block;color:#8c939d;vertical-align:middle}.filemange_container .el-upload--picture-card i{vertical-align:middle}.filemange_container .type_file_click img{width:64px;height:48px}.filemange_container .type_file_click a{display:block} \ No newline at end of file diff --git a/dist/static/css/chunk-5ac87448.09bb60c9.css b/dist/static/css/chunk-3edb54d0.09bb60c9.css similarity index 100% rename from dist/static/css/chunk-5ac87448.09bb60c9.css rename to dist/static/css/chunk-3edb54d0.09bb60c9.css diff --git a/dist/static/css/chunk-7739fe40.09d12bc9.css b/dist/static/css/chunk-7739fe40.09d12bc9.css new file mode 100644 index 0000000..7606f76 --- /dev/null +++ b/dist/static/css/chunk-7739fe40.09d12bc9.css @@ -0,0 +1 @@ +.toptitle{color:#fff;height:91px;padding:0 2% 0 2%;z-index:2005;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:32px;position:relative}.toptitle .erectline{margin:0 18px;height:40px;width:1px;background-color:#414758}.toptitle .avatark,.toptitle .erectline{display:inline-block;vertical-align:middle}.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/css/chunk-9519a3ea.f4754777.css b/dist/static/css/chunk-9519a3ea.f4754777.css deleted file mode 100644 index 2dccb68..0000000 --- a/dist/static/css/chunk-9519a3ea.f4754777.css +++ /dev/null @@ -1 +0,0 @@ -.filemange_container{padding:26px 5% 47px 5%}.filemange_container .block{margin:0 0 28px 0}.filemange_container .sou_bottom{margin-left:10px}.filemange_container .use_button{margin:15px 0 16px 0}.filemange_container .file_caozuo2>button{margin-top:6px}.filemange_container .el-table td{padding:9px 0}.filemange_container .folder_bottom a{margin:0 6px}.filemange_container .el-table__body-wrapper img{width:100px;height:71px}.filemange_container .el-drawer__body{text-align:center;padding:0 10% 20px 10%}.filemange_container .request_main{text-align:center;margin:12px 0}.filemange_container .addimgtext{line-height:25px;display:inline-block;color:#8c939d;vertical-align:middle}.filemange_container .el-upload--picture-card i{vertical-align:middle}.filemange_container .type_file_click img{width:64px;height:48px}.filemange_container .type_file_click a{display:block} \ No newline at end of file diff --git a/dist/static/js/app.c29c4220.js b/dist/static/js/app.c29c4220.js deleted file mode 100644 index 899130b..0000000 --- a/dist/static/js/app.c29c4220.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){},"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},"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},5099:function(e,t,n){"use strict";n("721c")},"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"),p=(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}}),f=p,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)}},C={namespaced:!0,state:g,mutations:w,actions:x},y=n("83d6"),O=n.n(y),_=O.a.showSettings,k=O.a.fixedHeader,S=O.a.sidebarLogo,z={showSettings:_,fixedHeader:k,sidebarLogo:S},j={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},E={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},H={namespaced:!0,state:z,mutations:j,actions:E},M=(n("d3b7"),n("498a"),n("c24f")),T=n("5f87"),B=(n("3ca3"),n("ddb0"),n("8c4f")),$=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",{staticClass:"navbar_main",class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),n("app-main")],1)],1)])},L=[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:"图片"}})])}],V=n("c7eb"),A=n("1da1"),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("5530"),I=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)},N=[],G=(n("4de4"),n("99af"),n("bd11")),R=n.n(G),U=[{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"}}]}],F=U,J={data:function(){return{levelList:null,breadcrumbq:!0,getcrumbsData:F,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=R.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))}}},K=J,W=(n("d614"),Object(l["a"])(K,I,N,!1,null,"0c871572",null)),Q=W.exports,X=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"}})])])},Y=[],Z={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ee=Z,te=(n("d49d"),Object(l["a"])(ee,X,Y,!1,null,"49e15297",null)),ne=te.exports,ae={components:{Breadcrumb:Q,Hamburger:ne},computed:Object(P["a"])({},Object(m["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(A["a"])(Object(V["a"])().mark((function t(){return Object(V["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)})))()}}},ie=ae,re=(n("b55f"),Object(l["a"])(ie,q,D,!1,null,"bfe8efa0",null)),se=re.exports,oe=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:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#icon-link"}})]),n("span",[e._v("前端展示页面")])])])])],1)],1)},ce=[],ue=(n("159b"),n("4a9d")),le=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)},de=[],he={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"嘉洛马",logo:"https://static.jialuoma.cn/img/logo_jialuoma.png"}}},me=he,pe=(n("d508"),Object(l["a"])(me,le,de,!1,null,"39d3a2a9",null)),fe=pe.exports,be=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)},ve=[],ge=n("df7c"),we=n.n(ge);n("ac1f"),n("00b4");function xe(e){return/^(https?:|mailto:|tel:)/.test(e)}n("caad"),n("2532");var Ce,ye,Oe={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}},_e=Oe,ke=(n("f15b"),Object(l["a"])(_e,Ce,ye,!1,null,"18eeea00",null)),Se=ke.exports,ze=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)},je=[],Ee={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return xe(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}}}},He=Ee,Me=Object(l["a"])(He,ze,je,!1,null,null,null),Te=Me.exports,Be={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)}}}}},$e={name:"SidebarItem",components:{Item:Se,AppLink:Te},mixins:[Be],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(P["a"])(Object(P["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return xe(e)?e:xe(this.basePath)?this.basePath:we.a.resolve(this.basePath,e)}}},Le=$e,Ve=Object(l["a"])(Le,be,ve,!1,null,null,null),Ae=Ve.exports,qe=n("cf1e"),De=n.n(qe),Pe={components:{SidebarItem:Ae,Logo:fe},created:function(){this.getmunusdata()},mounted:function(){ue["a"].$on("mkdirSuccess",this.getmunusdata);var e=window.location.href;-1!=e.indexOf("filemange/index")&&this.menuopeneds()},data:function(){return{routes:F,openedsindex:[]}},computed:Object(P["a"])(Object(P["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 De.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["d"])().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){}}},Ie=Pe,Ne=(n("5ef9"),Object(l["a"])(Ie,oe,ce,!1,null,null,null)),Ge=Ne.exports,Re=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)},Ue=[],Fe={name:"AppMain",computed:{key:function(){return this.$route.path}}},Je=Fe,Ke=(n("5099"),Object(l["a"])(Je,Re,Ue,!1,null,null,null)),We=Ke.exports,Qe=document,Xe=Qe.body,Ye=992,Ze={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&ft.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&&(ft.dispatch("app/toggleDevice","mobile"),ft.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=Xe.getBoundingClientRect();return e.width-1'});s.a.add(o);t["default"]=o},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},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 r})),n.d(t,"h",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"k",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"g",(function(){return m})),n.d(t,"f",(function(){return p})),n.d(t,"j",(function(){return f}));var a=n("b775"),i=n("5f87");function r(e){return Object(a["a"])({url:"/api/captcha",method:"post",data:e})}function s(e,t){t.response?e.$message({showClose:!0,message:t.response.data.err,type:"error"}):t.request?e.$message({showClose:!0,message:t.request,type:"error"}):e.$message({showClose:!0,message:t.message,type:"error"}),t.response&&401==t.response.status&&(Object(i["b"])(),e.$router.push("/login?redirect=".concat(e.$route.fullPath)))}function o(e){return Object(a["a"])({url:"/api/login",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/api/ls",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/api/mkdir",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/api/uploadbase64",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/api/rmdir",method:"post",data:e})}function h(e){return Object(a["a"])({url:"/api/delete",method:"post",data:e})}function m(e){return Object(a["a"])({url:"/api/rename",method:"post",data:e})}function p(e){return Object(a["a"])({url:"/api/move",method:"post",data:e})}function f(e){return Object(a["a"])({url:"/api/switchtheme/",method:"post",data:e})}},c4c2:function(e,t,n){},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")},d614:function(e,t,n){"use strict";n("fc2b")},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")},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},fc2b:function(e,t,n){}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/dist/static/js/app.ddece848.js b/dist/static/js/app.ddece848.js new file mode 100644 index 0000000..1421bdf --- /dev/null +++ b/dist/static/js/app.ddece848.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0259":function(e,t,n){},"18f0":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.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 i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.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 i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"47f1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"495d":function(e,t,n){},"4a9d":function(e,t,n){"use strict";var i=n("2b0e"),a=new i["default"];t["a"]=a},"4df5":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});s.a.add(o);t["default"]=o},5099:function(e,t,n){"use strict";n("721c")},"51ff":function(e,t,n){var i={"./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 a(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="51ff"},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var i=n("2b0e"),a=n("5c96"),r=n.n(a),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,d=n("2877"),l=Object(d["a"])(u,s,o,!1,null,null,null),h=l.exports,m=n("2f62"),p=(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}}),f=p,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,i=t.withoutAnimation;n("CLOSE_SIDEBAR",i)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},_={namespaced:!0,state:g,mutations:w,actions:x},y=n("83d6"),O=n.n(y),C=O.a.showSettings,k=O.a.fixedHeader,T=O.a.sidebarLogo,z={showSettings:C,fixedHeader:k,sidebarLogo:T,configMain:{version:"",supportedThemes:"",admin_supportedFileTypes:".jpg, .jpeg, .png, .gif, .webp",admin_maxUploadFileSize:5242870,admin_maxUploadFileNumber:5}},M={CONFIG_DATA:function(e,t){e.configMain.version=t.version,e.configMain.supportedThemes=t.currentTheme,e.configMain.admin_supportedFileTypes=t.admin_supportedFileTypes,e.configMain.admin_maxUploadFileSize=t.admin_maxUploadFileSize,e.configMain.admin_maxUploadFileNumber=t.admin_maxUploadFileNumber}},S={configMain:function(e,t){var n=e.commit;n("CONFIG_DATA",t)}},j={namespaced:!0,state:z,mutations:M,actions:S},H=(n("d3b7"),n("498a"),n("c24f")),B=n("5f87"),E=(n("3ca3"),n("ddb0"),n("8c4f")),$=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"},[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",{staticClass:"navbar_main",class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),n("app-main")],1)],1)])},L=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a",{staticClass:"leftk",attrs:{href:"javascript:;"}},[i("img",{attrs:{src:n("7b07"),alt:"图片"}}),i("em",{staticClass:"erectline"}),i("span",[e._v("文件后台管理系统")])])}],A=n("c7eb"),V=n("1da1"),F=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("5530"),q=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,i){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||i==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)},N=[],I=(n("4de4"),n("99af"),n("bd11")),U=n.n(I),G=[{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"}}]}],R=G,J={data:function(){return{levelList:null,breadcrumbq:!0,getcrumbsData:R,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 i in this.extractChild)if(1==this.extractChild[i].id){n=this.extractChild[i];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 i in e)if("undefined"!=typeof e[i]["children"])for(var a in t=this.arrToobj(e[i]["children"]),n[e[i].id]=e[i],t)n[t[a].id]=t[a];else n[e[i].id]=e[i];return n},getBread:function(e,t){if("undefined"==typeof t[e])return!1;var n=[];n[n.length]=t[e];var i="undefined"!=typeof t[e]["pid"]?t[e]["pid"]:0;while(i)n[n.length]=t[i],i="undefined"!=typeof t[i]["pid"]?t[i]["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=U.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))}}},K=J,W=(n("d614"),Object(d["a"])(K,q,N,!1,null,"0c871572",null)),Z=W.exports,Q=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"}})])])},X=[],Y={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ee=Y,te=(n("d49d"),Object(d["a"])(ee,Q,X,!1,null,"49e15297",null)),ne=te.exports,ie={components:{Breadcrumb:Z,Hamburger:ne},computed:Object(P["a"])({},Object(m["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(V["a"])(Object(A["a"])().mark((function t(){return Object(A["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)})))()}}},ae=ie,re=(n("b55f"),Object(d["a"])(ae,F,D,!1,null,"bfe8efa0",null)),se=re.exports,oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[n("div",{staticClass:"current_thme"},[n("a",{staticClass:"current_thme_main",attrs:{href:"/",target:"_blank"}},[n("svg",{staticStyle:{width:"2.2em",height:"2.2em","vertical-align":"middle",fill:"currentColor",overflow:"hidden"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6885"}},[n("path",{attrs:{d:"M512 519.38651473m-485.95124768 0a485.95124768 485.95124768 0 1 0 971.90249536 0 485.95124768 485.95124768 0 1 0-971.90249536 0Z",fill:"#0dd566","p-id":"6886"}}),n("path",{attrs:{d:"M532.58350642 289.14975575l185.14742539 370.32956157a22.97855183 22.97855183 0 0 1-30.78848264 30.8579042l-164.73747299-81.63980958a23.04797347 23.04797347 0 0 0-20.44466318 0l-164.737473 81.63980958a22.97855183 22.97855183 0 0 1-30.78848259-30.8579042l185.14742535-370.32956157a23.04797347 23.04797347 0 0 1 41.20172366 0z",fill:"#FFFFFF","p-id":"6887"}})]),n("span",{staticClass:"verMiddle"},[e._v(e._s(e.supportedThemes))])])]),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:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#icon-link"}})]),n("span",[e._v("前端展示页面")])])])]),n("div",{staticClass:"current_version"},[e._v("version:"+e._s(e.versions))])],1)],1)},ce=[],ue=(n("159b"),n("e439"),n("d81d"),n("4a9d")),de=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)},le=[],he=n("df7c"),me=n.n(he);n("ac1f"),n("00b4");function pe(e){return/^(https?:|mailto:|tel:)/.test(e)}n("caad"),n("2532");var fe,ve,be={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,i=n.icon,a=n.title,r=[];return i&&(i.includes("el-icon")?r.push(e("i",{class:[i,"sub-el-icon"]})):r.push(e("svg-icon",{attrs:{"icon-class":i}}))),a&&r.push(e("span",{slot:"title"},[a])),r}},ge=be,we=(n("f15b"),Object(d["a"])(ge,fe,ve,!1,null,"18eeea00",null)),xe=we.exports,_e=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)},ye=[],Oe={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return pe(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}}}},Ce=Oe,ke=Object(d["a"])(Ce,_e,ye,!1,null,null,null),Te=ke.exports,ze={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)}}}}},Me={name:"SidebarItem",components:{Item:xe,AppLink:Te},mixins:[ze],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,i=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(P["a"])(Object(P["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return pe(e)?e:pe(this.basePath)?this.basePath:me.a.resolve(this.basePath,e)}}},Se=Me,je=Object(d["a"])(Se,de,le,!1,null,null,null),He=je.exports,Be=n("cf1e"),Ee=n.n(Be),$e={components:{SidebarItem:He},created:function(){this.getmunusdata(),this.getconfig()},mounted:function(){ue["a"].$on("mkdirSuccess",this.getmunusdata);var e=window.location.href;-1!=e.indexOf("filemange/index")&&this.menuopeneds()},data:function(){return{routes:R,openedsindex:[]}},computed:Object(P["a"])(Object(P["a"])({},Object(m["b"])(["sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path,i=window.location.href;return-1!=i.indexOf("?id")?i.split("/#")[1]:t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Ee.a},isCollapse:function(){return!this.sidebar.opened},versions:function(){return this.$store.state.settings.configMain.version},supportedThemes:function(){return this.$store.state.settings.configMain.supportedThemes}}),methods:{menuopeneds:function(){var e=this;window.setTimeout((function(){e.openedsindex=["/filemange/index"]}),400)},SplicingMenuTree:function(e){var t=this,n=null,i=[];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)),i.push(n)})),i},getconfig:function(){var e=this;Object(H["b"])().then((function(t){var n=t.data,i=n.data;if(1==n.code){var a={version:i.version,currentTheme:i.currentTheme,admin_supportedFileTypes:i.admin_supportedFileTypes,admin_maxUploadFileSize:i.admin_maxUploadFileSize,admin_maxUploadFileNumber:i.admin_maxUploadFileNumber};if(a.currentTheme=Object.getOwnPropertyDescriptor(i.supportedThemes,a.currentTheme).value,i.admin_supportedFileTypes){var r=null;a.admin_supportedFileTypes=i.admin_supportedFileTypes.map((function(e,t,n){return-1!=e.indexOf("jpeg")&&(r=".jpg"),"."+e.split("/")[1]})),r&&a.admin_supportedFileTypes.push(r)}e.$store.dispatch("settings/configMain",a)}})).catch((function(t){Object(H["i"])(e,t)}))},getmunusdata:function(){var e=this;Object(H["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(t){Object(H["i"])(e,t)}))},handleOpen:function(e,t){}}},Le=$e,Ae=(n("8be4"),Object(d["a"])(Le,oe,ce,!1,null,null,null)),Ve=Ae.exports,Fe=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)},De=[],Pe={name:"AppMain",computed:{key:function(){return this.$route.path}}},qe=Pe,Ne=(n("5099"),Object(d["a"])(qe,Fe,De,!1,null,null,null)),Ie=Ne.exports,Ue=document,Ge=Ue.body,Re=992,Je={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&ut.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&&(ut.dispatch("app/toggleDevice","mobile"),ut.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=Ge.getBoundingClientRect();return e.width-1'});s.a.add(o);t["default"]=o},ab5e:function(e,t,n){"use strict";n("495d")},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 i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});s.a.add(o);t["default"]=o},b55f:function(e,t,n){"use strict";n("0259")},b775:function(e,t,n){"use strict";var i=n("bc3a"),a=i["a"].create({headers:{"Content-Type":"multipart/form-data"},timeout:0});t["a"]=a},c24f:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"i",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"l",(function(){return l})),n.d(t,"j",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"k",(function(){return v}));var i=n("b775"),a=n("5f87");function r(e){return Object(i["a"])({url:"/api/captcha",method:"post",data:e})}function s(e,t){t.response?e.$message({showClose:!0,message:t.response.data.err,type:"error"}):t.request?e.$message({showClose:!0,message:t.request,type:"error"}):e.$message({showClose:!0,message:t.message,type:"error"}),t.response&&401==t.response.status&&(Object(a["b"])(),e.$router.push("/login?redirect=".concat(e.$route.fullPath)))}function o(){return Object(i["a"])({url:"/api/config",method:"get"})}function c(e){return Object(i["a"])({url:"/api/login",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/api/ls",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/api/mkdir",method:"post",data:e})}function l(e,t){return Object(i["a"])({url:"/api/uploadbase64",method:"post",data:e,onUploadProgress:t})}function h(e){return Object(i["a"])({url:"/api/rmdir",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/api/delete",method:"post",data:e})}function p(e){return Object(i["a"])({url:"/api/rename",method:"post",data:e})}function f(e){return Object(i["a"])({url:"/api/move",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/api/switchtheme/",method:"post",data:e})}},c496:function(e,t,n){},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")},d614:function(e,t,n){"use strict";n("fc2b")},d7ec:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.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 i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},eb1b:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.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")},f782:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});s.a.add(o);t["default"]=o},fc2b:function(e,t,n){}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/dist/static/js/chunk-0ca0b526.903554fe.js b/dist/static/js/chunk-0ca0b526.903554fe.js new file mode 100644 index 0000000..2f01179 --- /dev/null +++ b/dist/static/js/chunk-0ca0b526.903554fe.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ca0b526"],{"25f0":function(e,t,i){"use strict";var a=i("6eeb"),l=i("825a"),o=i("d039"),s=i("ad6d"),r="toString",n=RegExp.prototype,c=n[r],d=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=r;(d||f)&&a(RegExp.prototype,r,(function(){var e=l(this),t=String(e.source),i=e.flags,a=String(void 0===i&&e instanceof RegExp&&!("flags"in n)?s.call(e):i);return"/"+t+"/"+a}),{unsafe:!0})},4224:function(e,t,i){},"5a1b":function(e,t,i){e.exports=i.p+"static/img/file.8bc3a8bc.png"},a434:function(e,t,i){"use strict";var a=i("23e7"),l=i("23cb"),o=i("a691"),s=i("50c4"),r=i("7b0b"),n=i("65f0"),c=i("8418"),d=i("1dde"),f=i("ae40"),m=d("splice"),u=f("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,h=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!m||!u},{splice:function(e,t){var i,a,d,f,m,u,b=r(this),w=s(b.length),x=l(e,w),y=arguments.length;if(0===y?i=a=0:1===y?(i=0,a=w-x):(i=y-2,a=h(p(o(t),0),w-x)),w+i-a>g)throw TypeError(v);for(d=n(b,a),f=0;fw-a+i;f--)delete b[f-1]}else if(i>a)for(f=w-a;f>x;f--)m=f+a-1,u=f+i-1,m in b?b[u]=b[m]:delete b[u];for(f=0;fb)throw TypeError(p);for(f=n(v,a),m=0;mw-a+i;m--)delete v[m-1]}else if(i>a)for(m=w-a;m>x;m--)c=m+a-1,u=m+i-1,c in v?v[u]=v[c]:delete v[u];for(m=0;m"+l+""}},"97b4":function(n,e,t){},9911:function(n,e,t){"use strict";var i=t("23e7"),s=t("857a"),a=t("af03");i({target:"String",proto:!0,forced:a("link")},{link:function(n){return s(this,"a","href",n)}})},af03:function(n,e,t){var i=t("d039");n.exports=function(n){return i((function(){var e=""[n]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-755f3784"],{"1e39":function(n,e,t){"use strict";t.r(e);var i=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[n._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[n._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:n.selectbian},model:{value:n.skinvalue,callback:function(e){n.skinvalue=e},expression:"skinvalue"}},n._l(n.options,(function(n){return t("el-option",{key:n.value,attrs:{label:n.label,value:n.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:n.skinloading,type:"primary"},on:{click:n.skinSubmit}},[n._v("提交")]),n.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:n.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[n._v("查看"+n._s(n.skinlabel)+"站点")])],1):n._e()],1)],1)])},s=[],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 n=this,e=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(a["k"])(this.skinForm).then((function(t){var i=t.data;1==i.code?(e.$message({showClose:!0,message:i.msg,type:"success"}),n.skinAsk=!0,l["a"].$emit("mkdirSuccess")):e.$message({showClose:!0,message:i.err,type:"error"}),n.skinloading=!1})).catch((function(e){n.skinloading=!1,Object(a["i"])(n,e)}))},selectbian:function(n){var e=this;this.options.forEach((function(t){t.value==n&&(e.skinlabel=t.label,e.skinLink=t.link+Math.round(1e3*Math.random()))})),this.skinAsk=!1}}},r=o,u=(t("5129"),t("2877")),c=Object(u["a"])(r,i,s,!1,null,null,null);e["default"]=c.exports},5129:function(n,e,t){"use strict";t("97b4")},"857a":function(n,e,t){var i=t("1d80"),s=/"/g;n.exports=function(n,e,t,a){var l=String(i(n)),o="<"+e;return""!==t&&(o+=" "+t+'="'+String(a).replace(s,""")+'"'),o+">"+l+""}},"97b4":function(n,e,t){},9911:function(n,e,t){"use strict";var i=t("23e7"),s=t("857a"),a=t("af03");i({target:"String",proto:!0,forced:a("link")},{link:function(n){return s(this,"a","href",n)}})},af03:function(n,e,t){var i=t("d039");n.exports=function(n){return i((function(){var e=""[n]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-7739fe40.dee38c5f.js b/dist/static/js/chunk-7739fe40.dee38c5f.js new file mode 100644 index 0000000..f52e146 --- /dev/null +++ b/dist/static/js/chunk-7739fe40.dee38c5f.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7739fe40"],{"544c":function(t,e,a){"use strict";a("d0e9")},7209:function(t,e,a){"use strict";a("7ed4")},"7ed4":function(t,e,a){},"9ed6":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-container"},[t._m(0),a("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:t.loginForm,rules:t.loginRules,"auto-complete":"on","label-position":"left"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin(e)}}},[a("div",{staticClass:"title-container"},[a("h3",{staticClass:"title"},[t._v("系统登入")])]),a("el-form-item",{attrs:{prop:"username"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"user"}})],1),a("el-input",{ref:"username",attrs:{placeholder:"用户名",name:"用户名",type:"text",tabindex:"1","auto-complete":"on"},model:{value:t.loginForm.username,callback:function(e){t.$set(t.loginForm,"username",e)},expression:"loginForm.username"}})],1),a("el-form-item",{attrs:{prop:"password"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"password"}})],1),a("el-input",{key:t.passwordType,ref:"password",attrs:{type:t.passwordType,placeholder:"密码",name:"密码",tabindex:"2","auto-complete":"on"},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}}),a("span",{staticClass:"show-pwd",on:{click:t.showPwd}},[a("svg-icon",{attrs:{"icon-class":"password"===t.passwordType?"eye":"eye-open"}})],1)],1),a("div",{staticClass:"captcha_k"},[a("el-form-item",{attrs:{prop:"captcha"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"example"}})],1),a("el-input",{ref:"captcha",attrs:{placeholder:"验证码",name:"用户名",type:"text",tabindex:"3","auto-complete":"on"},model:{value:t.loginForm.captcha,callback:function(e){t.$set(t.loginForm,"captcha",e)},expression:"loginForm.captcha"}})],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.captcha_loading,expression:"captcha_loading"}],staticClass:"captcha_main",on:{click:t.getcaptcha}},[t.captcha_loading?t._e():a("img",{staticClass:"captcha_img",attrs:{src:t.captchaimg,alt:"验证码"}})])],1),a("el-button",{staticClass:"bt_login",attrs:{loading:t.loading,type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.handleLogin(e)}}},[t._v("登入")]),a("el-button",{staticClass:"bt_rest bt_login",on:{click:function(e){return t.resetForm("loginForm")}}},[t._v("重置")])],1)],1)},n=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"toptitle clearfix"},[s("a",{staticClass:"leftk",attrs:{href:"javascript:;"}},[s("img",{attrs:{src:a("7b07"),alt:"图片"}}),s("em",{staticClass:"erectline"}),s("span",[t._v("后台管理系统")])])])}],o=a("c24f"),r={created:function(){this.getcaptcha()},data:function(){var t=function(t,e,a){e.length<3?a(new Error("请输入正确的用户名")):a()},e=function(t,e,a){e.length<6?a(new Error("请输入正确的密码")):a()},a=function(t,e,a){e.length<5?a(new Error("请输入正确的验证码")):a()};return{loading:!1,captcha_loading:!0,passwordType:"password",redirect:void 0,loginForm:{username:"filesite",password:"88888888",captcha:""},captchaimg:"",loginRules:{username:[{required:!0,trigger:"blur",validator:t}],password:[{required:!0,trigger:"blur",validator:e}],captcha:[{required:!0,trigger:"blur",validator:a}]}}},watch:{$route:{handler:function(t){this.redirect=t.query&&t.query.redirect},immediate:!0}},methods:{getcaptcha:function(){var t=this;this.captcha_loading=!0,Object(o["a"])().then((function(e){var a=e.data;t.captchaimg=a.data,t.captcha_loading=!1}))},showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="text":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},handleLogin:function(){var t=this;this.$refs.loginForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0;t.$store.dispatch("user/login",t.loginForm).then((function(e){var a=e.data;1==a.code?(t.$router.push({path:t.redirect||"/filemange/index"}),t.$message({showClose:!0,message:a.msg,type:"success"})):0==a.code&&t.$message({showClose:!0,message:a.err,type:"error"}),t.loading=!1})).catch((function(e){Object(o["i"])(t,e),t.loading=!1}))}))},resetForm:function(t){this.$refs[t].resetFields()}}},i=r,c=(a("7209"),a("544c"),a("2877")),l=Object(c["a"])(i,s,n,!1,null,null,null);e["default"]=l.exports},d0e9:function(t,e,a){}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-9519a3ea.ac5ebd68.js b/dist/static/js/chunk-9519a3ea.ac5ebd68.js deleted file mode 100644 index 13e207a..0000000 --- a/dist/static/js/chunk-9519a3ea.ac5ebd68.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9519a3ea"],{"5a1b":function(e,t,i){e.exports=i.p+"static/img/file.8bc3a8bc.png"},"94d2":function(e,t,i){},f454:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.subloading,expression:"subloading"}],staticClass:"filemange_container",attrs:{"element-loading-text":"数据加载中..."}},[o("div",{staticClass:"use_button"},[o("el-button",{attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.dirbox=!0}}},[e._v("创建目录")])],1),o("div",{on:{click:e.fileTableMClick}},[o("el-table",{staticClass:"filesmd verleft",staticStyle:{width:"100%"},attrs:{data:e.dirdata,"empty-text":"暂无文件夹数据",border:""}},[o("el-table-column",{attrs:{align:"left",prop:"name",label:"名称"}}),o("el-table-column",{attrs:{align:"left",label:"类型",width:"auto"},scopedSlots:e._u([{key:"default",fn:function(e){return[o("div",{staticClass:"type_file_click"},[o("el-tooltip",{attrs:{content:"进入子目录",placement:"bottom-start",effect:"light"}},[o("a",{attrs:{href:"#/filemange/subfile?id="+e.row.id}},[o("img",{attrs:{src:i("5a1b"),alt:"图片"}})])])],1)]}}])}),o("el-table-column",{attrs:{align:"center",label:"操作",width:"auto"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("div",{staticClass:"file_caozuo"},[o("el-button",{attrs:{size:"mini",filenames:t.row.name,mark:"rename"}},[e._v("重命名")])],1),o("div",{staticClass:"file_caozuo2"},[o("el-button",{attrs:{size:"mini",realpath:t.row.frealpath,mark:"movefiledir"}},[e._v("移动")]),o("el-button",{attrs:{size:"mini",mark:"dirdelete",filenames:t.row.name,type:"danger"}},[e._v("删除")])],1)]}}])})],1)],1),o("el-dialog",{attrs:{title:"创建目录",visible:e.dirbox},on:{"update:visible":function(t){e.dirbox=t}}},[o("el-form",{attrs:{model:e.dirform}},[o("el-form-item",{attrs:{label:"目录名称","label-width":e.formLabelWidth}},[o("el-input",{attrs:{autocomplete:"off"},model:{value:e.dirform.dir,callback:function(t){e.$set(e.dirform,"dir",t)},expression:"dirform.dir"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dirbox=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.mkdirs}},[e._v("确 定")])],1)],1),o("el-dialog",{attrs:{title:"重命名",visible:e.renamebox},on:{"update:visible":function(t){e.renamebox=t}}},[o("el-form",{attrs:{model:e.renamefileform}},[o("el-form-item",{attrs:{label:"新名称","label-width":e.formLabelWidth}},[o("el-input",{attrs:{autocomplete:"off"},model:{value:e.renamefileform.to,callback:function(t){e.$set(e.renamefileform,"to",t)},expression:"renamefileform.to"}},[e.filesuffix?o("template",{slot:"append"},[e._v(e._s(e.filesuffix))]):e._e()],2)],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.renamebox=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.renameFileDir}},[e._v("确 定")])],1)],1),o("el-dialog",{attrs:{title:"目录移动弹出框",visible:e.movebox},on:{"update:visible":function(t){e.movebox=t}}},[o("el-form",{attrs:{model:e.movefileform}},[o("el-form-item",{attrs:{label:"当前位置","label-width":e.formLabelWidth}},[o("el-input",{attrs:{autocomplete:"off"},model:{value:e.movefileform.from,callback:function(t){e.$set(e.movefileform,"from",t)},expression:"movefileform.from"}})],1),o("el-form-item",{attrs:{label:"目标位置(请参考当前位置的格式填写目标位置,需要带上当前的文件名称)","label-width":e.formLabelWidth}},[o("el-input",{attrs:{autocomplete:"off"},model:{value:e.movefileform.to,callback:function(t){e.$set(e.movefileform,"to",t)},expression:"movefileform.to"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.movebox=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.moveFileDir}},[e._v("确 定")])],1)],1)],1)},a=[],r=(i("d3b7"),i("159b"),i("b64b"),i("c24f")),s=i("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;this.subloading=!0,Object(r["d"])().then((function(t){var i=t.data;if(e.dirdata=[],1==i.code){var o=i.data.menus;o&&(e.dirdata=e.forObjectData(o))}e.subloading=!1})).catch((function(t){Object(r["h"])(e,t),e.subloading=!1}))},forObjectData:function(e){var t=null,i=[];return Object.keys(e).forEach((function(o){var a=null;e[o].filename&&(a=e[o].filename+"."+e[o].extension),t={suffix:e[o].extension||"",image:e[o].path,name:a||e[o].directory,id:e[o].id,frealpath:e[o].realpath||e[o].directory},i.push(t)})),i},mkdirs:function(){var e=this,t=this;this.dirform.dir?(this.mkdirloadings=!0,Object(r["e"])(this.dirform).then((function(i){var o=i.data;1==o.code?(s["a"].$emit("mkdirSuccess"),e.getFileData(),e.dirform.dir="",t.$message({showClose:!0,message:o.msg,type:"success"})):t.$message({showClose:!0,message:o.err,type:"error"}),e.mkdirloadings=!1,e.dirbox=!1})).catch((function(t){e.mkdirloadings=!1,Object(r["h"])(e,t)}))):t.$message({showClose:!0,message:"目录名不能为空",type:"error"})},rmdirm:function(){var e=this,t=this;this.subloading=!0,Object(r["i"])(this.rmdirform).then((function(i){var o=i.data;o.data.dirTree;1==o.code?(s["a"].$emit("mkdirSuccess"),e.getFileData(),t.$message({showClose:!0,message:o.msg,type:"success"})):t.$message({showClose:!0,message:o.err,type:"error"}),e.subloading=!1})).catch((function(t){Object(r["h"])(e,t),e.subloading=!1}))},moveFileDir:function(){var e=this;if(this.movefileform.to&&this.movefileform.from){var t=this;this.subloading=!0,Object(r["f"])(this.movefileform).then((function(i){var o=i.data;1==o.code?(console.log(66666),s["a"].$emit("mkdirSuccess"),e.getFileData(),t.$message({showClose:!0,message:o.msg,type:"success"})):t.$message({showClose:!0,message:o.err,type:"error"}),e.subloading=!1,e.movebox=!1})).catch((function(t){e.subloading=!1,Object(r["h"])(e,t)}))}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["g"])(this.renamefileform).then((function(i){var o=i.data;1==o.code?(s["a"].$emit("mkdirSuccess"),e.getFileData(),t.$message({showClose:!0,message:o.msg,type:"success"})):t.$message({showClose:!0,message:o.err,type:"error"}),e.subloading=!1,e.renamebox=!1})).catch((function(t){e.subloading=!1,Object(r["h"])(e,t)}))}else this.$message({showClose:!0,message:"新名称不能为空",type:"error"})},fileTableMClick:function(e){var t=e.target,i=t.tagName.toLowerCase(),o=(e.currentTarget,t),a=null;return"span"==i&&(o=t.parentNode),a=o.getAttribute("mark"),"dirdelete"==a?(this.rmdirform.dir=o.getAttribute("filenames"),void this.rmdirm()):"rename"==a?(this.renamefileform.from=o.getAttribute("filenames"),this.filesuffix=o.getAttribute("suffixs"),this.renamefileform.to="",void(this.renamebox=!0)):"movefiledir"==a?(this.movefileform.from=o.getAttribute("realpath"),this.movefileform.to="",void(this.movebox=!0)):void 0}}},n=l,m=(i("fd80"),i("2877")),f=Object(m["a"])(n,o,a,!1,null,null,null);t["default"]=f.exports},fd80:function(e,t,i){"use strict";i("94d2")}}]); \ No newline at end of file diff --git a/src/api/user.js b/src/api/user.js index af7ce4e..797ffb9 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -27,7 +27,7 @@ export function requesterr(thiss, err) { } } // 系统配置接口 -export function config() { +export function configMain() { return request({ url: '/api/config', method: 'get' diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index db8c1fc..1ee06cb 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -1,7 +1,13 @@ @@ -32,14 +39,15 @@ import EventBus from '@/utils/EventBus.js' import SidebarItem from './SidebarItem' import variables from '@/styles/variables.scss' import menusdata from './leftMenusData.js' -import {requesterr, mirlist } from '@/api/user' +import {requesterr, mirlist, configMain } from '@/api/user' //console.log(menusdata); export default { components: { SidebarItem }, created: function () { - this.getmunusdata(); + this.getmunusdata(); //获取文件管理数据 + this.getconfig() //获取配置数据 }, @@ -58,7 +66,10 @@ export default { return { routes:menusdata, // 默认展开的菜单index ,这里submen的index值就是当前路径 - openedsindex:[] + openedsindex:[], + + // 版本信息和当前主题 + } }, computed: { @@ -94,7 +105,14 @@ export default { }, isCollapse() { return !this.sidebar.opened + }, + versions() { + return this.$store.state.settings.configMain.version + }, + supportedThemes() { + return this.$store.state.settings.configMain.supportedThemes } + }, methods: { @@ -132,6 +150,52 @@ export default { return arrMenus; }, + getconfig() { + configMain().then(response => { + let datamain = response.data; + let datamains = datamain.data + if (datamain.code == 1) { + + let configdata = { + version:datamains.version, //版本信息 + currentTheme: datamains.currentTheme, //当前皮肤 + admin_supportedFileTypes: datamains.admin_supportedFileTypes, // 允许上传的文件类型 + admin_maxUploadFileSize: datamains.admin_maxUploadFileSize, //允许上传的单个文件大小 + admin_maxUploadFileNumber : datamains.admin_maxUploadFileNumber //一次允许上传的文件数量 + } + + // 根据当前皮肤得到对应的中文皮肤名字 + configdata.currentTheme = Object.getOwnPropertyDescriptor(datamains.supportedThemes, configdata.currentTheme).value + // 遍历拆分得到正确的文件后缀 + if (datamains.admin_supportedFileTypes) { + let jpgs = null; + configdata.admin_supportedFileTypes = datamains.admin_supportedFileTypes.map((item, index, ary) => { + + if (item.indexOf('jpeg') != -1) { + //console.log(item); + jpgs = '.jpg' + } + return '.'+item.split('/')[1]; + + }) + if (jpgs) { + configdata.admin_supportedFileTypes.push(jpgs); + } + + } + + //console.log(configdata.admin_supportedFileTypes); + + this.$store.dispatch('settings/configMain', configdata) + } + + + }).catch(error => { + //console.log(999); + requesterr(this, error); + }); + }, + getmunusdata() { let thiss = this; //console.log(1); @@ -149,9 +213,9 @@ export default { } - }).catch(function (error) { - requesterr(this, error); - }); + }).catch(error => { + requesterr(this, error); + }); }, handleOpen(key, keyPath) { diff --git a/src/store/modules/settings.js b/src/store/modules/settings.js index 0587ca6..9021006 100644 --- a/src/store/modules/settings.js +++ b/src/store/modules/settings.js @@ -5,7 +5,16 @@ const { showSettings, fixedHeader, sidebarLogo } = defaultSettings const state = { showSettings: showSettings, fixedHeader: fixedHeader, - sidebarLogo: sidebarLogo + sidebarLogo: sidebarLogo, + +// 系统配置 + configMain: { + version:'', + supportedThemes: '', + admin_supportedFileTypes: '.jpg, .jpeg, .png, .gif, .webp', + admin_maxUploadFileSize: 5242870, + admin_maxUploadFileNumber: 5 + } } const mutations = { @@ -15,12 +24,23 @@ const mutations = { // state[key] = value // } // } + CONFIG_DATA: (state, configdata) => { + state.configMain.version = configdata.version + state.configMain.supportedThemes = configdata.currentTheme + state.configMain.admin_supportedFileTypes = configdata.admin_supportedFileTypes + state.configMain.admin_maxUploadFileSize = configdata.admin_maxUploadFileSize + state.configMain.admin_maxUploadFileNumber = configdata.admin_maxUploadFileNumber + } } const actions = { // changeSetting({ commit }, data) { // commit('CHANGE_SETTING', data) // } + configMain({ commit }, configdata) { + //console.log(configdata); + commit('CONFIG_DATA', configdata) + } } export default { diff --git a/src/styles/index.scss b/src/styles/index.scss index cae485f..41e0dab 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -15,6 +15,7 @@ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input .vercenter{text-align:center !important;} .verleft{text-align:left !important;} .textright{text-align:right !important;} +.verMiddle{vertical-align:middle !important;} label { font-weight: 700; } diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index 81a985e..63bf05e 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -23,6 +23,14 @@ .el_submenu_link{width:76%;height:56px;z-index:100;position:absolute;left:0;top:0;bottom:0;right:10%;} .el_submenu_link:hover{background-color:rgba(0, 0, 0, 0.3);} + // 当前皮肤css + .current_thme{font-size:14px;color:#FFF;padding:0 15px;} + .current_thme_main{padding:10px 15px;background-color:#152034;border-radius:27px;} + .current_thme_main svg{margin-right:12px;} + .current_thme_main span{font-weight:bold;} + + // 当前版本 + .current_version{position:absolute;bottom:129px;left:0;right:0;background-color:#2b3245;font-size:14px;color:#cacdcb;padding:6px 0 36px 48px;text-shadow:1px 1px 0 rgb(255 255 255 / 30%),1px 1px 5px rgb(0 0 0 / 10%);} // reset element-ui css .horizontal-collapse-transition { @@ -33,7 +41,7 @@ overflow-x: hidden !important; } - .el-scrollbar__view{padding-bottom:92px;} + .el-scrollbar__view{padding-bottom:196px;} .el-scrollbar__bar.is-vertical { right: 0px; diff --git a/src/views/subfile/index.vue b/src/views/subfile/index.vue index 56a74db..390f827 100644 --- a/src/views/subfile/index.vue +++ b/src/views/subfile/index.vue @@ -6,7 +6,7 @@ {{data.directory}} --> - +
创建目录