webpackJsonp([92],{TdIe:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("cdA+"),s=e("0xDb"),i={data:function(){return{updatePassowrdVisible:!1,lang:"中文",noticeNo:0,dataList:[]}},watch:{},created:function(){"cn"===localStorage.getItem("lang")?this.lang="中文":"en"===localStorage.getItem("lang")?this.lang="English":this.lang="中文",this.getDataList()},components:{UpdatePassword:n.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:{switchLang:function(t){this.$i18n.locale=t,localStorage.setItem("lang",t),"cn"===localStorage.getItem("lang")?this.lang="中文":this.lang="English",location.reload()},getDataList:function(){},updatePasswordHandle:function(){var t=this;this.updatePassowrdVisible=!0,this.$nextTick(function(){t.$refs.updatePassowrd.init()})},logoutHandle:function(){var t=this;this.$confirm(this.$t("message.confirmquit"),this.$t("tips"),{confirmButtonText:this.$t("message.confirm"),cancelButtonText:this.$t("message.cancel"),type:"warning"}).then(function(){t.$http({url:t.$http.adornUrl("/sys/logout"),method:"post",data:t.$http.adornData()}).then(function(a){var e=a.data;e&&0===e.code&&(Object(s.a)(),t.$router.push({name:"login"}))})}).catch(function(){})}}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("nav",{staticClass:"site-navbar",class:"site-navbar--"+t.navbarLayoutType},[e("div",{staticClass:"site-navbar__header"},[e("h1",{staticClass:"site-navbar__brand",on:{click:function(a){t.$router.push({name:"home"})}}},[e("a",{staticClass:"site-navbar__brand-lg",attrs:{href:"javascript:;"}},[t._v(t._s(t.$t("cpms")))]),t._v(" "),e("a",{staticClass:"site-navbar__brand-mini",attrs:{href:"javascript:;"}},[t._v("SEMS")])])]),t._v(" "),e("div",{staticClass:"site-navbar__body clearfix"},[e("el-menu",{staticClass:"site-navbar__menu",attrs:{mode:"horizontal"}},[e("el-menu-item",{staticClass:"site-navbar__switch",attrs:{index:"0"},on:{click:function(a){t.sidebarFold=!t.sidebarFold}}},[e("icon-svg",{attrs:{name:"zhedie"}})],1)],1),t._v(" "),e("el-menu",{staticClass:"site-navbar__menu site-navbar__menu--right",attrs:{mode:"horizontal"}},[e("el-menu-item",{attrs:{index:"1"},on:{click:function(a){t.$router.push({name:"notice-mynotice"})}}},[0!=t.noticeNo?e("el-badge",{attrs:{value:t.noticeNo}},[e("icon-svg",{staticClass:"el-icon-setting",attrs:{name:"tixing"}})],1):t._e(),t._v(" "),0==t.noticeNo?e("icon-svg",{staticClass:"el-icon-setting",attrs:{name:"tixing"}}):t._e()],1),t._v(" "),e("el-menu-item",{attrs:{index:"2"}},[e("el-dropdown",[e("span",{staticClass:"el-dropdown-link"},[t._v("\n            "+t._s(t.lang)),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(a){t.switchLang("cn")}}},[t._v("中文")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(a){t.switchLang("en")}}},[t._v("English")])],1)],1)],1),t._v(" "),e("el-menu-item",{staticClass:"site-navbar__avatar",attrs:{index:"3"}},[e("el-dropdown",{attrs:{"show-timeout":0,placement:"bottom"}},[e("span",{staticClass:"el-dropdown-link"},[t._v("\n              "+t._s(t.userName)+"\n            ")]),t._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(a){t.updatePasswordHandle()}}},[t._v(t._s(t.$t("message.resetPassword")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(a){t.logoutHandle()}}},[t._v(t._s(t.$t("message.quit")))])],1)],1)],1)],1)],1),t._v(" "),t.updatePassowrdVisible?e("update-password",{ref:"updatePassowrd"}):t._e()],1)},staticRenderFns:[]},r=e("VU/8")(i,o,!1,null,null,null);a.default=r.exports}});