Browse Source

页面优化。新增config接口配置。图片上传功能优化,增加进度条,支持多张上传

master
wen 2 years ago
parent
commit
c9fab229cd
  1. 2
      dist/index.html
  2. 1
      dist/static/css/app.02ed341d.css
  3. 1
      dist/static/css/app.40c34284.css
  4. 1
      dist/static/css/chunk-0ca0b526.36a6dc56.css
  5. 1
      dist/static/css/chunk-131916dc.fd921d20.css
  6. 1
      dist/static/css/chunk-321d01f1.992eb6c3.css
  7. 1
      dist/static/css/chunk-3d88170c.29596ba5.css
  8. 0
      dist/static/css/chunk-3edb54d0.09bb60c9.css
  9. 1
      dist/static/css/chunk-7739fe40.09d12bc9.css
  10. 1
      dist/static/css/chunk-9519a3ea.f4754777.css
  11. 1
      dist/static/js/app.c29c4220.js
  12. 1
      dist/static/js/app.ddece848.js
  13. 1
      dist/static/js/chunk-0ca0b526.903554fe.js
  14. 1
      dist/static/js/chunk-131916dc.2ae837a0.js
  15. 1
      dist/static/js/chunk-321d01f1.d07b73aa.js
  16. 1
      dist/static/js/chunk-3d88170c.50a3e894.js
  17. 2
      dist/static/js/chunk-3edb54d0.f9a9174f.js
  18. 2
      dist/static/js/chunk-755f3784.57a0ed31.js
  19. 1
      dist/static/js/chunk-7739fe40.dee38c5f.js
  20. 1
      dist/static/js/chunk-9519a3ea.ac5ebd68.js
  21. 2
      src/api/user.js
  22. 76
      src/layout/components/Sidebar/index.vue
  23. 22
      src/store/modules/settings.js
  24. 1
      src/styles/index.scss
  25. 10
      src/styles/sidebar.scss
  26. 32
      src/views/subfile/index.vue

2
dist/index.html vendored

File diff suppressed because one or more lines are too long

1
dist/static/css/app.02ed341d.css vendored

File diff suppressed because one or more lines are too long

1
dist/static/css/app.40c34284.css vendored

File diff suppressed because one or more lines are too long

1
dist/static/css/chunk-0ca0b526.36a6dc56.css vendored

@ -0,0 +1 @@ @@ -0,0 +1 @@
.subfile_main{padding:26px 5% 47px 5%}.subfile_main .block{margin:0 0 28px 0}.subfile_main .sou_bottom{margin-left:10px}.subfile_main .use_button{margin:15px 0 16px 0}.subfile_main .file_caozuo>button{margin:6px 10px 0 0}.subfile_main .el-table td{padding:9px 0}.subfile_main .folder_bottom a{margin:0 6px}.subfile_main .el-table__body-wrapper img{display:block;max-width:66%;max-height:286px}.subfile_main .el-drawer__body{text-align:center;padding:0 10% 20px 10%}.subfile_main .request_main{text-align:center;margin:12px 0}.subfile_main .addimgtext{line-height:25px;display:inline-block;color:#8c939d;vertical-align:middle}.subfile_main .el-upload--picture-card i{vertical-align:middle}.subfile_main .type_file_click img{width:64px;height:48px}.subfile_main .file_show a,.subfile_main .type_file_click a{display:block}

1
dist/static/css/chunk-131916dc.fd921d20.css vendored

@ -1 +0,0 @@ @@ -1 +0,0 @@
.toptitle{color:#fff;height:91px;padding:0 6% 0 36px;z-index:2005;background-color:#2b3245;position:fixed;top:0;left:0;right:0;overflow:hidden}.toptitle .leftk{float:left;margin-top:16px;height:60px}.toptitle .leftk>img{vertical-align:middle;display:inline-block;max-width:100%;height:100%;background-color:#fff;border-radius:50%}.toptitle .leftk>i{vertical-align:middle;color:#fff;font-size:30px;margin:6px 0 0 15px}.toptitle .rightk{float:right;margin-top:18px;position:relative}.toptitle .erectline{margin:0 18px;height:40px;width:1px;background-color:#414758}.toptitle .avatark,.toptitle .erectline{display:inline-block;vertical-align:middle}.toptitle .avatark>img{width:58px;background-color:#409eff;border-radius:50%}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#000;height:47px;caret-color:#3c3535}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#3c3535!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container{min-height:100%;width:100%;background-color:#fff;overflow:hidden}.login-container .bt_login{width:100%;margin:0 0 16px 0}.login-container .bt_rest{margin:0}.login-container .login-form{position:relative;width:520px;max-width:100%;padding:0 32px 0 32px;margin:160px auto 0 auto;overflow:hidden}.login-container .svg-container{padding:6px 5px 6px 15px;color:#000;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container{position:relative}.login-container .title-container .title{font-size:26px;color:#000;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd{position:absolute;right:10px;top:7px;font-size:16px;color:#000;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.login-container .captcha_k{display:-webkit-box;display:-ms-flexbox;display:flex}.login-container .captcha_k .captcha_main{width:100px;height:54px;margin:0 0 0 15px}.login-container .captcha_k .captcha_img{border-radius:6px;display:block;max-width:100%;height:100%;cursor:pointer}.login-container .captcha_k>.el-form-item{-webkit-box-flex:1;-ms-flex:1;flex:1}

1
dist/static/css/chunk-321d01f1.992eb6c3.css vendored

@ -1 +0,0 @@ @@ -1 +0,0 @@
.subfile_main{padding:26px 5% 47px 5%}.subfile_main .block{margin:0 0 28px 0}.subfile_main .sou_bottom{margin-left:10px}.subfile_main .use_button{margin:15px 0 16px 0}.subfile_main .file_caozuo2>button{margin-top:6px}.subfile_main .el-table td{padding:9px 0}.subfile_main .folder_bottom a{margin:0 6px}.subfile_main .el-table__body-wrapper img{width:100px;height:71px}.subfile_main .el-drawer__body{text-align:center;padding:0 10% 20px 10%}.subfile_main .request_main{text-align:center;margin:12px 0}.subfile_main .addimgtext{line-height:25px;display:inline-block;color:#8c939d;vertical-align:middle}.subfile_main .el-upload--picture-card i{vertical-align:middle}.subfile_main .type_file_click img{width:64px;height:48px}.subfile_main .type_file_click a{display:block}

1
dist/static/css/chunk-3d88170c.29596ba5.css vendored

@ -0,0 +1 @@ @@ -0,0 +1 @@
.filemange_container{padding:26px 5% 47px 5%}.filemange_container .block{margin:0 0 28px 0}.filemange_container .sou_bottom{margin-left:10px}.filemange_container .use_button{margin:15px 0 16px 0}.filemange_container .file_caozuo2>button{margin:6px 10px 0 0}.filemange_container .el-table td{padding:9px 0}.filemange_container .folder_bottom a{margin:0 6px}.filemange_container .el-drawer__body{text-align:center;padding:0 10% 20px 10%}.filemange_container .request_main{text-align:center;margin:12px 0}.filemange_container .addimgtext{line-height:25px;display:inline-block;color:#8c939d;vertical-align:middle}.filemange_container .el-upload--picture-card i{vertical-align:middle}.filemange_container .type_file_click img{width:64px;height:48px}.filemange_container .type_file_click a{display:block}

0
dist/static/css/chunk-5ac87448.09bb60c9.css → dist/static/css/chunk-3edb54d0.09bb60c9.css vendored

1
dist/static/css/chunk-7739fe40.09d12bc9.css vendored

@ -0,0 +1 @@ @@ -0,0 +1 @@
.toptitle{color:#fff;height:91px;padding:0 2% 0 2%;z-index:2005;background-color:#2b3245;position:fixed;top:0;left:0;right:0;overflow:hidden}.toptitle .leftk{float:left;margin-top:16px;height:60px}.toptitle .leftk>img{vertical-align:middle;display:inline-block;max-width:100%;height:100%;background-color:#fff;border-radius:50%}.toptitle .leftk>i{vertical-align:middle;color:#fff;font-size:30px;margin:6px 0 0 15px}.toptitle .rightk{float:right;margin-top:32px;position:relative}.toptitle .erectline{margin:0 18px;height:40px;width:1px;background-color:#414758}.toptitle .avatark,.toptitle .erectline{display:inline-block;vertical-align:middle}.toptitle .avatark>img{width:58px;background-color:#409eff;border-radius:50%}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#000;height:47px;caret-color:#3c3535}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#3c3535!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container{min-height:100%;width:100%;background-color:#fff;overflow:hidden}.login-container .bt_login{width:100%;margin:0 0 16px 0}.login-container .bt_rest{margin:0}.login-container .login-form{position:relative;width:520px;max-width:100%;padding:0 32px 0 32px;margin:160px auto 0 auto;overflow:hidden}.login-container .svg-container{padding:6px 5px 6px 15px;color:#000;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container{position:relative}.login-container .title-container .title{font-size:26px;color:#000;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd{position:absolute;right:10px;top:7px;font-size:16px;color:#000;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.login-container .captcha_k{display:-webkit-box;display:-ms-flexbox;display:flex}.login-container .captcha_k .captcha_main{width:100px;height:54px;margin:0 0 0 15px}.login-container .captcha_k .captcha_img{border-radius:6px;display:block;max-width:100%;height:100%;cursor:pointer}.login-container .captcha_k>.el-form-item{-webkit-box-flex:1;-ms-flex:1;flex:1}

1
dist/static/css/chunk-9519a3ea.f4754777.css vendored

@ -1 +0,0 @@ @@ -1 +0,0 @@
.filemange_container{padding:26px 5% 47px 5%}.filemange_container .block{margin:0 0 28px 0}.filemange_container .sou_bottom{margin-left:10px}.filemange_container .use_button{margin:15px 0 16px 0}.filemange_container .file_caozuo2>button{margin-top:6px}.filemange_container .el-table td{padding:9px 0}.filemange_container .folder_bottom a{margin:0 6px}.filemange_container .el-table__body-wrapper img{width:100px;height:71px}.filemange_container .el-drawer__body{text-align:center;padding:0 10% 20px 10%}.filemange_container .request_main{text-align:center;margin:12px 0}.filemange_container .addimgtext{line-height:25px;display:inline-block;color:#8c939d;vertical-align:middle}.filemange_container .el-upload--picture-card i{vertical-align:middle}.filemange_container .type_file_click img{width:64px;height:48px}.filemange_container .type_file_click a{display:block}

1
dist/static/js/app.c29c4220.js vendored

File diff suppressed because one or more lines are too long

1
dist/static/js/app.ddece848.js vendored

File diff suppressed because one or more lines are too long

1
dist/static/js/chunk-0ca0b526.903554fe.js vendored

File diff suppressed because one or more lines are too long

1
dist/static/js/chunk-131916dc.2ae837a0.js vendored

@ -1 +0,0 @@ @@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-131916dc"],{"337d":function(t,e,a){},5347:function(t,e,a){"use strict";a("82ca")},"82ca":function(t,e,a){},"9ed6":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-container"},[t._m(0),a("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:t.loginForm,rules:t.loginRules,"auto-complete":"on","label-position":"left"}},[a("div",{staticClass:"title-container"},[a("h3",{staticClass:"title"},[t._v("系统登入")])]),a("el-form-item",{attrs:{prop:"username"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"user"}})],1),a("el-input",{ref:"username",attrs:{placeholder:"用户名",name:"用户名",type:"text",tabindex:"1","auto-complete":"on"},model:{value:t.loginForm.username,callback:function(e){t.$set(t.loginForm,"username",e)},expression:"loginForm.username"}})],1),a("el-form-item",{attrs:{prop:"password"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"password"}})],1),a("el-input",{key:t.passwordType,ref:"password",attrs:{type:t.passwordType,placeholder:"密码",name:"密码",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin(e)}},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}}),a("span",{staticClass:"show-pwd",on:{click:t.showPwd}},[a("svg-icon",{attrs:{"icon-class":"password"===t.passwordType?"eye":"eye-open"}})],1)],1),a("div",{staticClass:"captcha_k"},[a("el-form-item",{attrs:{prop:"captcha"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"example"}})],1),a("el-input",{ref:"captcha",attrs:{placeholder:"验证码",name:"用户名",type:"text",tabindex:"3","auto-complete":"on"},model:{value:t.loginForm.captcha,callback:function(e){t.$set(t.loginForm,"captcha",e)},expression:"loginForm.captcha"}})],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.captcha_loading,expression:"captcha_loading"}],staticClass:"captcha_main",on:{click:t.getcaptcha}},[t.captcha_loading?t._e():a("img",{staticClass:"captcha_img",attrs:{src:t.captchaimg,alt:"验证码"}})])],1),a("el-button",{staticClass:"bt_login",attrs:{loading:t.loading,type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.handleLogin(e)}}},[t._v("登入")]),a("el-button",{staticClass:"bt_rest bt_login",on:{click:function(e){return t.resetForm("loginForm")}}},[t._v("重置")])],1)],1)},n=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"toptitle clearfix"},[s("a",{staticClass:"leftk",attrs:{href:"javascript:;"}},[s("img",{attrs:{src:a("7b07"),alt:"图片"}}),s("em",{staticClass:"erectline"}),s("span",[t._v("后台管理系统")])])])}],o=a("c24f"),r={created:function(){this.getcaptcha()},data:function(){var t=function(t,e,a){e.length<3?a(new Error("请输入正确的用户名")):a()},e=function(t,e,a){e.length<6?a(new Error("请输入正确的密码")):a()},a=function(t,e,a){e.length<5?a(new Error("请输入正确的验证码")):a()};return{loading:!1,captcha_loading:!0,passwordType:"password",redirect:void 0,loginForm:{username:"filesite",password:"88888888",captcha:""},captchaimg:"",loginRules:{username:[{required:!0,trigger:"blur",validator:t}],password:[{required:!0,trigger:"blur",validator:e}],captcha:[{required:!0,trigger:"blur",validator:a}]}}},watch:{$route:{handler:function(t){this.redirect=t.query&&t.query.redirect},immediate:!0}},methods:{getcaptcha:function(){var t=this;this.captcha_loading=!0,Object(o["a"])().then((function(e){var a=e.data;t.captchaimg=a.data,t.captcha_loading=!1}))},showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="text":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},handleLogin:function(){var t=this;this.$refs.loginForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0;t.$store.dispatch("user/login",t.loginForm).then((function(e){var a=e.data;1==a.code?(t.$router.push({path:t.redirect||"/filemange/index"}),t.$message({showClose:!0,message:a.msg,type:"success"})):0==a.code&&t.$message({showClose:!0,message:a.err,type:"error"}),t.loading=!1})).catch((function(e){Object(o["h"])(t,e),t.loading=!1}))}))},resetForm:function(t){this.$refs[t].resetFields()}}},i=r,c=(a("5347"),a("afe4"),a("2877")),l=Object(c["a"])(i,s,n,!1,null,null,null);e["default"]=l.exports},afe4:function(t,e,a){"use strict";a("337d")}}]);

1
dist/static/js/chunk-321d01f1.d07b73aa.js vendored

File diff suppressed because one or more lines are too long

1
dist/static/js/chunk-3d88170c.50a3e894.js vendored

File diff suppressed because one or more lines are too long

2
dist/static/js/chunk-5ac87448.02d87e98.js → dist/static/js/chunk-3edb54d0.f9a9174f.js vendored

@ -1 +1 @@ @@ -1 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ac87448"],{"26fc":function(t,s,e){t.exports=e.p+"static/img/404_cloud.0f4bc32b.png"},"728e":function(t,s,e){},"8cdb":function(t,s,e){"use strict";e.r(s);var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"wscn-http404-container"},[e("div",{staticClass:"wscn-http404"},[t._m(0),e("div",{staticClass:"bullshit"},[e("div",{staticClass:"bullshit__oops"},[t._v("嘉马洛!")]),t._m(1),e("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),e("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),e("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("返回首页")])])])])},c=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"pic-404"},[a("img",{staticClass:"pic-404__parent",attrs:{src:e("a36b"),alt:"404"}}),a("img",{staticClass:"pic-404__child left",attrs:{src:e("26fc"),alt:"404"}}),a("img",{staticClass:"pic-404__child mid",attrs:{src:e("26fc"),alt:"404"}}),a("img",{staticClass:"pic-404__child right",attrs:{src:e("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bullshit__info"},[t._v("All rights reserved "),e("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(e("ccbe"),e("2877")),r=Object(n["a"])(l,a,c,!1,null,"51936dbb",null);s["default"]=r.exports},a36b:function(t,s,e){t.exports=e.p+"static/img/404.a57b6f31.png"},ccbe:function(t,s,e){"use strict";e("728e")}}]);
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3edb54d0"],{"26fc":function(t,s,e){t.exports=e.p+"static/img/404_cloud.0f4bc32b.png"},"728e":function(t,s,e){},"8cdb":function(t,s,e){"use strict";e.r(s);var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"wscn-http404-container"},[e("div",{staticClass:"wscn-http404"},[t._m(0),e("div",{staticClass:"bullshit"},[e("div",{staticClass:"bullshit__oops"},[t._v("嘉马洛!")]),t._m(1),e("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),e("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),e("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("返回首页")])])])])},c=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"pic-404"},[a("img",{staticClass:"pic-404__parent",attrs:{src:e("a36b"),alt:"404"}}),a("img",{staticClass:"pic-404__child left",attrs:{src:e("26fc"),alt:"404"}}),a("img",{staticClass:"pic-404__child mid",attrs:{src:e("26fc"),alt:"404"}}),a("img",{staticClass:"pic-404__child right",attrs:{src:e("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bullshit__info"},[t._v("All rights reserved "),e("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(e("ccbe"),e("2877")),r=Object(n["a"])(l,a,c,!1,null,"51936dbb",null);s["default"]=r.exports},a36b:function(t,s,e){t.exports=e.p+"static/img/404.a57b6f31.png"},ccbe:function(t,s,e){"use strict";e("728e")}}]);

2
dist/static/js/chunk-755f3784.5612e2a1.js → dist/static/js/chunk-755f3784.57a0ed31.js vendored

@ -1 +1 @@ @@ -1 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-755f3784"],{"1e39":function(n,e,t){"use strict";t.r(e);var i=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[n._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[n._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:n.selectbian},model:{value:n.skinvalue,callback:function(e){n.skinvalue=e},expression:"skinvalue"}},n._l(n.options,(function(n){return t("el-option",{key:n.value,attrs:{label:n.label,value:n.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:n.skinloading,type:"primary"},on:{click:n.skinSubmit}},[n._v("提交")]),n.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:n.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[n._v("查看"+n._s(n.skinlabel)+"站点")])],1):n._e()],1)],1)])},s=[],a=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l=t("4a9d"),o={data:function(){return{options:[{value:"manual",label:"文档站",link:"/?"},{value:"webdirectory",label:"导航站",link:"/?"},{value:"googleimage",label:"图片站",link:"/?"},{value:"videoblog",label:"视频站",link:"/?"}],skinvalue:"",skinlabel:"",skinLink:"",skinAsk:!1,skinloading:!1,skinForm:{theme:""}}},created:function(){},methods:{skinSubmit:function(){var n=this,e=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(a["j"])(this.skinForm).then((function(t){var i=t.data;1==i.code?(e.$message({showClose:!0,message:i.msg,type:"success"}),n.skinAsk=!0,l["a"].$emit("mkdirSuccess")):e.$message({showClose:!0,message:i.err,type:"error"}),n.skinloading=!1})).catch((function(e){n.skinloading=!1,Object(a["h"])(n,e)}))},selectbian:function(n){var e=this;this.options.forEach((function(t){t.value==n&&(e.skinlabel=t.label,e.skinLink=t.link+Math.round(1e3*Math.random()))})),this.skinAsk=!1}}},r=o,u=(t("5129"),t("2877")),c=Object(u["a"])(r,i,s,!1,null,null,null);e["default"]=c.exports},5129:function(n,e,t){"use strict";t("97b4")},"857a":function(n,e,t){var i=t("1d80"),s=/"/g;n.exports=function(n,e,t,a){var l=String(i(n)),o="<"+e;return""!==t&&(o+=" "+t+'="'+String(a).replace(s,"&quot;")+'"'),o+">"+l+"</"+e+">"}},"97b4":function(n,e,t){},9911:function(n,e,t){"use strict";var i=t("23e7"),s=t("857a"),a=t("af03");i({target:"String",proto:!0,forced:a("link")},{link:function(n){return s(this,"a","href",n)}})},af03:function(n,e,t){var i=t("d039");n.exports=function(n){return i((function(){var e=""[n]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}}}]);
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-755f3784"],{"1e39":function(n,e,t){"use strict";t.r(e);var i=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[n._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[n._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:n.selectbian},model:{value:n.skinvalue,callback:function(e){n.skinvalue=e},expression:"skinvalue"}},n._l(n.options,(function(n){return t("el-option",{key:n.value,attrs:{label:n.label,value:n.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:n.skinloading,type:"primary"},on:{click:n.skinSubmit}},[n._v("提交")]),n.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:n.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[n._v("查看"+n._s(n.skinlabel)+"站点")])],1):n._e()],1)],1)])},s=[],a=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l=t("4a9d"),o={data:function(){return{options:[{value:"manual",label:"文档站",link:"/?"},{value:"webdirectory",label:"导航站",link:"/?"},{value:"googleimage",label:"图片站",link:"/?"},{value:"videoblog",label:"视频站",link:"/?"}],skinvalue:"",skinlabel:"",skinLink:"",skinAsk:!1,skinloading:!1,skinForm:{theme:""}}},created:function(){},methods:{skinSubmit:function(){var n=this,e=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(a["k"])(this.skinForm).then((function(t){var i=t.data;1==i.code?(e.$message({showClose:!0,message:i.msg,type:"success"}),n.skinAsk=!0,l["a"].$emit("mkdirSuccess")):e.$message({showClose:!0,message:i.err,type:"error"}),n.skinloading=!1})).catch((function(e){n.skinloading=!1,Object(a["i"])(n,e)}))},selectbian:function(n){var e=this;this.options.forEach((function(t){t.value==n&&(e.skinlabel=t.label,e.skinLink=t.link+Math.round(1e3*Math.random()))})),this.skinAsk=!1}}},r=o,u=(t("5129"),t("2877")),c=Object(u["a"])(r,i,s,!1,null,null,null);e["default"]=c.exports},5129:function(n,e,t){"use strict";t("97b4")},"857a":function(n,e,t){var i=t("1d80"),s=/"/g;n.exports=function(n,e,t,a){var l=String(i(n)),o="<"+e;return""!==t&&(o+=" "+t+'="'+String(a).replace(s,"&quot;")+'"'),o+">"+l+"</"+e+">"}},"97b4":function(n,e,t){},9911:function(n,e,t){"use strict";var i=t("23e7"),s=t("857a"),a=t("af03");i({target:"String",proto:!0,forced:a("link")},{link:function(n){return s(this,"a","href",n)}})},af03:function(n,e,t){var i=t("d039");n.exports=function(n){return i((function(){var e=""[n]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}}}]);

1
dist/static/js/chunk-7739fe40.dee38c5f.js vendored

@ -0,0 +1 @@ @@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7739fe40"],{"544c":function(t,e,a){"use strict";a("d0e9")},7209:function(t,e,a){"use strict";a("7ed4")},"7ed4":function(t,e,a){},"9ed6":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-container"},[t._m(0),a("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:t.loginForm,rules:t.loginRules,"auto-complete":"on","label-position":"left"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin(e)}}},[a("div",{staticClass:"title-container"},[a("h3",{staticClass:"title"},[t._v("系统登入")])]),a("el-form-item",{attrs:{prop:"username"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"user"}})],1),a("el-input",{ref:"username",attrs:{placeholder:"用户名",name:"用户名",type:"text",tabindex:"1","auto-complete":"on"},model:{value:t.loginForm.username,callback:function(e){t.$set(t.loginForm,"username",e)},expression:"loginForm.username"}})],1),a("el-form-item",{attrs:{prop:"password"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"password"}})],1),a("el-input",{key:t.passwordType,ref:"password",attrs:{type:t.passwordType,placeholder:"密码",name:"密码",tabindex:"2","auto-complete":"on"},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}}),a("span",{staticClass:"show-pwd",on:{click:t.showPwd}},[a("svg-icon",{attrs:{"icon-class":"password"===t.passwordType?"eye":"eye-open"}})],1)],1),a("div",{staticClass:"captcha_k"},[a("el-form-item",{attrs:{prop:"captcha"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"example"}})],1),a("el-input",{ref:"captcha",attrs:{placeholder:"验证码",name:"用户名",type:"text",tabindex:"3","auto-complete":"on"},model:{value:t.loginForm.captcha,callback:function(e){t.$set(t.loginForm,"captcha",e)},expression:"loginForm.captcha"}})],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.captcha_loading,expression:"captcha_loading"}],staticClass:"captcha_main",on:{click:t.getcaptcha}},[t.captcha_loading?t._e():a("img",{staticClass:"captcha_img",attrs:{src:t.captchaimg,alt:"验证码"}})])],1),a("el-button",{staticClass:"bt_login",attrs:{loading:t.loading,type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.handleLogin(e)}}},[t._v("登入")]),a("el-button",{staticClass:"bt_rest bt_login",on:{click:function(e){return t.resetForm("loginForm")}}},[t._v("重置")])],1)],1)},n=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"toptitle clearfix"},[s("a",{staticClass:"leftk",attrs:{href:"javascript:;"}},[s("img",{attrs:{src:a("7b07"),alt:"图片"}}),s("em",{staticClass:"erectline"}),s("span",[t._v("后台管理系统")])])])}],o=a("c24f"),r={created:function(){this.getcaptcha()},data:function(){var t=function(t,e,a){e.length<3?a(new Error("请输入正确的用户名")):a()},e=function(t,e,a){e.length<6?a(new Error("请输入正确的密码")):a()},a=function(t,e,a){e.length<5?a(new Error("请输入正确的验证码")):a()};return{loading:!1,captcha_loading:!0,passwordType:"password",redirect:void 0,loginForm:{username:"filesite",password:"88888888",captcha:""},captchaimg:"",loginRules:{username:[{required:!0,trigger:"blur",validator:t}],password:[{required:!0,trigger:"blur",validator:e}],captcha:[{required:!0,trigger:"blur",validator:a}]}}},watch:{$route:{handler:function(t){this.redirect=t.query&&t.query.redirect},immediate:!0}},methods:{getcaptcha:function(){var t=this;this.captcha_loading=!0,Object(o["a"])().then((function(e){var a=e.data;t.captchaimg=a.data,t.captcha_loading=!1}))},showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="text":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},handleLogin:function(){var t=this;this.$refs.loginForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0;t.$store.dispatch("user/login",t.loginForm).then((function(e){var a=e.data;1==a.code?(t.$router.push({path:t.redirect||"/filemange/index"}),t.$message({showClose:!0,message:a.msg,type:"success"})):0==a.code&&t.$message({showClose:!0,message:a.err,type:"error"}),t.loading=!1})).catch((function(e){Object(o["i"])(t,e),t.loading=!1}))}))},resetForm:function(t){this.$refs[t].resetFields()}}},i=r,c=(a("7209"),a("544c"),a("2877")),l=Object(c["a"])(i,s,n,!1,null,null,null);e["default"]=l.exports},d0e9:function(t,e,a){}}]);

1
dist/static/js/chunk-9519a3ea.ac5ebd68.js vendored

File diff suppressed because one or more lines are too long

2
src/api/user.js

@ -27,7 +27,7 @@ export function requesterr(thiss, err) { @@ -27,7 +27,7 @@ export function requesterr(thiss, err) {
}
}
// 系统配置接口
export function config() {
export function configMain() {
return request({
url: '/api/config',
method: 'get'

76
src/layout/components/Sidebar/index.vue

@ -1,7 +1,13 @@ @@ -1,7 +1,13 @@
<template>
<div :class="{'has-logo':showLogo}">
<!-- <logo v-if="showLogo" :collapse="isCollapse" /> -->
<div>gergerg</div>
<div class="current_thme">
<a class="current_thme_main" href="/" target="_blank">
<svg style="width: 2.2em;height: 2.2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6885"><path 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"></path><path 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"></path></svg>
<span class="verMiddle">{{supportedThemes}}</span>
</a>
</div>
<el-scrollbar wrap-class="scrollbar-wrapper">
<el-menu
:default-active="activeMenu"
@ -19,8 +25,9 @@ @@ -19,8 +25,9 @@
</el-menu>
<!-- 单独新开窗口跳转 -->
<div><a href="/" target="_blank" class="router-link-active"><li role="menuitem" tabindex="-1" class="el-menu-item submenu-title-noDropdown" style="padding-left: 20px; color: rgb(191, 203, 217); background-color: rgb(43, 50, 69);"><svg aria-hidden="true" class="svg-icon"><use xlink:href="#icon-link"></use></svg><span>前端展示页面</span></li></a></div>
</el-scrollbar>
<div class="current_version">version{{versions}}</div>
</el-scrollbar>
</div>
</template>
@ -32,14 +39,15 @@ import EventBus from '@/utils/EventBus.js' @@ -32,14 +39,15 @@ import EventBus from '@/utils/EventBus.js'
import SidebarItem from './SidebarItem'
import variables from '@/styles/variables.scss'
import menusdata from './leftMenusData.js'
import {requesterr, mirlist } from '@/api/user'
import {requesterr, mirlist, configMain } from '@/api/user'
//console.log(menusdata);
export default {
components: { SidebarItem },
created: function () {
this.getmunusdata();
this.getmunusdata(); //
this.getconfig() //
},
@ -58,7 +66,10 @@ export default { @@ -58,7 +66,10 @@ export default {
return {
routes:menusdata,
// index submenindex
openedsindex:[]
openedsindex:[],
//
}
},
computed: {
@ -94,7 +105,14 @@ export default { @@ -94,7 +105,14 @@ export default {
},
isCollapse() {
return !this.sidebar.opened
},
versions() {
return this.$store.state.settings.configMain.version
},
supportedThemes() {
return this.$store.state.settings.configMain.supportedThemes
}
},
methods: {
@ -132,6 +150,52 @@ export default { @@ -132,6 +150,52 @@ export default {
return arrMenus;
},
getconfig() {
configMain().then(response => {
let datamain = response.data;
let datamains = datamain.data
if (datamain.code == 1) {
let configdata = {
version:datamains.version, //
currentTheme: datamains.currentTheme, //
admin_supportedFileTypes: datamains.admin_supportedFileTypes, //
admin_maxUploadFileSize: datamains.admin_maxUploadFileSize, //
admin_maxUploadFileNumber : datamains.admin_maxUploadFileNumber //
}
//
configdata.currentTheme = Object.getOwnPropertyDescriptor(datamains.supportedThemes, configdata.currentTheme).value
//
if (datamains.admin_supportedFileTypes) {
let jpgs = null;
configdata.admin_supportedFileTypes = datamains.admin_supportedFileTypes.map((item, index, ary) => {
if (item.indexOf('jpeg') != -1) {
//console.log(item);
jpgs = '.jpg'
}
return '.'+item.split('/')[1];
})
if (jpgs) {
configdata.admin_supportedFileTypes.push(jpgs);
}
}
//console.log(configdata.admin_supportedFileTypes);
this.$store.dispatch('settings/configMain', configdata)
}
}).catch(error => {
//console.log(999);
requesterr(this, error);
});
},
getmunusdata() {
let thiss = this;
//console.log(1);
@ -149,7 +213,7 @@ export default { @@ -149,7 +213,7 @@ export default {
}
}).catch(function (error) {
}).catch(error => {
requesterr(this, error);
});
},

22
src/store/modules/settings.js

@ -5,7 +5,16 @@ const { showSettings, fixedHeader, sidebarLogo } = defaultSettings @@ -5,7 +5,16 @@ const { showSettings, fixedHeader, sidebarLogo } = defaultSettings
const state = {
showSettings: showSettings,
fixedHeader: fixedHeader,
sidebarLogo: sidebarLogo
sidebarLogo: sidebarLogo,
// 系统配置
configMain: {
version:'',
supportedThemes: '',
admin_supportedFileTypes: '.jpg, .jpeg, .png, .gif, .webp',
admin_maxUploadFileSize: 5242870,
admin_maxUploadFileNumber: 5
}
}
const mutations = {
@ -15,12 +24,23 @@ const mutations = { @@ -15,12 +24,23 @@ const mutations = {
// state[key] = value
// }
// }
CONFIG_DATA: (state, configdata) => {
state.configMain.version = configdata.version
state.configMain.supportedThemes = configdata.currentTheme
state.configMain.admin_supportedFileTypes = configdata.admin_supportedFileTypes
state.configMain.admin_maxUploadFileSize = configdata.admin_maxUploadFileSize
state.configMain.admin_maxUploadFileNumber = configdata.admin_maxUploadFileNumber
}
}
const actions = {
// changeSetting({ commit }, data) {
// commit('CHANGE_SETTING', data)
// }
configMain({ commit }, configdata) {
//console.log(configdata);
commit('CONFIG_DATA', configdata)
}
}
export default {

1
src/styles/index.scss

@ -15,6 +15,7 @@ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input @@ -15,6 +15,7 @@ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input
.vercenter{text-align:center !important;}
.verleft{text-align:left !important;}
.textright{text-align:right !important;}
.verMiddle{vertical-align:middle !important;}
label {
font-weight: 700;
}

10
src/styles/sidebar.scss

@ -23,6 +23,14 @@ @@ -23,6 +23,14 @@
.el_submenu_link{width:76%;height:56px;z-index:100;position:absolute;left:0;top:0;bottom:0;right:10%;}
.el_submenu_link:hover{background-color:rgba(0, 0, 0, 0.3);}
// 当前皮肤css
.current_thme{font-size:14px;color:#FFF;padding:0 15px;}
.current_thme_main{padding:10px 15px;background-color:#152034;border-radius:27px;}
.current_thme_main svg{margin-right:12px;}
.current_thme_main span{font-weight:bold;}
// 当前版本
.current_version{position:absolute;bottom:129px;left:0;right:0;background-color:#2b3245;font-size:14px;color:#cacdcb;padding:6px 0 36px 48px;text-shadow:1px 1px 0 rgb(255 255 255 / 30%),1px 1px 5px rgb(0 0 0 / 10%);}
// reset element-ui css
.horizontal-collapse-transition {
@ -33,7 +41,7 @@ @@ -33,7 +41,7 @@
overflow-x: hidden !important;
}
.el-scrollbar__view{padding-bottom:92px;}
.el-scrollbar__view{padding-bottom:196px;}
.el-scrollbar__bar.is-vertical {
right: 0px;

32
src/views/subfile/index.vue

@ -179,7 +179,7 @@ @@ -179,7 +179,7 @@
<el-upload
action=""
:limit="3"
:limit="maxUploadFileNumbe"
list-type="picture-card"
:on-remove="handleRemove"
:on-exceed="fileexceed"
@ -190,7 +190,7 @@ @@ -190,7 +190,7 @@
:disabled="false"
:file-list="uploadFilelist"
:http-request="UploadRequests"
accept=".jpg, .jpeg, .png, .gif, .webp, .mp4, .txt"
:accept="supportedFileTypes"
:auto-upload="false">
<i slot="default" class="el-icon-plus"></i>
<span class="addimgtext">添加照片</span>
@ -198,7 +198,7 @@ @@ -198,7 +198,7 @@
<div class="request_main">
<el-button type="success" :loading="uploadLoad" @click="handleRequest()">开始上传<i class="el-icon-upload el-icon--right"></i></el-button>
</div>
<div class="el-upload__tip">只能上传.jpg, .jpeg, .png, .gifwebp文件且不超过5MB</div>
<div class="el-upload__tip">目前只能上传{{supportedFileTypes}}文件且不超过{{maxUploadFileSize/1024/1024}}MB</div>
<el-dialog :modal="false" :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="图片">
</el-dialog>
@ -229,7 +229,7 @@ export default { @@ -229,7 +229,7 @@ export default {
//
created() {
this.getFileData();
this.uploadCount = 0;
this.uploadCount = 0; //
//console.log(this.imgurl);
},
@ -315,7 +315,16 @@ export default { @@ -315,7 +315,16 @@ export default {
//
computed: {
maxUploadFileSize() {
return this.$store.state.settings.configMain.admin_maxUploadFileSize
},
supportedFileTypes() {
return this.$store.state.settings.configMain.admin_supportedFileTypes.toString()
},
maxUploadFileNumbe() {
return this.$store.state.settings.configMain.admin_maxUploadFileNumber
}
},
//
@ -349,16 +358,21 @@ export default { @@ -349,16 +358,21 @@ export default {
//
fileexceed(files, fileList) {
//this.$message({showClose:true, message:` 1 ${files.length} ${files.length + fileList.length} `, type:'warning'});
this.$message({showClose:true, message:`当前版本限制上传一个文件`, type:'warning'});
this.$message({showClose:true, message:'当前版本限制上传'+this.maxUploadFileNumbe+'个文件', type:'warning'});
//this.$message.warning(``);
},
filechange(files, fileList) {
//console.log(files);
const isLt2M = files.size / 1024 / 1024 < 5;
//const isLt2M = files.size / 1024 / 1024 < 5;
// console.log(files.size);
// console.log(this.maxUploadFileSize);
const isLt2M = files.size < this.maxUploadFileSize;
if (!isLt2M) {
this.$message.error('文件大小不能超过 5MB!'+files.name+'已超过,重新选择');
let getfilemb = this.maxUploadFileSize/1024/1024;
this.$message.error('文件大小不能超过 '+getfilemb+'MB!'+files.name+'已超过,重新选择');
fileList.splice(-1, 1); //
//window.setTimeout(() => {fileList.splice(-1, 1);}, 3000);
@ -435,6 +449,8 @@ export default { @@ -435,6 +449,8 @@ export default {
uploaddata.name = files.file.name;
uploaddata.file = res;
uploaddata.parent = this.imgUploadData.parent;
//console.log(uploaddata);
//console.log(this.uploadFilelist);
//
let Progress = progressEvent => {
@ -485,7 +501,6 @@ export default { @@ -485,7 +501,6 @@ export default {
//console.log(menusindex.split('?id=')[1]);
can.id = menusindex.split('?id=')[1]
}
let thiss = this;
this.subloading = true;
mirlist(can).then(response => {
@ -520,6 +535,7 @@ export default { @@ -520,6 +535,7 @@ export default {
}
}).catch(error => {
//console.log(999);
requesterr(this, error);
this.subloading = false;

Loading…
Cancel
Save