前端页面入口

This commit is contained in:
caoqianming 2021-07-12 16:08:11 +08:00
parent d6506924f4
commit 87860678fb
42 changed files with 117 additions and 13 deletions

View File

@ -2,5 +2,5 @@
ENV = 'production'
# base api
VUE_APP_BASE_API = 'http://121.36.23.77:8035'
VUE_APP_BASE_API = 'http://47.95.0.242:9100/api'

View File

@ -68,7 +68,7 @@ ROOT_URLCONF = 'server.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': ['template'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [

View File

@ -24,9 +24,10 @@ from rest_framework import routers
from rest_framework.documentation import include_docs_urls
from rest_framework_simplejwt.views import (TokenObtainPairView,
TokenRefreshView)
from django.views.generic import TemplateView
router = routers.DefaultRouter()
router.register('file', FileViewSet, basename="file")
router.register('', FileViewSet, basename="file")
schema_view = get_schema_view(
openapi.Info(
@ -44,18 +45,21 @@ urlpatterns = [
path('admin/', admin.site.urls),
# api
path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('token/black/', LogoutView.as_view(), name='token_black'),
path('system/', include('apps.system.urls')),
path('monitor/', include('apps.monitor.urls')),
path('expert/', include('apps.expert.urls')),
path('api/token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('api/token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('api/token/black/', LogoutView.as_view(), name='token_black'),
path('api/system/', include('apps.system.urls')),
path('api/monitor/', include('apps.monitor.urls')),
path('api/expert/', include('apps.expert.urls')),
path('api/file/', include(router.urls)),
# api文档
path('docs/', include_docs_urls(title="接口文档", authentication_classes=[], permission_classes=[])),
path('swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
path('redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
path('', include(router.urls)),
path('api/docs/', include_docs_urls(title="接口文档", authentication_classes=[], permission_classes=[])),
path('api/swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
path('api/redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
# 前端页面入口
path('',TemplateView.as_view(template_name="index.html"))
] + \
static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + \
static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.pagination-container[data-v-2424f858]{background:#fff;padding:0 2px}.pagination-container.hidden[data-v-2424f858]{display:none}

View File

@ -0,0 +1 @@
.dashboard-container[data-v-177afb0b]{margin:30px}.dashboard-text[data-v-177afb0b]{font-size:30px;line-height:46px}

View File

@ -0,0 +1 @@
.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;height:47px}.login-container .el-form-item{border:1px solid;border-radius:5px;color:#454545}.login-container[data-v-3ed12324]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;background-image:url(../../static/img/background.f9f49138.jpg);background-size:cover}.login-container .login-form[data-v-3ed12324]{border-radius:6px;background:#fff;padding:25px 25px 5px 25px;width:400px}.login-container .login-form .logo[data-v-3ed12324]{width:350px;height:140px}.login-container .tips[data-v-3ed12324]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-3ed12324]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-3ed12324]{padding:6px 5px 6px 15px;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-3ed12324]{position:relative}.login-container .title-container .title[data-v-3ed12324]{font-size:26px;color:#0174d7;margin:0 auto 20px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-3ed12324]{position:absolute;right:10px;top:7px;font-size:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}

View File

@ -0,0 +1 @@
.wscn-http404-container[data-v-116cead5]{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);position:absolute;top:40%;left:50%}.wscn-http404[data-v-116cead5]{position:relative;width:1200px;padding:0 50px;overflow:hidden}.wscn-http404 .pic-404[data-v-116cead5]{position:relative;float:left;width:600px;overflow:hidden}.wscn-http404 .pic-404__parent[data-v-116cead5]{width:100%}.wscn-http404 .pic-404__child[data-v-116cead5]{position:absolute}.wscn-http404 .pic-404__child.left[data-v-116cead5]{width:80px;top:17px;left:220px;opacity:0;-webkit-animation-name:cloudLeft-data-v-116cead5;animation-name:cloudLeft-data-v-116cead5;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}.wscn-http404 .pic-404__child.mid[data-v-116cead5]{width:46px;top:10px;left:420px;opacity:0;-webkit-animation-name:cloudMid-data-v-116cead5;animation-name:cloudMid-data-v-116cead5;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1.2s;animation-delay:1.2s}.wscn-http404 .pic-404__child.right[data-v-116cead5]{width:62px;top:100px;left:500px;opacity:0;-webkit-animation-name:cloudRight-data-v-116cead5;animation-name:cloudRight-data-v-116cead5;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}@-webkit-keyframes cloudLeft-data-v-116cead5{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@keyframes cloudLeft-data-v-116cead5{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@-webkit-keyframes cloudMid-data-v-116cead5{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@keyframes cloudMid-data-v-116cead5{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@-webkit-keyframes cloudRight-data-v-116cead5{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}@keyframes cloudRight-data-v-116cead5{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}.wscn-http404 .bullshit[data-v-116cead5]{position:relative;float:left;width:300px;padding:30px 0;overflow:hidden}.wscn-http404 .bullshit__oops[data-v-116cead5]{font-size:32px;line-height:40px;color:#1482f0;margin-bottom:20px;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__headline[data-v-116cead5],.wscn-http404 .bullshit__oops[data-v-116cead5]{font-weight:700;opacity:0;-webkit-animation-name:slideUp-data-v-116cead5;animation-name:slideUp-data-v-116cead5;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__headline[data-v-116cead5]{font-size:20px;line-height:24px;color:#222;margin-bottom:10px;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-116cead5]{font-size:13px;line-height:21px;color:grey;margin-bottom:30px;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-116cead5],.wscn-http404 .bullshit__return-home[data-v-116cead5]{opacity:0;-webkit-animation-name:slideUp-data-v-116cead5;animation-name:slideUp-data-v-116cead5;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__return-home[data-v-116cead5]{display:block;float:left;width:110px;height:36px;background:#1482f0;border-radius:100px;text-align:center;color:#fff;font-size:14px;line-height:36px;cursor:pointer;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slideUp-data-v-116cead5{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes slideUp-data-v-116cead5{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}

View File

@ -0,0 +1 @@
.pagination-container[data-v-2424f858]{background:#fff;padding:0 2px}.pagination-container.hidden[data-v-2424f858]{display:none}.custom-tree-node{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.pagination-container[data-v-2424f858]{background:#fff;padding:0 2px}.pagination-container.hidden[data-v-2424f858]{display:none}

View File

@ -0,0 +1 @@
.app-container .roles-table[data-v-12715922]{margin-top:30px}.app-container .permission-tree[data-v-12715922]{margin-bottom:30px}

View File

@ -0,0 +1 @@
.pagination-container[data-v-2424f858]{background:#fff;padding:0 2px}.pagination-container.hidden[data-v-2424f858]{display:none}

View File

@ -0,0 +1 @@
.pagination-container[data-v-2424f858]{background:#fff;padding:0 2px}.pagination-container.hidden[data-v-2424f858]{display:none}

View File

@ -0,0 +1 @@
.pagination-container[data-v-2424f858]{background:#fff;padding:0 2px}.pagination-container.hidden[data-v-2424f858]{display:none}.avatar-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload:hover{border-color:#409eff}.avatar-uploader-icon{font-size:28px;color:#8c939d;width:100px;height:100px;line-height:100px;text-align:center}.avatar{width:100px;height:100px;display:block}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;-webkit-box-shadow:0 0 10px #29d,0 0 5px #29d;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translateY(-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;-webkit-box-sizing:border-box;box-sizing:border-box;border:2px solid transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-086b0da4"],{"6a13":function(a,t,s){},9406:function(a,t,s){"use strict";s.r(t);var e=function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("div",{staticClass:"dashboard-container"},[s("div",{staticClass:"dashboard-text"},[a._v("name: "+a._s(a.name))]),a._v(" "),s("div",{staticClass:"dashboard-text"},[a._v("perms: "),a._l(a.perms,(function(t){return s("span",{key:t},[a._v(a._s(t))])}))],2)])},n=[],c=s("5530"),r=s("2f62"),i={name:"Dashboard",computed:Object(c["a"])({},Object(r["b"])(["name","perms"]))},o=i,d=(s("9819"),s("2877")),u=Object(d["a"])(o,e,n,!1,null,"177afb0b",null);t["default"]=u.exports},9819:function(a,t,s){"use strict";s("6a13")}}]);

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1259b78a"],{"07ae":function(e,t,s){},2017:function(e,t,s){"use strict";s("b12d")},8685:function(e,t,s){"use strict";s("07ae")},"9ed6":function(e,t,s){"use strict";s.r(t);var n=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"login-container"},[s("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[s("div",{staticStyle:{"text-align":"center","margin-bottom":"8px"}}),e._v(" "),s("div",{staticClass:"title-container"},[s("h3",{staticClass:"title"},[e._v("总院专家库")])]),e._v(" "),s("el-form-item",{attrs:{prop:"username"}},[s("span",{staticClass:"svg-container"},[s("svg-icon",{attrs:{"icon-class":"user"}})],1),e._v(" "),s("el-input",{ref:"username",attrs:{placeholder:"账号",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"password"}},[s("span",{staticClass:"svg-container"},[s("svg-icon",{attrs:{"icon-class":"password"}})],1),e._v(" "),s("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),s("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[s("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1),e._v(" "),s("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登陆")])],1)],1)},o=[],r={name:"Login",data:function(){var e=function(e,t,s){t.length<4?s(new Error("密码长度小于4位!")):s()};return{loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",message:"请输入账户"}],password:[{required:!0,trigger:"blur",validator:e,message:"请输入密码"}]},loading:!1,passwordType:"password",redirect:void 0}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:{showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return console.log("error submit!!"),!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(){e.$router.push({path:e.redirect||"/crm/consumer"}),e.loading=!1})).catch((function(){e.loading=!1}))}))}}},a=r,i=(s("2017"),s("8685"),s("2877")),l=Object(i["a"])(a,n,o,!1,null,"3ed12324",null);t["default"]=l.exports},b12d:function(e,t,s){}}]);

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1325c3d2"],{"26fc":function(t,s,i){t.exports=i.p+"static/img/404_cloud.0f4bc32b.png"},"8cdb":function(t,s,i){"use strict";i.r(s);var a=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops"},[t._v("不好意思!")]),t._v(" "),i("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),i("div",{staticClass:"bullshit__info"},[t._v("请检查访问地址,或者点击按钮返回首页.")]),t._v(" "),i("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:i("a36b"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],l={name:"Page404",computed:{message:function(){return"您好像没有该页面的访问权限..."}}},n=l,e=(i("da66"),i("2877")),_=Object(e["a"])(n,a,c,!1,null,"116cead5",null);s["default"]=_.exports},a36b:function(t,s,i){t.exports=i.p+"static/img/404.a57b6f31.png"},da66:function(t,s,i){"use strict";i("f952")},f952:function(t,s,i){}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-77303084"],{dcdc8:function(e,r,t){"use strict";t.r(r);var s=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"app-container"},[t("el-form",{ref:"elForm",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"100px"}},[t("el-form-item",{attrs:{label:"旧密码",prop:"old_password"}},[t("el-input",{style:{width:"100%"},attrs:{placeholder:"请输入旧密码",clearable:"","show-password":""},model:{value:e.formData.old_password,callback:function(r){e.$set(e.formData,"old_password",r)},expression:"formData.old_password"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"新密码",prop:"new_password1"}},[t("el-input",{style:{width:"100%"},attrs:{placeholder:"请输入新密码",clearable:"","show-password":""},model:{value:e.formData.new_password1,callback:function(r){e.$set(e.formData,"new_password1",r)},expression:"formData.new_password1"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"新密码",prop:"new_password2"}},[t("el-input",{style:{width:"100%"},attrs:{placeholder:"请再次输入新密码",clearable:"","show-password":""},model:{value:e.formData.new_password2,callback:function(r){e.$set(e.formData,"new_password2",r)},expression:"formData.new_password2"}})],1),e._v(" "),t("el-form-item",{attrs:{size:"large"}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("提交")]),e._v(" "),t("el-button",{on:{click:e.resetForm}},[e._v("重置")])],1)],1)],1)},a=[],o=(t("96cf"),t("1da1")),n=t("c24f"),l={components:{},props:[],data:function(){return{formData:{old_password:void 0,new_password1:void 0,new_password2:void 0},rules:{old_password:[{required:!0,message:"请输入旧密码",trigger:"blur"}],new_password1:[{required:!0,message:"请输入新密码",trigger:"blur"}],new_password2:[{required:!0,message:"请再次输入新密码",trigger:"blur"}]}}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{submitForm:function(){var e=this;this.$refs["elForm"].validate((function(r){r&&Object(n["a"])(e.formData).then(function(){var r=Object(o["a"])(regeneratorRuntime.mark((function r(t){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.$message({message:"密码修改成功,请重新登陆",type:"success"}),r.next=3,e.$store.dispatch("user/logout");case 3:e.$router.push("/login");case 4:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}())}))},resetForm:function(){this.$refs["elForm"].resetFields()}}},i=l,d=t("2877"),p=Object(d["a"])(i,s,a,!1,null,null,null);r["default"]=p.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1 @@
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=/favicon.ico><title>总院专家库</title><link href=/static/css/chunk-elementUI.ded27da0.css rel=stylesheet><link href=/static/css/chunk-libs.3dfb7769.css rel=stylesheet><link href=/static/css/app.48418970.css rel=stylesheet></head><body><noscript><strong>We're sorry but 总院专家库 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-elementUI.cde42631.js></script><script src=/static/js/chunk-libs.c4b663f6.js></script><script>(function(e){function n(n){for(var r,c,o=n[0],f=n[1],d=n[2],i=0,h=[];i<o.length;i++)c=o[i],a[c]&&h.push(a[c][0]),a[c]=0;for(r in f)Object.prototype.hasOwnProperty.call(f,r)&&(e[r]=f[r]);l&&l(n);while(h.length)h.shift()();return u.push.apply(u,d||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],r=!0,c=1;c<t.length;c++){var o=t[c];0!==a[o]&&(r=!1)}r&&(u.splice(n--,1),e=f(f.s=t[0]))}return e}var r={},c={runtime:0},a={runtime:0},u=[];function o(e){return f.p+"static/js/"+({}[e]||e)+"."+{"chunk-04992a40":"71394509","chunk-05e9cc40":"c7e8ddca","chunk-086b0da4":"89082ac9","chunk-1259b78a":"461d4be7","chunk-1325c3d2":"ccd8b723","chunk-5a2f9c7b":"1f71326d","chunk-36e93b2c":"baefa29f","chunk-9a2e6012":"3583afd8","chunk-a5290732":"5eaf8e81","chunk-d9522eb6":"d56e9bd4","chunk-5adeb9a7":"65008bce","chunk-77303084":"e18f3586","chunk-99c1f3fe":"7470566d","chunk-a8e131c4":"5655492a","chunk-d3f2dd86":"98c2c369"}[e]+".js"}function f(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.e=function(e){var n=[],t={"chunk-04992a40":1,"chunk-086b0da4":1,"chunk-1259b78a":1,"chunk-1325c3d2":1,"chunk-5a2f9c7b":1,"chunk-36e93b2c":1,"chunk-d9522eb6":1,"chunk-5adeb9a7":1,"chunk-99c1f3fe":1,"chunk-a8e131c4":1,"chunk-d3f2dd86":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise((function(n,t){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-04992a40":"a7f5a2b2","chunk-05e9cc40":"31d6cfe0","chunk-086b0da4":"41651b7a","chunk-1259b78a":"c27e8c33","chunk-1325c3d2":"f0b2915b","chunk-5a2f9c7b":"84f98409","chunk-36e93b2c":"64c8a126","chunk-9a2e6012":"31d6cfe0","chunk-a5290732":"31d6cfe0","chunk-d9522eb6":"39100014","chunk-5adeb9a7":"a7f5a2b2","chunk-77303084":"31d6cfe0","chunk-99c1f3fe":"33bac261","chunk-a8e131c4":"a7f5a2b2","chunk-d3f2dd86":"a7f5a2b2"}[e]+".css",a=f.p+r,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var d=u[o],i=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(i===r||i===a))return n()}var h=document.getElementsByTagName("style");for(o=0;o<h.length;o++){d=h[o],i=d.getAttribute("data-href");if(i===r||i===a)return n()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=n,l.onerror=function(n){var r=n&&n.target&&n.target.src||a,u=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=r,delete c[e],l.parentNode.removeChild(l),t(u)},l.href=a;var s=document.getElementsByTagName("head")[0];s.appendChild(l)})).then((function(){c[e]=0})));var r=a[e];if(0!==r)if(r)n.push(r[2]);else{var u=new Promise((function(n,t){r=a[e]=[n,t]}));n.push(r[2]=u);var d,i=document.createElement("script");i.charset="utf-8",i.timeout=120,f.nc&&i.setAttribute("nonce",f.nc),i.src=o(e),d=function(n){i.onerror=i.onload=null,clearTimeout(h);var t=a[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src,u=new Error("Loading chunk "+e+" failed.\n("+r+": "+c+")");u.type=r,u.request=c,t[1](u)}a[e]=void 0}};var h=setTimeout((function(){d({type:"timeout",target:i})}),12e4);i.onerror=i.onload=d,document.head.appendChild(i)}return Promise.all(n)},f.m=e,f.c=r,f.d=function(e,n,t){f.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,n){if(1&n&&(e=f(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)f.d(t,r,function(n){return e[n]}.bind(null,r));return t},f.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="/",f.oe=function(e){throw console.error(e),e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],i=d.push.bind(d);d.push=n,d=d.slice();for(var h=0;h<d.length;h++)n(d[h]);var l=i;t()})([]);</script><script src=/static/js/app.6b6b8fe4.js></script></body></html>