diff --git a/dist/index.html b/dist/index.html index 54a971d..3b407c1 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/jialuoma2.ico b/dist/jialuoma2.ico deleted file mode 100644 index f989c62..0000000 Binary files a/dist/jialuoma2.ico and /dev/null differ diff --git a/dist/static/css/app.02ed341d.css b/dist/static/css/app.02ed341d.css deleted file mode 100644 index c5ec90a..0000000 --- a/dist/static/css/app.02ed341d.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}@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.294e9f71.css b/dist/static/css/app.294e9f71.css new file mode 100644 index 0000000..15e8d3d --- /dev/null +++ b/dist/static/css/app.294e9f71.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}.el-message-box__wrapper{z-index:2300!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:10px 0 28px 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-1b69e997]:export{menuText:#bfcbd9;menuActiveText:#409eff;subMenuActiveText:#f4f4f5;menuBg:#2b3245;menuHover:#263445;subMenuBg:#1f2d3d;subMenuHover:#001528;sideBarWidth:210px}.toptitle[data-v-1b69e997]{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-1b69e997]{float:left;margin-top:16px;height:60px}.toptitle .leftk>img[data-v-1b69e997]{vertical-align:middle;display:inline-block;max-width:100%;height:100%;background-color:#fff;border-radius:50%}.toptitle .leftk>i[data-v-1b69e997]{vertical-align:middle;color:#fff;font-size:30px;margin:6px 0 0 15px}.toptitle .rightk[data-v-1b69e997]{float:right;margin-top:32px;position:relative}.toptitle .erectline[data-v-1b69e997]{margin:0 18px;height:40px;width:1px;background-color:#414758}.toptitle .avatark[data-v-1b69e997],.toptitle .erectline[data-v-1b69e997]{display:inline-block;vertical-align:middle}.toptitle .avatark>img[data-v-1b69e997]{width:58px;background-color:#409eff;border-radius:50%}.app-wrapper[data-v-1b69e997]{position:relative;height:100%;width:100%}.app-wrapper[data-v-1b69e997]:after{content:"";display:table;clear:both}.app-wrapper.mobile.openSidebar[data-v-1b69e997]{position:fixed;top:0}.drawer-bg[data-v-1b69e997]{background:#000;opacity:.3;width:100%;top:0;height:100%;position:absolute;z-index:2001}.fixed-header[data-v-1b69e997]{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-1b69e997]{width:calc(100% - 54px)}.mobile .fixed-header[data-v-1b69e997]{width:100%}.content_main[data-v-1b69e997]{padding-top:141px}.navbar_main[data-v-1b69e997]{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-5840c19e.3f792b5c.css similarity index 67% rename from dist/static/css/chunk-0ca0b526.36a6dc56.css rename to dist/static/css/chunk-5840c19e.3f792b5c.css index 282b3db..108494e 100644 --- a/dist/static/css/chunk-0ca0b526.36a6dc56.css +++ b/dist/static/css/chunk-5840c19e.3f792b5c.css @@ -1 +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 +.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:68%;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 .type_file_click a{display:block}.subfile_main .file_show a{display:block;min-height:156px;min-width:140px}@media(max-width:990px){.subfile_main .el-table__body-wrapper img{max-width:100%}} \ No newline at end of file diff --git a/dist/static/css/chunk-3d88170c.29596ba5.css b/dist/static/css/chunk-e9a7ef4e.29596ba5.css similarity index 100% rename from dist/static/css/chunk-3d88170c.29596ba5.css rename to dist/static/css/chunk-e9a7ef4e.29596ba5.css diff --git a/dist/static/img/file.8bc3a8bc.png b/dist/static/img/file.8bc3a8bc.png deleted file mode 100644 index 086387c..0000000 Binary files a/dist/static/img/file.8bc3a8bc.png and /dev/null differ diff --git a/dist/static/js/app.79669312.js b/dist/static/js/app.79669312.js deleted file mode 100644 index b0c7c3e..0000000 --- a/dist/static/js/app.79669312.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 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,T=O.a.fixedHeader,k=O.a.sidebarLogo,M={showSettings:C,fixedHeader:T,sidebarLogo:k,configMain:{version:"",supportedThemes:"",admin_supportedFileTypes:".jpg, .jpeg, .png, .gif, .webp",admin_maxUploadFileSize:5242870,admin_maxUploadFileNumber:5}},z={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},THME_NAME:function(e,t){e.configMain.supportedThemes=t}},S={configMain:function(e,t){var n=e.commit;n("CONFIG_DATA",t)},thmename:function(e,t){var n=e.commit;n("THME_NAME",t)}},j={namespaced:!0,state:M,mutations:z,actions:S},E=(n("d3b7"),n("498a"),n("c24f")),H=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"},[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=[],N=n("5530"),P=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)},q=[],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,P,q,!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(N["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,Te=Object(d["a"])(Ce,_e,ye,!1,null,null,null),ke=Te.exports,Me={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)}}}}},ze={name:"SidebarItem",components:{Item:xe,AppLink:ke},mixins:[Me],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(N["a"])(Object(N["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=ze,je=Object(d["a"])(Se,de,le,!1,null,null,null),Ee=je.exports,He=n("cf1e"),Be=n.n(He),$e={components:{SidebarItem:Ee},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(N["a"])(Object(N["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 Be.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(E["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(E["i"])(e,t)}))},getmunusdata:function(){var e=this;Object(E["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(E["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=[],Ne={name:"AppMain",computed:{key:function(){return this.$route.path}}},Pe=Ne,qe=(n("5099"),Object(d["a"])(Pe,Fe,De,!1,null,null,null)),Ie=qe.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/app.e3f2c470.js b/dist/static/js/app.e3f2c470.js new file mode 100644 index 0000000..1a6288f --- /dev/null +++ b/dist/static/js/app.e3f2c470.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},"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,T=O.a.fixedHeader,k=O.a.sidebarLogo,M={showSettings:C,fixedHeader:T,sidebarLogo:k,configMain:{version:"",supportedThemes:"",admin_supportedFileTypes:".jpg, .jpeg, .png, .gif, .webp",admin_maxUploadFileSize:20971520,admin_maxUploadFileNumber:5}},z={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},THME_NAME:function(e,t){e.configMain.supportedThemes=t}},S={configMain:function(e,t){var n=e.commit;n("CONFIG_DATA",t)},thmename:function(e,t){var n=e.commit;n("THME_NAME",t)}},j={namespaced:!0,state:M,mutations:z,actions:S},E=(n("d3b7"),n("498a"),n("c24f")),H=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"},[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=[],N=n("5530"),P=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)},q=[],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,P,q,!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(N["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,Te=Object(d["a"])(Ce,_e,ye,!1,null,null,null),ke=Te.exports,Me={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)}}}}},ze={name:"SidebarItem",components:{Item:xe,AppLink:ke},mixins:[Me],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(N["a"])(Object(N["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=ze,je=Object(d["a"])(Se,de,le,!1,null,null,null),Ee=je.exports,He=n("cf1e"),Be=n.n(He),$e={components:{SidebarItem:Ee},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(N["a"])(Object(N["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 Be.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(E["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(E["i"])(e,t)}))},getmunusdata:function(){var e=this;Object(E["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(E["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=[],Ne={name:"AppMain",computed:{key:function(){return this.$route.path}}},Pe=Ne,qe=(n("5099"),Object(d["a"])(Pe,Fe,De,!1,null,null,null)),Ie=qe.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},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},c24e:function(e,t,n){},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.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")},f4d6:function(e,t,n){"use strict";n("c24e")},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 deleted file mode 100644 index 2f01179..0000000 --- a/dist/static/js/chunk-0ca0b526.903554fe.js +++ /dev/null @@ -1 +0,0 @@ -(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;f0;(o>>>=1)&&(t+=t))1&o&&(i+=t);return i}},"25f0":function(e,t,i){"use strict";var a=i("6eeb"),l=i("825a"),o=i("d039"),r=i("ad6d"),s="toString",n=RegExp.prototype,c=n[s],d=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=s;(d||f)&&a(RegExp.prototype,s,(function(){var e=l(this),t=String(e.source),i=e.flags,a=String(void 0===i&&e instanceof RegExp&&!("flags"in n)?r.call(e):i);return"/"+t+"/"+a}),{unsafe:!0})},"408a":function(e,t,i){var a=i("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=a(e))throw TypeError("Incorrect invocation");return+e}},7156:function(e,t,i){var a=i("861d"),l=i("d2bb");e.exports=function(e,t,i){var o,r;return l&&"function"==typeof(o=t.constructor)&&o!==i&&a(r=o.prototype)&&r!==i.prototype&&l(e,r),e}},a434:function(e,t,i){"use strict";var a=i("23e7"),l=i("23cb"),o=i("a691"),r=i("50c4"),s=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}),h=Math.max,p=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=s(this),w=r(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=p(h(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;f2)if(c=g(c),t=c.charCodeAt(0),43===t||45===t){if(i=c.charCodeAt(2),88===i||120===i)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:a=2,l=49;break;case 79:case 111:a=8,l=55;break;default:return+c}for(o=c.slice(2),r=o.length,s=0;sl)return NaN;return parseInt(o,a)}return+c};if(o(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var C,F=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof F&&(x?f((function(){w.valueOf.call(i)})):n(i)!=v)?c(new b(y(t)),i,F):y(t)},k=a?u(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),z=0;k.length>z;z++)s(b,C=k[z])&&!s(F,C)&&p(F,C,h(b,C));F.prototype=w,w.constructor=F,r(l,v,F)}},b680:function(e,t,i){"use strict";var a=i("23e7"),l=i("a691"),o=i("408a"),r=i("1148"),s=i("d039"),n=1..toFixed,c=Math.floor,d=function(e,t,i){return 0===t?i:t%2===1?d(e,t-1,i*e):d(e*e,t/2,i)},f=function(e){var t=0,i=e;while(i>=4096)t+=12,i/=4096;while(i>=2)t+=1,i/=2;return t},m=n&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){n.call({})}));a({target:"Number",proto:!0,forced:m},{toFixed:function(e){var t,i,a,s,n=o(this),m=l(e),u=[0,0,0,0,0,0],h="",p="0",g=function(e,t){var i=-1,a=t;while(++i<6)a+=e*u[i],u[i]=a%1e7,a=c(a/1e7)},v=function(e){var t=6,i=0;while(--t>=0)i+=u[t],u[t]=c(i/e),i=i%e*1e7},b=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==u[e]){var i=String(u[e]);t=""===t?i:t+r.call("0",7-i.length)+i}return t};if(m<0||m>20)throw RangeError("Incorrect fraction digits");if(n!=n)return"NaN";if(n<=-1e21||n>=1e21)return String(n);if(n<0&&(h="-",n=-n),n>1e-21)if(t=f(n*d(2,69,1))-69,i=t<0?n*d(2,-t,1):n/d(2,t,1),i*=4503599627370496,t=52-t,t>0){g(0,i),a=m;while(a>=7)g(1e7,0),a-=7;g(d(10,a,1),0),a=t-1;while(a>=23)v(1<<23),a-=23;v(1<0?(s=p.length,p=h+(s<=m?"0."+r.call("0",m-s)+p:p.slice(0,s-m)+"."+p.slice(s-m))):p=h+p,p}})},bfac:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.subloading,expression:"subloading"}],staticClass:"subfile_main",attrs:{"element-loading-text":e.loadingText}},[i("div",[i("div",{staticClass:"use_button textright"},[i("el-button",{attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.dirbox=!0}}},[e._v("创建目录")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.uploadDrawer=!0}}},[e._v("上传"),i("i",{staticClass:"el-icon-upload el-icon--right"})]),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-right"},on:{click:e.getFileData}},[e._v("刷新")])],1),i("div",{on:{click:function(t){return t.stopPropagation(),e.fileTableMClick(t)}}},[i("el-table",{staticClass:"filesmd",staticStyle:{width:"100%"},attrs:{data:e.dirdata,"empty-text":"无文件夹数据","row-style":{"background-color":"#fffdfa"}}},[i("el-table-column",{attrs:{align:"left",prop:"name",label:"名称","min-width":"25%"}}),i("el-table-column",{attrs:{align:"left",label:"类型","min-width":"30%"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("div",{staticClass:"type_file_click"},[i("a",{attrs:{title:"点击进入子文件夹",href:"#/filemange/subfile?id="+e.row.id}},[i("svg",{staticClass:"fileicon",staticStyle:{width:"5.15234375em",height:"5em","vertical-align":"middle",fill:"currentColor",overflow:"hidden"},attrs:{viewBox:"0 0 1180 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4701"}},[i("path",{attrs:{d:"M1099.433546 289.842983h-1.08787v-99.462424a128.679511 128.679511 0 0 0-93.246023-126.65918v-3.263611A60.454505 60.454505 0 0 0 944.023508 0.003264H729.246837A60.454505 60.454505 0 0 0 668.326102 59.836128H122.526051A126.65918 126.65918 0 0 0 0.062941 190.380559V890.502778a12.277393 12.277393 0 0 0 2.331151 6.216401v1.243281c0 72.110257 46.623011 126.03754 113.760147 126.03754H969.821575c67.603366 0 105.212595-68.225006 122.463109-130.544431L1174.652004 419.610365c18.182974-75.063048-7.459682-129.767381-75.218458-129.767382z m-897.337556 0a160.072339 160.072339 0 0 0-132.253942 78.637479v-124.32803a73.198128 73.198128 0 0 1 46.623011-54.859743H668.326102a60.609915 60.609915 0 0 1 60.454505-59.988274h215.242901a60.609915 60.609915 0 0 1 60.454505 60.609914v3.108201a126.50377 126.50377 0 0 1 90.604052 97.908324z",fill:"#FFE680","p-id":"4702"}})])])])]}}])}),i("el-table-column",{attrs:{align:"left",label:"操作","min-width":"45%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"file_caozuo"},[i("el-button",{attrs:{size:"mini",filenames:t.row.name,mark:"rename"}},[e._v("重命名")])],1),i("div",{staticClass:"file_caozuo"},[i("el-button",{attrs:{size:"mini",realpath:t.row.frealpath,mark:"movefiledir"}},[e._v("移动")]),i("el-button",{attrs:{size:"mini",mark:"dirdelete",filenames:t.row.name,type:"danger"}},[e._v("删除")])],1)]}}])})],1),i("el-table",{staticStyle:{width:"100%"},attrs:{"show-header":!1,"empty-text":e.emptyText,data:e.tableData}},[i("el-table-column",{attrs:{align:"left",prop:"name",label:"名称","min-width":"20%"}}),i("el-table-column",{attrs:{align:"left",label:"图片","min-width":"30%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"file_show"},[i("a",{attrs:{title:"点击查看原文件",href:e.imgurl+t.row.image,target:"_blank"}},[-1!=["jpg","jpeg","png","gif","webp"].indexOf(t.row.suffix)?i("img",{attrs:{src:e.imgurl+t.row.image,alt:"图片"}}):"mp4"==t.row.suffix?i("div",[i("svg",{staticClass:"icon",staticStyle:{width:"7em",height:"7em","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":"2375"}},[i("path",{attrs:{d:"M898.71 706.68c-31.08 0-56.5-25.43-56.5-56.5V401.21c0-31.08 25.43-56.5 56.5-56.5 31.08 0 56.5 25.43 56.5 56.5v248.97c0 31.08-25.42 56.5-56.5 56.5z",fill:"#F7B52C","p-id":"2376"}}),i("path",{attrs:{d:"M691.58 886.72H217.32c-82.84 0-150.63-67.78-150.63-150.63V301.24c0-82.84 67.78-150.63 150.63-150.63h474.27c82.84 0 150.63 67.78 150.63 150.63V736.1c-0.01 82.84-67.79 150.62-150.64 150.62z",fill:"#F7B52C","p-id":"2377"}}),i("path",{attrs:{d:"M430.71 664.86l128.62-128.62c13.93-13.93 13.93-36.52 0-50.45L430.71 357.17c-22.47-22.47-60.9-6.56-60.9 25.22v257.24c0 31.79 38.42 47.71 60.9 25.23z",fill:"#FFFFFF","p-id":"2378"}})])]):"mp3"==t.row.suffix?i("div",[i("svg",{staticClass:"icon",staticStyle:{width:"7em",height:"7em","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":"11396"}},[i("path",{attrs:{d:"M875.52 433.152q-7.168-1.024-12.8-10.24t-8.704-33.792q-5.12-39.936-26.112-58.88t-65.024-27.136q-46.08-9.216-81.408-37.376t-58.88-52.736q-22.528-21.504-34.816-15.36t-12.288 22.528l0 44.032 0 96.256q0 57.344-0.512 123.904t-0.512 125.952l0 104.448 0 58.368q1.024 24.576-7.68 54.784t-32.768 56.832-64 45.568-99.328 22.016q-60.416 3.072-109.056-21.504t-75.264-61.952-26.112-81.92 38.4-83.456 81.92-54.272 84.992-16.896 73.216 5.632 47.616 13.312l0-289.792q0-120.832 1.024-272.384 0-29.696 15.36-48.64t40.96-22.016q21.504-3.072 35.328 8.704t28.16 32.768 35.328 47.616 56.832 52.224q30.72 23.552 53.76 33.792t43.008 18.944 39.424 20.992 43.008 39.936q23.552 26.624 28.672 55.296t0.512 52.224-14.848 38.4-17.408 13.824z","p-id":"11397"}})])]):"url"==t.row.suffix?i("div",[i("svg",{staticClass:"icon",staticStyle:{width:"6em",height:"6em","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":"9877"}},[i("path",{attrs:{d:"M62.296463 576.23471l64.234709-64.23471 85.676565 85.646279-42.853425 42.853425a121.140424 121.140424 0 0 0 0 171.292559l42.853425 42.853425a121.140424 121.140424 0 0 0 171.292559 0l214.145983-214.145984a121.140424 121.140424 0 0 0 0-171.322844l-42.823139-42.823139a120.080445 120.080445 0 0 0-24.440081-18.413345l88.705075-88.67479 85.64628 85.64628a211.995741 211.995741 0 0 1 0 299.822548l-256.969124 256.969123a211.995741 211.995741 0 0 1-299.822548 0l-85.646279-85.646279a211.995741 211.995741 0 0 1 0-299.822548z",fill:"#E13455","p-id":"9878"}}),i("path",{attrs:{d:"M961.703537 447.76529l-64.234709 64.23471-85.676565-85.646279 42.853425-42.853425a121.140424 121.140424 0 0 0 0-171.292559l-42.853425-42.853425a121.140424 121.140424 0 0 0-171.292559 0l-214.145983 214.145984a121.140424 121.140424 0 0 0 0 171.322844l42.823139 42.823139a120.080445 120.080445 0 0 0 24.440081 18.413345L404.911866 704.734414l-85.64628-85.64628a211.995741 211.995741 0 0 1 0-299.822548l256.969124-256.969123a211.995741 211.995741 0 0 1 299.822548 0l85.646279 85.646279a211.995741 211.995741 0 0 1 0 299.822548z",fill:"#F3ADBA","p-id":"9879"}})])]):"txt"==t.row.suffix?i("div",[i("svg",{staticClass:"icon",staticStyle:{width:"6em",height:"6em","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":"10371"}},[i("path",{attrs:{d:"M247.0912 996.1472 100.5568 996.1472c-39.936 0-72.4992-32.5632-72.4992-72.4992L28.0576 81.92c0-39.936 32.5632-72.4992 72.4992-72.4992l766.0544 0c39.936 0 72.4992 32.5632 72.4992 72.4992l0 210.5344c0 12.3904-10.0352 22.528-22.528 22.528s-22.528-10.0352-22.528-22.528L894.0544 81.92c0-15.1552-12.288-27.5456-27.5456-27.5456L100.5568 54.3744c-15.1552 0-27.5456 12.288-27.5456 27.5456L73.0112 923.648c0 15.1552 12.288 27.5456 27.5456 27.5456l146.5344 0c12.3904 0 22.528 10.0352 22.528 22.528S259.4816 996.1472 247.0912 996.1472zM745.2672 192.1024 174.6944 192.1024c-12.3904 0-22.528-10.0352-22.528-22.528s10.0352-22.528 22.528-22.528l570.5728 0c12.3904 0 22.528 10.0352 22.528 22.528S757.6576 192.1024 745.2672 192.1024zM437.6576 429.6704 174.6944 429.6704c-12.3904 0-22.528-10.0352-22.528-22.528s10.0352-22.528 22.528-22.528l262.9632 0c12.3904 0 22.528 10.0352 22.528 22.528S450.1504 429.6704 437.6576 429.6704zM620.6464 310.8864 174.6944 310.8864c-12.3904 0-22.528-10.0352-22.528-22.528s10.0352-22.528 22.528-22.528l445.952 0c12.3904 0 22.528 10.0352 22.528 22.528S633.1392 310.8864 620.6464 310.8864zM399.6672 1009.8688c-6.2464 0-12.288-2.56-16.5888-7.2704-5.2224-5.7344-7.168-13.7216-5.12-21.2992l40.8576-146.6368c1.024-3.6864 3.072-7.168 5.7344-9.8304l408.9856-408.9856c14.1312-14.0288 36.9664-14.0288 51.0976 0l97.792 97.792c6.8608 6.8608 10.5472 15.872 10.5472 25.4976s-3.7888 18.7392-10.5472 25.4976L928.8704 618.496c-4.1984 4.1984-9.9328 6.5536-15.872 6.5536s-11.6736-2.3552-15.872-6.5536l-66.048-66.048c-8.8064-8.8064-8.8064-23.04 0-31.8464s23.04-8.8064 31.8464 0l50.176 50.176 31.4368-31.4368L859.136 454.0416 460.6976 852.48 431.104 958.6688 546.7136 936.96l231.7312-231.7312c5.0176-5.4272 50.7904-52.6336 107.2128-56.7296 12.3904-0.9216 23.1424 8.3968 24.064 20.7872 0.9216 12.3904-8.3968 23.1424-20.7872 24.064-40.3456 2.9696-77.4144 42.2912-77.824 42.7008-0.2048 0.2048-0.4096 0.512-0.7168 0.7168L573.5424 973.7216c-3.1744 3.1744-7.2704 5.3248-11.776 6.2464l-158.0032 29.5936C402.432 1009.7664 401.1008 1009.8688 399.6672 1009.8688z","p-id":"10372"}})])]):i("div",[i("svg",{staticClass:"icon",staticStyle:{width:"6em",height:"6em","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":"11115"}},[i("path",{attrs:{d:"M231.036033 687.018697c205.078668-23.06748 401.590888-104.190697 594.129517-173.599557-80.245931 113.118379-66.88021 233.461473-15.791161 361.184095-304.418485 159.253339-508.15542 18.526231-578.338356-187.584538z",fill:"#2B2622","p-id":"11116"}}),i("path",{attrs:{d:"M220.663408 671.588772h0.258025c174.167213-19.661543 342.81268-81.742478 508.05221-142.533286 24.770448-9.134103 49.747316-18.319811 83.290632-30.395404 6.811873-2.42544 18.061785 2.167414 25.234893 10.32102 5.676561 6.553848 7.018294 13.417326 3.870383 17.132893-38.961851 55.062642-55.217457 111.828252-55.527088 170.19362-0.309631 58.468578 15.429925 118.79494 40.303583 180.979086 2.167414 5.418536 0.928892 9.804969-2.73507 11.714357l0.051605 0.051605c-33.749735 17.700549-66.570579 31.737137-98.307715 42.574208-113.63443 38.703825-212.148566 33.69813-292.962153-0.309631-83.858288-35.349494-147.642191-100.37192-189.339112-180.101799-11.301517-21.570932-20.951671-44.225571-28.898856-67.551076-2.32223-6.811873 0.619261-11.404727 6.708663-12.075593zM754.982614 558.625208c-163.226931 60.119942-329.808194 121.478405-502.994911 142.584891 6.553848 17.752154 14.139797 34.988258 22.706244 51.39868 35.504309 67.860707 88.554352 122.716928 157.189135 151.615784 71.679484 30.188984 161.369148 33.852946 267.624049-2.373835 28.589225-9.701759 58.520183-22.396613 89.689664-38.445799-24.254397-62.493776-39.374691-123.387794-39.065061-182.578844 0.258026-44.844832 9.288918-88.605957 29.930958-131.386585l-25.080078 9.185708z",fill:"#2B2622","p-id":"11117"}}),i("path",{attrs:{d:"M488.700297 935.548859c10.52744-77.665676 85.354835-165.342741 193.415915-109.609233-13.881772-10.579046-32.562818-16.410422-55.939928-17.494129 66.98342-72.195535 149.912816-9.546944 178.140805 61.152044-124.471501 65.074031-227.06244 85.09681-315.616792 65.951318z",fill:"#D22220","p-id":"11118"}}),i("path",{attrs:{d:"M469.038754 940.502948c2.477045-18.061785 8.308421-36.536411 17.081288-53.617699 12.230409-23.686741 30.601824-45.257673 54.23696-60.429572 23.583531-15.068689 50.160157-24.615633 78.904198-26.060575 11.146702-9.443733 23.325505-16.616842 36.329991-21.828958 29.105276-11.662753 55.011037-12.74646 77.098019-6.244217 17.597339 5.108905 34.110971 15.429925 48.560399 28.795646 18.371416 17.029683 33.440105 39.374691 42.677418 62.493776 0.774077 2.012599-2.52865 5.005695-8.153606 7.740765-66.88021 34.885048-128.90954 57.952527-187.120092 69.873306l-1.702969 0.30963c-57.075241 11.559542-108.422315 11.869173-155.073325 1.754574-2.32223-0.464446-3.199516-1.496548-2.838281-2.786676z m56.043139-62.23575c-8.308421 16.152396-13.881772 33.440105-16.410422 50.211762 40.148768 8.205211 82.46495 8.050396 127.722623-1.083707l1.032102-0.258026c43.81273-9.030893 92.269919-26.937862 146.145643-54.44338-9.134103-21.622537-23.37711-42.264577-40.613214-58.262158-13.572141-12.591644-29.002066-22.241798-45.154462-26.989468-11.611148-3.405937-21.209696-4.438039-27.144283-2.012598-6.295822 2.52865-13.520536 7.534345-21.570932 15.533135 9.546944 0.928892 18.319811 2.580255 26.215391 5.057299 9.856574 3.096306 18.474626 7.431134 25.80255 13.004486 2.889886 2.167414-2.219019 6.708663-11.869173 10.475835-10.166205 3.973593-21.570932 5.573351-25.441314 3.560752-16.978078-8.721262-32.820844-13.778562-47.528297-15.739556-18.784256-2.580255-33.956156 1.032102-45.464094 8.308421-19.093887 12.282014-34.678627 31.221086-45.722118 52.637203z",fill:"#2B2622","p-id":"11119"}}),i("path",{attrs:{d:"M489.061533 190.83566c-33.233684 131.593005-319.95162 221.643905-348.128005 145.784408 50.469788-224.998236 177.108703-312.830116 348.128005-145.784408z",fill:"#050509","p-id":"11120"}}),i("path",{attrs:{d:"M176.592652 331.924003c-1.444943 6.708663-18.629441 14.243008-38.290984 16.823263s-34.472207-0.774077-33.027264-7.482739c12.74646-56.714005 30.343799-105.016379 52.327572-142.791312 24.099582-41.4905 54.907826-71.679484 91.857078-88.502747 51.759915-23.480321 105.429219-26.576627 159.511364-6.192612 35.865545 13.520536 74.156529 39.219876 114.356901 78.439752 5.470141 5.418536-5.418536 13.623746-24.357607 18.371416-18.939072 4.747669-38.75543 4.231618-44.22557-1.135312C416.453157 161.936804 380.794033 137.785617 348.231215 125.555208c-23.37711-8.824472-40.251978-10.372625-50.882629-5.521745-88.193116 40.045558-97.069193 106.254901-120.755934 211.89054z",fill:"#2B2622","p-id":"11121"}}),i("path",{attrs:{d:"M872.126191 163.226931c-41.851736 87.367434-247.033614 105.73885-254.619564 48.044349 67.344656-150.325656 165.084715-192.280603 254.619564-48.044349z",fill:"#050509","p-id":"11122"}}),i("path",{attrs:{d:"M642.070655 213.490299c-1.960994 4.489644-14.552638 7.121504-28.12478 5.831376-13.572141-1.238522-22.96427-5.934587-21.003276-10.42423 16.978078-37.878143 35.91715-69.047624 56.301165-92.218314 22.293403-25.389709 47.425087-41.800131 74.620974-47.837928 38.084564-8.411631 74.517764-2.219019 107.648239 20.590435 21.983773 15.120294 43.761125 39.168271 64.816006 73.072822 2.838281 4.592854-5.676561 8.721262-19.042282 9.082498-13.365721 0.361236-26.525021-3.096306-29.414907-7.740765-20.074384-32.356398-40.303583-54.907826-60.223152-68.583178-14.346218-9.908179-25.389709-13.623746-33.233685-11.869173-18.681046 4.128408-38.136169 17.90697-57.539686 39.993952-19.609938 22.396613-38.084564 52.895228-54.804616 90.102505z",fill:"#2B2622","p-id":"11123"}}),i("path",{attrs:{d:"M246.414353 239.138034c46.599405-62.493776 135.102152-75.395051 197.595928-28.744041 62.493776 46.599405 75.395051 135.050547 28.795646 197.595928-46.599405 62.493776-135.102152 75.395051-197.595929 28.795646-62.493776-46.65101-75.395051-135.153757-28.795645-197.647533zM698.88787 177.521544c38.342589-51.39868 111.10578-61.977725 162.50446-23.635136 51.39868 38.342589 62.02933 111.10578 23.686741 162.50446-38.342589 51.39868-111.10578 61.977725-162.556065 23.686741-51.39868-38.394194-62.02933-111.157385-23.635136-162.556065z",fill:"#FFFFFF","p-id":"11124"}}),i("path",{attrs:{d:"M235.990122 231.345663h0.051606c25.492919-34.110971 62.338961-54.649801 101.352416-60.377967 39.013456-5.676561 80.14272 3.560752 114.305297 28.950462v-0.051606l0.051605 0.051606h0.051605l-0.051605 0.051605c34.162576 25.492919 54.753011 62.390566 60.429572 101.352416 5.676561 39.013456-3.509147 80.194325-28.950461 114.305297h0.051605l-0.051605 0.051605h-0.10321c-25.441314 34.110971-62.338961 54.649801-101.352417 60.377967v0.051605c-38.961851 5.676561-80.194325-3.560752-114.305297-29.002066l-0.051605 0.051605-0.051605-0.051605h-0.051605l0.051605-0.051605C233.255052 421.613667 212.664617 384.767626 206.988056 345.75417l0.051605-0.051605c-5.676561-38.961851 3.509147-80.194325 28.950461-114.305296l-0.051605-0.051606h0.051605z m20.848461 15.48153l0.051605 0.051606v0.051605l-0.051605 0.051605-0.051605-0.051605c-21.106486 28.3312-28.744041 62.648591-24.047977 95.108199l0.051605-0.051605c4.747669 32.562818 21.828957 63.216248 50.108552 84.322733h0.103211l0.051605 0.051605-0.051605 0.051606c28.3312 21.106486 62.545381 28.744041 95.056594 23.996371h0.051605c32.459608-4.747669 63.113037-21.777352 84.271128-50.160157l-0.051605-0.051605h0.051605l0.051605-0.051605h0.051606c21.054881-28.279595 28.692436-62.493776 23.944766-95.004989-4.696064-32.511213-21.828957-63.216248-50.160157-84.322734v0.051605l-0.051605-0.051605 0.051605-0.051605c-28.382805-21.158091-62.648591-28.795646-95.1082-24.047977-32.511213 4.696064-63.216248 21.880562-84.322733 50.108552zM690.321423 171.122512l0.051605-0.051605 0.051605 0.051605c20.951671-28.073174 51.243864-44.999647 83.342237-49.644107 32.046767-4.696064 65.899713 2.889886 93.972887 23.789952l0.051605-0.051606 0.051605 0.051606h0.051605l-0.051605 0.051605c28.073174 20.951671 44.999647 51.347075 49.695712 83.393841 4.696064 32.046767-2.889886 65.951318-23.841557 94.024493l0.051606 0.051605-0.051606 0.051605h-0.051605c-20.951671 28.021569-51.295469 44.948042-83.393841 49.695711-32.046767 4.644459-65.951318-2.941491-94.024493-23.841556l-0.051605-0.051605h-0.051605l0.051605-0.051605c-28.073174-20.951671-44.999647-51.295469-49.695711-83.342237l0.051605-0.051605c-4.644459-32.046767 2.889886-65.899713 23.789951-94.024492h-0.051605l0.051605-0.051605z m17.132893 12.746459l-0.051605 0.103211 0.051605-0.103211c-17.442524 23.325505-23.686741 51.553495-19.816358 78.233332h0.051605c3.870383 26.731442 17.958575 51.966336 41.232475 69.357255h0.10321l-0.051605 0.051605c23.2739 17.339314 51.450285 23.635136 78.181727 19.764753h0.051605c26.679837-3.870383 51.914731-17.958575 69.305649-41.232475l-0.051605-0.051605 0.051605-0.051605c17.339314-23.2739 23.583531-51.450285 19.713148-78.130122-3.870383-26.731442-17.958575-52.017941-41.232475-69.408859H854.838482l0.051605-0.051605c-23.2739-17.339314-51.50189-23.583531-78.181726-19.713149-26.628232 3.870383-51.914731 17.958575-69.254045 41.232475z",fill:"#2B2622","p-id":"11125"}}),i("path",{attrs:{d:"M324.699289 276.345311c20.280804-14.965479 48.818425-15.68795 70.028121 0.154815 26.060576 19.351913 31.375901 56.249559 12.023988 82.206924-19.403518 26.00897-56.197954 31.375901-82.258529 11.972384-2.115809-1.599758-4.128408-3.302726-5.986192-5.108905 4.489644-3.354332 8.618052-7.327924 12.178804-12.127199 17.700549-23.841556 14.655848-56.817215-5.986192-77.098019z m53.153253 32.253187c5.676561-7.637555 16.462027-9.185708 24.099582-3.509147 7.637555 5.676561 9.185708 16.513632 3.509147 24.099582-5.676561 7.637555-16.513632 9.185708-24.099582 3.509147-7.637555-5.676561-9.237313-16.513632-3.509147-24.099582zM763.23943 208.071763c16.668447-12.282014 40.148768-12.901275 57.591291 0.103211 21.416117 15.945976 25.80255 46.289775 9.908179 67.654286-15.945976 21.364511-46.23817 25.80255-67.654286 9.804969-1.754573-1.290128-3.405937-2.683465-4.902484-4.231619 3.715567-2.73507 7.121504-6.037797 10.011389-9.959784 14.552638-19.558333 12.075593-46.702616-4.954089-63.371063z m43.761124 26.576627c4.644459-6.295822 13.572141-7.58595 19.816359-2.889886 6.295822 4.644459 7.58595 13.572141 2.889885 19.816359-4.696064 6.295822-13.572141 7.58595-19.867963 2.889885-6.244217-4.644459-7.534345-13.572141-2.838281-19.816358z",fill:"#2B2622","p-id":"11126"}}),i("path",{attrs:{d:"M270.77196 762.104117c164.775084-61.668095 336.104017-116.111475 507.845789-152.235045 9.030893-32.717633 8.979287-59.810311 31.427506-91.444237-192.487023 69.40886-366.344605 145.526382-571.423272 168.542257 9.288918 27.247493 18.319811 50.779418 32.149977 75.137025z m519.921383 78.491357c-104.448722 42.522602-209.310286 72.918006-319.280754 90.773371 91.702263 25.131684 197.699138 15.223505 330.37585-54.185355-4.902485-12.282014-6.966689-24.460817-11.095096-36.588016z",fill:"#FFFFFF","p-id":"11127"}}),i("path",{attrs:{d:"M286.717936 748.635186c78.594567-29.156882 158.634078-56.610795 239.447664-81.226427 78.233332-23.841556 157.292345-44.948042 236.557779-62.390566 2.786675-12.023988 4.850879-23.583531 7.843975-34.781838 3.044701-11.456332 7.069899-22.861059 13.726956-34.781837-26.112181 9.495338-50.366578 18.526231-74.414554 27.505518-147.02293 54.856221-288.059668 107.441818-447.416217 130.096457 2.993096 8.308421 6.037797 16.307212 9.288918 24.099582 4.334828 10.579046 9.237313 21.003276 14.965479 31.479111z m231.345663-63.216247c-83.445447 25.389709-165.962002 53.875724-246.878798 84.116313-9.134103 3.663962-17.287709 4.283223-18.990677 1.238522-6.966689-12.282014-12.74646-24.306002-17.90697-36.691226-5.212115-12.488434-9.753364-25.131684-14.397823-38.600615-0.670866-1.599758 0.309631-3.973593 3.251122-6.760268 5.986192-5.831376 17.80376-11.249912 26.370206-12.178804 164.82669-18.526231 310.146651-72.763191 462.175276-129.373985 34.007761-12.694855 68.428363-25.59613 99.855868-36.846042 1.806179-0.670866 3.663962-1.238522 5.470141-1.651363 9.753364-2.270624 14.501033 0.258026 10.733861 5.676561-10.579046 14.862269-15.842766 28.795646-19.609938 42.987048-3.973593 14.913874-6.141007 29.569722-10.682256 46.13496h-0.051605c-0.20642 0.825682-0.722471 1.806179-1.548153 2.889885-4.334828 5.470141-15.533135 11.559542-25.028474 13.572142-84.529154 17.648944-169.058308 39.993953-252.76178 65.486872z m255.754876 169.522753c-48.250769 19.042282-96.656352 35.555914-145.577987 49.540896-33.336895 9.495338-66.931815 17.855365-100.991181 24.976869 32.769239 4.95409 67.18984 5.315325 103.881066-0.10321 45.618908-6.708663 95.21141-22.448219 149.861211-49.489291-1.806179-5.26372-3.199516-10.42423-4.541249-15.533136-0.877287-3.147911-1.702968-6.295822-2.63186-9.392128z m-135.773018 31.014665c51.140654-14.655848 101.610442-32.201582 151.925414-52.688807 9.753364-3.973593 18.268205-4.489644 19.506728-1.032102 1.909389 5.624956 3.302726 10.733861 4.644459 15.842766 1.857784 6.863478 3.715567 13.830167 6.295822 20.384014 1.702968 2.993096-3.663962 8.772867-12.798064 13.572142-72.092325 37.723328-136.959935 59.29426-196.305801 68.015522-57.333266 8.411631-108.835156 4.541249-156.208638-8.463237l0.051605-0.051605c-3.354332-0.928892-3.663962-3.767172-0.154815-7.58595 5.16051-5.624956 16.720052-11.456332 25.750945-12.901275 53.462884-8.669657 105.687245-20.332409 157.292345-35.091468z",fill:"#2B2622","p-id":"11128"}})])])])])]}}])}),i("el-table-column",{attrs:{align:"left",label:"操作","min-width":"45%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"file_caozuo"},[i("el-button",{attrs:{size:"mini",filenames:t.row.name,suffixs:"."+t.row.suffix,mark:"rename"}},[e._v("重命名")]),i("el-button",{staticClass:"link_copy",attrs:{size:"mini",link:t.row.image,mark:"copyLink"}},[e._v("复制链接")])],1),i("div",{staticClass:"file_caozuo"},[i("el-button",{attrs:{size:"mini",realpath:t.row.frealpath,mark:"movefiledir"}},[e._v("移动")]),i("el-button",{attrs:{size:"mini",mark:"filedelete",filenames:t.row.name,type:"danger"}},[e._v("删除")])],1)]}}])})],1)],1)]),i("el-dialog",{attrs:{title:"创建目录",visible:e.dirbox},on:{"update:visible":function(t){e.dirbox=t}}},[i("el-form",{attrs:{model:e.dirform}},[i("el-form-item",{attrs:{label:"目录名称","label-width":e.formLabelWidth}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.dirform.dir,callback:function(t){e.$set(e.dirform,"dir",t)},expression:"dirform.dir"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dirbox=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.mkdirs}},[e._v("确 定")])],1)],1),i("el-dialog",{attrs:{title:"重命名",visible:e.renamebox},on:{"update:visible":function(t){e.renamebox=t}}},[i("el-form",{attrs:{model:e.renamefileform}},[i("el-form-item",{attrs:{label:"新名称","label-width":e.formLabelWidth}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.renamefileform.to,callback:function(t){e.$set(e.renamefileform,"to",t)},expression:"renamefileform.to"}},[e.filesuffix?i("template",{slot:"append"},[e._v(e._s(e.filesuffix))]):e._e()],2)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.renamebox=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.renameFileDir}},[e._v("确 定")])],1)],1),i("el-dialog",{attrs:{title:"目录移动弹出框",visible:e.movebox},on:{"update:visible":function(t){e.movebox=t}}},[i("el-form",{attrs:{model:e.movefileform}},[i("el-form-item",{attrs:{label:"当前位置","label-width":e.formLabelWidth}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.movefileform.from,callback:function(t){e.$set(e.movefileform,"from",t)},expression:"movefileform.from"}})],1),i("el-form-item",{attrs:{label:"目标位置(请参考当前位置的格式填写目标位置,需要带上当前的文件名称)","label-width":e.formLabelWidth}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.movefileform.to,callback:function(t){e.$set(e.movefileform,"to",t)},expression:"movefileform.to"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.movebox=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.moveFileDir}},[e._v("确 定")])],1)],1),i("el-drawer",{ref:"drawerref",attrs:{title:"上传图片",visible:e.uploadDrawer,direction:e.direction,"before-close":e.drawerClose,size:"100%"},on:{"update:visible":function(t){e.uploadDrawer=t}}},[i("el-upload",{ref:"uploadref",attrs:{action:"",limit:e.maxUploadFileNumbe,"list-type":"picture-card","on-remove":e.handleRemove,"on-exceed":e.fileexceed,multiple:!0,"on-change":e.filechange,"on-preview":e.handlePictureCardPreview,disabled:!1,"file-list":e.uploadFilelist,"http-request":e.UploadRequests,accept:e.supportedFileTypes,"auto-upload":!1}},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}),i("span",{staticClass:"addimgtext"},[e._v("添加照片")])]),i("div",{staticClass:"request_main"},[i("el-button",{attrs:{type:"success",loading:e.uploadLoad},on:{click:function(t){return e.handleRequest()}}},[e._v("开始上传"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1),i("div",{staticClass:"el-upload__tip"},[e._v("目前只能上传"+e._s(e.supportedFileTypes)+"文件,且单个文件不超过"+e._s(e.maxUploadFileSize/1024/1024)+"MB")]),i("el-dialog",{attrs:{modal:!1,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:"图片"}})])],1)],1)},l=[],o=(i("d3b7"),i("25f0"),i("b0c0"),i("a434"),i("a9e3"),i("b680"),i("159b"),i("b64b"),i("4a9d")),r=i("c24f"),s={watch:{$route:function(e,t){this.getFileData()}},created:function(){this.getFileData(),this.uploadCount=0},data:function(){return{imgurl:"",loadingText:"文件获取中...",emptyText:"无文件数据",tableData:[],dirdata:[],dirbox:!1,dirform:{dir:"",parent:""},formLabelWidth:"",rmdirform:{dir:"",parent:""},rmfileform:{file:"",parent:""},renamebox:!1,filesuffix:!1,renamefileform:{from:"",to:"",parent:""},movebox:!1,movefileform:{from:"",to:""},subloading:!1,mkdirloadings:!1,uploadDrawer:!1,direction:"ttb",uploadFilelist:[],dialogImageUrl:"",dialogVisible:!1,disabled:!1,imgUploadData:{name:"",file:"",parent:""},uploadLoad:!1}},computed:{maxUploadFileSize:function(){return this.$store.state.settings.configMain.admin_maxUploadFileSize},supportedFileTypes:function(){return this.$store.state.settings.configMain.admin_supportedFileTypes.toString()},maxUploadFileNumbe:function(){return this.$store.state.settings.configMain.admin_maxUploadFileNumber}},filters:{},methods:{filetype:function(e){return!0},handleRemove:function(e,t){},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleDownload:function(e){this.$message({showClose:!0,message:"右键点击或者长按图片自行下载"})},fileexceed:function(e,t){this.$message({showClose:!0,message:"当前版本限制上传"+this.maxUploadFileNumbe+"个文件",type:"warning"})},filechange:function(e,t){var i=e.size0&&(t.getFileData(),t.loadingText="新增上传文件中..."),e(),t.uploadFilelist=[]})).catch((function(){})):e()},getFileData:function(){var e=this,t={},i=window.location.href;-1!=i.indexOf("?id")&&(t.id=i.split("?id=")[1]);this.subloading=!0,this.loadingText="获取文件中...",this.emptyText=" ",this.dirdata=[],this.tableData=[],Object(r["e"])(t).then((function(t){var i=t.data,a=i.data.dirTree;1==i.code&&(a.directories&&(e.dirdata=e.forObjectData(a.directories)),a.files&&(e.tableData=e.forObjectData(a.files)),e.emptyText="无文件数据",e.dirform.parent=a.realpath,e.rmdirform.parent=a.realpath,e.rmfileform.parent=a.realpath,e.renamefileform.parent=a.realpath,e.imgUploadData.parent=a.realpath,e.movefileform.from=a.realpath,e.$nextTick((function(){this.subloading=!1})))})).catch((function(t){Object(r["i"])(e,t),e.subloading=!1}))},forObjectData:function(e){var t=null,i=[];return Object.keys(e).forEach((function(a){var l=null;e[a].filename&&(l=e[a].filename+"."+e[a].extension),t={suffix:e[a].extension||"",image:e[a].path,name:l||e[a].directory,id:e[a].id,frealpath:e[a].realpath},i.push(t)})),i},mkdirs:function(){var e=this,t=this;this.dirform.dir?(this.mkdirloadings=!0,Object(r["f"])(this.dirform).then((function(i){var a=i.data;1==a.code?(o["a"].$emit("mkdirSuccess"),e.loadingText="创建文件夹中...",e.getFileData(),e.dirform.dir="",t.$message({showClose:!0,message:a.msg,type:"success"})):t.$message({showClose:!0,message:a.err,type:"error"}),e.mkdirloadings=!1,e.dirbox=!1})).catch((function(t){e.mkdirloadings=!1,Object(r["i"])(e,t)}))):t.$message({showClose:!0,message:"目录名不能为空",type:"error"})},rmdirm:function(){var e=this,t=this;this.subloading=!0,this.loadingText="删除文件夹中...",Object(r["j"])(this.rmdirform).then((function(i){var a=i.data;a.data.dirTree;1==a.code?(o["a"].$emit("mkdirSuccess"),e.getFileData(),t.$message({showClose:!0,message:a.msg,type:"success"})):t.$message({showClose:!0,message:a.err,type:"error"}),e.subloading=!1})).catch((function(t){Object(r["i"])(e,t),e.subloading=!1}))},rmfile:function(){var e=this,t=this;this.loadingText="文件删除中...",this.subloading=!0,Object(r["c"])(this.rmfileform).then((function(i){var a=i.data;1==a.code?(e.getFileData(),t.$message({showClose:!0,message:a.msg,type:"success"})):t.$message({showClose:!0,message:a.err,type:"error"})})).catch((function(t){e.subloading=!1,Object(r["i"])(e,t)}))},renameFileDir:function(){var e=this;if(this.renamefileform.to){this.filesuffix&&(this.renamefileform.to+=this.filesuffix);var t=this;this.mkdirloadings=!0,Object(r["h"])(this.renamefileform).then((function(i){var a=i.data;1==a.code?(o["a"].$emit("mkdirSuccess"),e.loadingText="文件重命名中...",e.getFileData(),t.$message({showClose:!0,message:a.msg,type:"success"})):t.$message({showClose:!0,message:a.err,type:"error"}),e.mkdirloadings=!1,e.renamebox=!1})).catch((function(t){e.mkdirloadings=!1,Object(r["i"])(e,t)}))}else this.$message({showClose:!0,message:"新名称不能为空",type:"error"})},moveFileDir:function(){var e=this;if(this.movefileform.to&&this.movefileform.from){var t=this;this.loadingText="文件移动中...",this.subloading=!0,Object(r["g"])(this.movefileform).then((function(i){var a=i.data;1==a.code?(o["a"].$emit("mkdirSuccess"),e.getFileData(),t.$message({showClose:!0,message:a.msg,type:"success"})):t.$message({showClose:!0,message:a.err,type:"error"}),e.subloading=!1,e.movebox=!1})).catch((function(t){e.subloading=!1,Object(r["i"])(e,t)}))}else this.$message({showClose:!0,message:"不能为空",type:"error"})},copyFun:function(e,t){var i=document.createElement("input");i.setAttribute("readonly","readonly"),i.value=e,document.body.appendChild(i),i.select(),document.execCommand("Copy"),document.body.removeChild(i),this.$message({showClose:!0,message:t,type:"success"})},fileTableMClick:function(e){var t=this,i=e.target,a=i.tagName.toLowerCase(),l=(e.currentTarget,i),o=null;if("span"==a&&(l=i.parentNode),o=l.getAttribute("mark"),"dirdelete"==o)return this.rmdirform.dir=l.getAttribute("filenames"),void this.$confirm("此操作将删除该文件夹, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.rmdirm()})).catch((function(){t.$message({type:"info",message:"已取消删除"})}));if("filedelete"==o)return this.rmfileform.file=l.getAttribute("filenames"),void this.$confirm("此操作将删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.rmfile()})).catch((function(){t.$message({type:"info",message:"已取消删除"})}));if("rename"==o)return this.renamefileform.from=l.getAttribute("filenames"),this.filesuffix=l.getAttribute("suffixs"),this.renamefileform.to="",void(this.renamebox=!0);if("movefiledir"==o)return this.movefileform.from=l.getAttribute("realpath"),this.movefileform.to="",void(this.movebox=!0);if("copyLink"!=o);else{var r=window.location.protocol+"//"+window.location.host+l.getAttribute("link");this.copyFun(r,"成功复制文件链接")}}}},n=s,c=(i("c9fd"),i("2877")),d=Object(c["a"])(n,a,l,!1,null,null,null);t["default"]=d.exports},c9fd:function(e,t,i){"use strict";i("f7cc")},f7cc:function(e,t,i){}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-e9a7ef4e.051e2845.js b/dist/static/js/chunk-e9a7ef4e.051e2845.js new file mode 100644 index 0000000..bd6a559 --- /dev/null +++ b/dist/static/js/chunk-e9a7ef4e.051e2845.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e9a7ef4e"],{"2dd8":function(e,t,i){"use strict";i("e8a1")},e8a1:function(e,t,i){},f454:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.subloading,expression:"subloading"}],staticClass:"filemange_container",attrs:{"element-loading-text":e.loadingText}},[i("div",{staticClass:"use_button"},[i("el-button",{attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.dirbox=!0}}},[e._v("创建目录")]),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-right"},on:{click:e.getFileData}},[e._v("刷新")])],1),i("div",{on:{click:e.fileTableMClick}},[i("el-table",{staticClass:"filesmd verleft",staticStyle:{width:"100%"},attrs:{data:e.dirdata,"empty-text":"暂无文件夹数据","row-style":{"background-color":"#fffdfa"}}},[i("el-table-column",{attrs:{align:"left",prop:"name",label:"名称","min-width":"25%"}}),i("el-table-column",{attrs:{align:"left",label:"类型","min-width":"30%"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("div",{staticClass:"type_file_click"},[i("el-tooltip",{attrs:{content:"点击进入子文件夹",placement:"bottom-start",effect:"light"}},[i("a",{attrs:{href:"#/filemange/subfile?id="+e.row.id}},[i("svg",{staticClass:"fileicon",staticStyle:{width:"5.15234375em",height:"5em","vertical-align":"middle",fill:"currentColor",overflow:"hidden"},attrs:{viewBox:"0 0 1180 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4701"}},[i("path",{attrs:{d:"M1099.433546 289.842983h-1.08787v-99.462424a128.679511 128.679511 0 0 0-93.246023-126.65918v-3.263611A60.454505 60.454505 0 0 0 944.023508 0.003264H729.246837A60.454505 60.454505 0 0 0 668.326102 59.836128H122.526051A126.65918 126.65918 0 0 0 0.062941 190.380559V890.502778a12.277393 12.277393 0 0 0 2.331151 6.216401v1.243281c0 72.110257 46.623011 126.03754 113.760147 126.03754H969.821575c67.603366 0 105.212595-68.225006 122.463109-130.544431L1174.652004 419.610365c18.182974-75.063048-7.459682-129.767381-75.218458-129.767382z m-897.337556 0a160.072339 160.072339 0 0 0-132.253942 78.637479v-124.32803a73.198128 73.198128 0 0 1 46.623011-54.859743H668.326102a60.609915 60.609915 0 0 1 60.454505-59.988274h215.242901a60.609915 60.609915 0 0 1 60.454505 60.609914v3.108201a126.50377 126.50377 0 0 1 90.604052 97.908324z",fill:"#FFE680","p-id":"4702"}})])])])],1)]}}])}),i("el-table-column",{attrs:{align:"left",label:"操作","min-width":"45%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"file_caozuo"},[i("el-button",{attrs:{size:"mini",filenames:t.row.name,mark:"rename"}},[e._v("重命名")])],1),i("div",{staticClass:"file_caozuo2"},[i("el-button",{attrs:{size:"mini",realpath:t.row.frealpath,mark:"movefiledir"}},[e._v("移动")]),i("el-button",{attrs:{size:"mini",mark:"dirdelete",filenames:t.row.name,type:"danger"}},[e._v("删除")])],1)]}}])})],1)],1),i("el-dialog",{attrs:{title:"创建目录",visible:e.dirbox},on:{"update:visible":function(t){e.dirbox=t}}},[i("el-form",{attrs:{model:e.dirform}},[i("el-form-item",{attrs:{label:"目录名称","label-width":e.formLabelWidth}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.dirform.dir,callback:function(t){e.$set(e.dirform,"dir",t)},expression:"dirform.dir"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dirbox=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.mkdirs}},[e._v("确 定")])],1)],1),i("el-dialog",{attrs:{title:"重命名",visible:e.renamebox},on:{"update:visible":function(t){e.renamebox=t}}},[i("el-form",{attrs:{model:e.renamefileform}},[i("el-form-item",{attrs:{label:"新名称","label-width":e.formLabelWidth}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.renamefileform.to,callback:function(t){e.$set(e.renamefileform,"to",t)},expression:"renamefileform.to"}},[e.filesuffix?i("template",{slot:"append"},[e._v(e._s(e.filesuffix))]):e._e()],2)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.renamebox=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:e.mkdirloadings},on:{click:e.renameFileDir}},[e._v("确 定")])],1)],1),i("el-dialog",{attrs:{title:"目录移动弹出框",visible:e.movebox},on:{"update:visible":function(t){e.movebox=t}}},[i("el-form",{attrs:{model:e.movefileform}},[i("el-form-item",{attrs:{label:"当前位置","label-width":e.formLabelWidth}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.movefileform.from,callback:function(t){e.$set(e.movefileform,"from",t)},expression:"movefileform.from"}})],1),i("el-form-item",{attrs:{label:"目标位置(请参考当前位置的格式填写目标位置,需要带上当前的文件名称)","label-width":e.formLabelWidth}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.movefileform.to,callback:function(t){e.$set(e.movefileform,"to",t)},expression:"movefileform.to"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.movebox=!1}}},[e._v("取 消")]),i("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:[],loadingText:"文件夹获取中...",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.dirdata=[],this.loadingText="获取文件夹中...",this.subloading=!0,Object(r["e"])().then((function(t){var i=t.data;if(1==i.code){var o=i.data.menus;o&&(e.dirdata=e.forObjectData(o))}e.$nextTick((function(){this.subloading=!1}))})).catch((function(t){Object(r["i"])(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.loadingText="创建文件夹中...",this.mkdirloadings=!0,Object(r["f"])(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["i"])(e,t)}))):t.$message({showClose:!0,message:"目录名不能为空",type:"error"})},rmdirm:function(){var e=this,t=this;this.loadingText="删除文件夹中...",this.subloading=!0,Object(r["j"])(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"})})).catch((function(t){Object(r["i"])(e,t),e.subloading=!1}))},moveFileDir:function(){var e=this;if(this.movefileform.to&&this.movefileform.from){var t=this;this.loadingText="移动文件夹中...",this.subloading=!0,Object(r["g"])(this.movefileform).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.movebox=!1})).catch((function(t){e.subloading=!1,Object(r["i"])(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.loadingText="文件夹重命名中...",this.mkdirloadings=!0,Object(r["h"])(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.renamebox=!1})).catch((function(t){e.subloading=!1,Object(r["i"])(e,t)}))}else this.$message({showClose:!0,message:"新名称不能为空",type:"error"})},fileTableMClick:function(e){var t=this,i=e.target,o=i.tagName.toLowerCase(),a=(e.currentTarget,i),r=null;return"span"==o&&(a=i.parentNode),r=a.getAttribute("mark"),"dirdelete"==r?(this.rmdirform.dir=a.getAttribute("filenames"),void this.$confirm("此操作将删除该文件夹, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.rmdirm()})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))):"rename"==r?(this.renamefileform.from=a.getAttribute("filenames"),this.filesuffix=a.getAttribute("suffixs"),this.renamefileform.to="",void(this.renamebox=!0)):"movefiledir"==r?(this.movefileform.from=a.getAttribute("realpath"),this.movefileform.to="",void(this.movebox=!0)):void 0}}},n=l,m=(i("2dd8"),i("2877")),f=Object(m["a"])(n,o,a,!1,null,null,null);t["default"]=f.exports}}]); \ No newline at end of file diff --git a/src/api/user.js b/src/api/user.js index 7b24a27..b59ef96 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -12,13 +12,14 @@ export function captcha(datas) { // 请求出错处理 export function requesterr(thiss, err) { - console.log(err); + // console.log(err.toJSON()); + // console.log(err); - console.log(err.toJSON()); + //console.log(err.toJSON()); if (err.response) { thiss.$message({ showClose: true, message: err.response.data.err, type: 'error' }); } else if (err.request) { - thiss.$message({ showClose: true, message: err.request, type: 'error' }); + thiss.$message({ showClose: true, message: err.message, type: 'error' }); } else { thiss.$message({ showClose: true, message: err.message, type: 'error' }); } diff --git a/src/settings.js b/src/settings.js index 4010b5b..b0eaa2d 100644 --- a/src/settings.js +++ b/src/settings.js @@ -1,7 +1,7 @@ module.exports = { title: '嘉洛马', - address: 'https://demo.jialuoma.com', + address: 'https://demo.jialuoma.cn', /** * @type {boolean} true | false diff --git a/src/styles/element-ui.scss b/src/styles/element-ui.scss index e21a999..d998ebe 100644 --- a/src/styles/element-ui.scss +++ b/src/styles/element-ui.scss @@ -51,6 +51,7 @@ .el-submenu__title i{color:#FFF;} .el-message{z-index:6000 !important;} .content_main .el-drawer__wrapper{z-index:2200 !important;} +.el-message-box__wrapper{z-index:2300 !important;} #nprogress .bar{background:#409EFF !important;} diff --git a/src/views/subfile/index.vue b/src/views/subfile/index.vue index 7c3385c..1173f75 100644 --- a/src/views/subfile/index.vue +++ b/src/views/subfile/index.vue @@ -69,7 +69,7 @@ @@ -175,7 +175,9 @@ @@ -246,10 +248,11 @@ export default { data() { return { // 环境变量 - //imgurl:process.env.VUE_APP_IMG_URL, - imgurl:'https://demo.jialuoma.com', + imgurl:process.env.VUE_APP_IMG_URL, + //imgurl:'https://demo.jialuoma.cn', loadingText: '文件获取中...', + emptyText: '无文件数据', //haveRealpath: 0, // 当前目录文件数据 @@ -464,7 +467,7 @@ export default { //console.log(num); files.onProgress({percent: num}) //进度条 } - + //files.onError() //console.log(uploaddata); uploadrequest(uploaddata, Progress).then(response => { let datamain = response.data; @@ -472,9 +475,11 @@ export default { //console.log(datamain); //this.$message({showClose: true,message: datamain.msg, type:'success'}); files.onSuccess(); //上传成功(打钩的小图标) + this.uploadCount++; //如果全部上传完成则刷新数据 console.log(this.uploadCount); + console.log(this.uploadFilelist); if (this.uploadCount == this.uploadFilelist.length) { this.uploadDrawer = false; this.uploadFilelist = []; @@ -488,7 +493,12 @@ export default { } }).catch(error => { + // this.uploadCount++; + // console.log(this.uploadCount); + // console.log(this.uploadFilelist); requesterr(this, error); + this.$message({showClose: true,message: error.message+ '/文件('+files.file.name+')上传失败,请重新上传', type:'error'}); + files.onError(); // 上传失败回调函数,同时删除上传失败的文件 this.uploadLoad = false; }); //console.log(res) @@ -496,11 +506,34 @@ export default { }, - // 关闭图片上传窗口回调 - // uploadDrawerClose(done) { - // this.uploadDrawer = false; - // this.uploadFilelist = []; - // }, + //关闭图片上传窗口回调 + drawerClose(done) { + // this.uploadDrawer = false; + // this.uploadFilelist = []; + //confirm('离开该页面将退出照片上传') + console.log(this.uploadCount); + if (this.uploadFilelist.length == 0) { + done(); + return; + } + + this.$confirm('离开该页面将退出照片上传', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + if(this.uploadCount > 0) { + this.getFileData(); + this.loadingText = '新增上传文件中...' + } + done(); + this.uploadFilelist = []; + }).catch(() => { + + }); + + + }, getFileData() { let can = {}; const menusindex = window.location.href @@ -509,12 +542,13 @@ export default { can.id = menusindex.split('?id=')[1] } let thiss = this; - - this.dirdata = [] - this.tableData = [] + this.subloading = true this.loadingText = '获取文件中...' - this.subloading = true + this.emptyText = ' ' //空数据提示设置为空 + this.dirdata = [] + this.tableData = [] mirlist(can).then(response => { + let datamain = response.data; let maindata = datamain.data.dirTree; if (datamain.code == 1) { @@ -528,7 +562,7 @@ export default { this.tableData = this.forObjectData(maindata.files); } - + this.emptyText = '无文件数据' //this.haveRealpath = maindata.realpath; //console.log(this.haveRealpath); this.dirform.parent = maindata.realpath; //获取当前目录的位置 @@ -838,7 +872,7 @@ export default { .type_file_click img{width:64px;height:48px;} .type_file_click a{display:block;} // .file_show{position:relative;} - .file_show a{display:block;} + .file_show a{display:block;min-height:156px;min-width:140px;} // .link_copy{position:absolute;top:0;right:0;} // .el-table .is-center{text-align:left;} }