1 line
2.9 KiB
JavaScript
1 line
2.9 KiB
JavaScript
|
webpackJsonp([32],{TdIe:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("cdA+"),n=e("0xDb"),i={data:function(){return{updatePassowrdVisible:!1}},components:{UpdatePassword:s.default},computed:{navbarLayoutType:{get:function(){return this.$store.state.common.navbarLayoutType}},sidebarFold:{get:function(){return this.$store.state.common.sidebarFold},set:function(t){this.$store.commit("common/updateSidebarFold",t)}},mainTabs:{get:function(){return this.$store.state.common.mainTabs},set:function(t){this.$store.commit("common/updateMainTabs",t)}},userName:{get:function(){return this.$store.state.user.name}}},methods:{updatePasswordHandle:function(){var t=this;this.updatePassowrdVisible=!0,this.$nextTick(function(){t.$refs.updatePassowrd.init()})},logoutHandle:function(){var t=this;this.$confirm("确定进行[退出]操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.a)(),t.$router.push({name:"login"})}).catch(function(){})}}},o={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("nav",{staticClass:"site-navbar",class:"site-navbar--"+t.navbarLayoutType},[s("div",{staticClass:"site-navbar__header"},[s("h1",{staticClass:"site-navbar__brand",on:{click:function(a){t.$router.push({name:"home"})}}},[s("p",{staticClass:"site-navbar__brand-lg"},[t._v("全友WMS调度管理系统")]),t._v(" "),s("a",{staticClass:"site-navbar__brand-mini",attrs:{href:"javascript:;"}},[t._v("全友")])])]),t._v(" "),s("div",{staticClass:"site-navbar__body clearfix"},[s("el-menu",{staticClass:"site-navbar__menu",attrs:{mode:"horizontal"}},[s("el-menu-item",{staticClass:"site-navbar__switch",attrs:{index:"0"},on:{click:function(a){t.sidebarFold=!t.sidebarFold}}},[s("icon-svg",{staticClass:"site-navbar-icon",attrs:{name:"侧边收纳"}})],1)],1),t._v(" "),s("el-menu",{staticClass:"site-navbar__menu site-navbar__menu--right",attrs:{mode:"horizontal"}},[s("el-menu-item",{attrs:{index:"1"},on:{click:function(a){t.$router.push({name:"theme"})}}},[s("template",{slot:"title"},[s("el-badge",[s("icon-svg",{staticClass:"site-navbar-icon",attrs:{name:"shezhi"}})],1)],1)],2),t._v(" "),s("el-menu-item",{staticClass:"site-navbar__avatar",attrs:{index:"3"}},[s("el-dropdown",{attrs:{"show-timeout":0,placement:"bottom"}},[s("span",{staticClass:"el-dropdown-link"},[s("img",{attrs:{src:e("zQrT"),alt:t.userName}}),t._v(t._s(t.userName)+"\n ")]),t._v(" "),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("el-dropdown-item",{nativeOn:{click:function(a){t.updatePasswordHandle()}}},[t._v("修改密码")]),t._v(" "),s("el-dropdown-item",{nativeOn:{click:function(a){t.logoutHandle()}}},[t._v("退出")])],1)],1)],1)],1)],1),t._v(" "),t.updatePassowrdVisible?s("update-password",{ref:"updatePassowrd"}):t._e()],1)},staticRenderFns:[]},r=e("VU/8")(i,o,!1,null,null,null);a.default=r.exports},zQrT:function(t,a,e){t.exports=e.p+"static/img/avatar.c58e465.png"}});
|