12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0983e76f"],{"270f":function(t,e,o){"use strict";o("d33a")},bb51:function(t,e,o){"use strict";o.r(e);o("fc02"),o("a450");var s=function(){var t=this,e=t._self._c;return e("el-container",[e("el-header",[e("div",{staticClass:"header"},[e("span",{staticClass:"logout",on:{click:t.logout}},[t._v("退出登陆")]),t.info.name?e("el-dropdown",{staticClass:"logout",staticStyle:{"margin-right":"10px"}},[e("span",{staticClass:"el-dropdown-link",staticStyle:{color:"#fff","font-size":"16px"}},[t._v("\n\t\t\t\t\t\t"+t._s(t.info.name)),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.changePsw.apply(null,arguments)}}},[t._v("修改密码")])],1)],1):t._e(),e("div",{staticClass:"siteTitle"},[t._v("贝安欣PK检测管理后台")])],1)]),e("el-container",{staticClass:"main"},[e("el-aside",{staticClass:"left-aside",attrs:{width:"210px"}},[e("el-menu",{staticClass:"left-menue",attrs:{"background-color":"#151932","text-color":"#ffffff","unique-opened":!1,"default-active":"/"+t.$route.path.split("/")[1],router:"","active-text-color":"#ffffff"}},[t._l(t.$router.options.routes,(function(o,s){return[o.show&&o.isLeaf?e("el-menu-item",{key:s,attrs:{index:o.path}},[e("i",{class:o.icon}),e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(o.name))])]):t._e(),o.show&&!o.isLeaf?e("el-submenu",{key:s,attrs:{index:"index_"+s}},[e("template",{slot:"title"},[e("i",{class:o.icon}),e("span",[t._v(t._s(o.name))])]),e("el-menu-item-group",t._l(o.children,(function(o,a){return e("el-menu-item",{directives:[{name:"show",rawName:"v-show",value:!o.hide,expression:"!child.hide"}],key:s+"_"+a,staticClass:"child",attrs:{index:o.path}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(o.name)+"\n\t\t\t\t\t\t\t\t\t")])})),1)],2):t._e()]}))],2)],1),e("el-container",[e("el-main",[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)],1)],1),e("el-dialog",{attrs:{title:"修改密码",visible:t.open,width:"500px","append-to-body":""},on:{"update:visible":function(e){t.open=e}}},[e("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[e("el-form-item",{attrs:{label:"新密码"}},[e("el-input",{attrs:{type:"password",placeholder:""},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),e("el-form-item",{attrs:{label:"确认密码"}},[e("el-input",{attrs:{type:"password",placeholder:""},model:{value:t.form.repassword,callback:function(e){t.$set(t.form,"repassword",e)},expression:"form.repassword"}})],1)],1),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确 定")]),e("el-button",{on:{click:function(e){t.open=!1}}},[t._v("取 消")])],1)],1)],1)},a=[],n={name:"home",data:function(){return{info:{},open:!1,form:{}}},methods:{changePsw:function(){this.open=!0},submitForm:function(){var t=this;this.form.password?this.form.repassword?this.$api.reset(this.form).then((function(e){0==e.data.code?t.$router.push({path:"/"}):t.msgError(e.data.message)})):this.msgError("请确认密码"):this.msgError("请输入新密码")},logout:function(){var t=this;this.$api.logout().then((function(e){t.$router.push({path:"/"})}))},getData:function(){var t=this;this.$api.getAccountInfo().then((function(e){e.code||(t.info=e.data.data)}))}},created:function(){this.getData()}},i=n,r=(o("270f"),o("e607")),l=Object(r["a"])(i,s,a,!1,null,null,null);e["default"]=l.exports},d33a:function(t,e,o){}}]);
- //# sourceMappingURL=chunk-0983e76f.c6394906.js.map
|