12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4515ebc5"],{"21bb":function(t,e,o){"use strict";o("8821")},8821:function(t,e,o){},bb51:function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-container",[o("el-header",[o("div",{staticClass:"header"},[o("span",{staticClass:"logout",on:{click:t.logout}},[t._v("退出登陆")]),t.info.name?o("el-dropdown",{staticClass:"logout",staticStyle:{"margin-right":"10px"}},[o("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)),o("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{nativeOn:{click:function(e){return t.changePsw.apply(null,arguments)}}},[t._v("修改密码")])],1)],1):t._e(),o("div",{staticClass:"siteTitle"},[t._v("顽主杯实盘大赛后台")])],1)]),o("el-container",{staticClass:"main"},[o("el-aside",{staticClass:"left-aside",attrs:{width:"210px"}},[o("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(e,s){return[e.show&&e.isLeaf?o("el-menu-item",{key:s,attrs:{index:e.path}},[o("i",{class:e.icon}),o("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))])]):t._e(),e.show&&!e.isLeaf?o("el-submenu",{key:s,attrs:{index:"index_"+s}},[o("template",{slot:"title"},[o("i",{class:e.icon}),o("span",[t._v(t._s(e.name))])]),o("el-menu-item-group",t._l(e.children,(function(e,a){return o("el-menu-item",{directives:[{name:"show",rawName:"v-show",value:!e.hide,expression:"!child.hide"}],key:s+"_"+a,staticClass:"child",attrs:{index:e.path}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t\t\t\t\t")])})),1)],2):t._e()]}))],2)],1),o("el-container",[o("el-main",[o("transition",{attrs:{name:"fade",mode:"out-in"}},[o("router-view")],1)],1)],1)],1),o("el-dialog",{attrs:{title:"修改密码",visible:t.open,width:"500px","append-to-body":""},on:{"update:visible":function(e){t.open=e}}},[o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[o("el-form-item",{attrs:{label:"新密码"}},[o("el-input",{attrs:{type:"password",placeholder:""},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),o("el-form-item",{attrs:{label:"确认密码"}},[o("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),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确 定")]),o("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("21bb"),o("4ac2")),l=Object(r["a"])(i,s,a,!1,null,null,null);e["default"]=l.exports}}]);
- //# sourceMappingURL=chunk-4515ebc5.d41df7f3.js.map
|