EMS2.0-Documents/7.部署文档/Window安装/项目前端文件/IEMS/js/chunk-0a210700.dfa25b77.js

2 lines
2.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a210700"],{3137:function(n,t,e){"use strict";e("bda2")},bda2:function(n,t,e){},fcda:function(n,t,e){"use strict";e.r(t);var i=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"header-goback"},[e("div",{staticClass:"desk",on:{click:n.goScreen}},[e("i",{staticClass:"iconfont icon-shouye"}),e("span",[n._v(n._s(n.$t("home.screen")))])]),n.isAdmin||n.isHome?n._e():e("div",{staticClass:"desk",on:{click:n.goAdmin}},[e("i",{staticClass:"iconfont icon-guanlitai"}),e("span",[n._v(n._s(n.$t("login.desk")))])]),e("div",{staticClass:"lanange"},[e("i",{staticClass:"iconfont icon-yuyan"}),e("span",{class:{isLang:"zh"==n.lang},on:{click:function(t){return n.changeLang("zh")}}},[n._v("中")]),e("el-divider",{attrs:{direction:"vertical"}}),e("span",{class:{isLang:"en"==n.lang},on:{click:function(t){return n.changeLang("en")}}},[n._v("EN")])],1),e("div",{staticClass:"name"},[e("i",{staticClass:"iconfont icon-yonghu"}),e("span",[n._v(n._s(n.$t("login.welcome")))]),e("span",[n._v(n._s(n.getUserType(n.userType)))]),e("span",[n._v("["+n._s(n.userName)+"]")]),n.isAdmin?n._e():e("el-tooltip",{attrs:{content:n.$t("home.personal")}},[e("i",{staticClass:"iconfont icon-bianji",on:{click:function(t){return n.goPerson(n.isAdmin)}}})]),e("el-tooltip",{attrs:{content:n.$t("login.signOut")}},[e("i",{staticClass:"iconfont icon-tuichu",on:{click:n.logout}})])],1)])},s=[],o=(e("b680"),e("d3b7"),e("25f0"),{name:"SignOut",props:{isAdmin:{type:Boolean,required:!0},isHome:{type:Boolean,required:!0}},data:function(){return{isShow:!1,timeout:5e4,lang:this.$i18n.locale,openedWindow:null}},filters:{round:function(n){if(n){n-=0;var t=parseFloat(n.toFixed(1));return t}return 0}},mounted:function(){this.logoForm.unitName?document.title="en"==this.$i18n.locale?this.logoForm.enUnitName:this.logoForm.unitName:document.title=""},computed:{userName:function(){return this.$store.state.user.userName},userType:function(){return this.$store.state.user.userType},logoForm:{get:function(){return this.$store.state.user.logoForm}}},methods:{getUserType:function(n){return 1==n?this.$t("user.superAdmin"):this.$t("user.admin")},goScreen:function(){var n=this.$router.resolve({name:"screen"});window.open(n.href,"screen")},goAdmin:function(){var n=this.$router.resolve({name:"manager"});window.open(n.href,"manager")},goPerson:function(){this.isAdmin||this.$router.push({name:"personal"})},changeLang:function(n){this.lang!=n&&(this.$i18n.locale=n,this.lang=n,localStorage.setItem("lang",n),this.$message({message:this.$t("changelangtip").toString(),type:"success"}))},logout:function(){window.localStorage.removeItem("sitename"),this.$store.dispatch("LogOut").then((function(){location.reload()}))}}}),a=o,r=(e("3137"),e("2877")),c=Object(r["a"])(a,i,s,!1,null,"58efc830",null);t["default"]=c.exports}}]);
//# sourceMappingURL=chunk-0a210700.dfa25b77.js.map