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

2 lines
17 KiB
JavaScript
Raw Permalink Normal View History

2024-11-28 09:29:02 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8492257a","chunk-0d87864c","chunk-c095d836","chunk-0a210700","chunk-05a3b661","chunk-2d0abcaa","chunk-2d0aeedb"],{"0bc6":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.item.showingChildren?i("el-submenu",{attrs:{index:t.item.meta.name,route:t.item}},[i("template",{slot:"title"},[t.item.meta.icon?i("i",{staticClass:"iconfont icon",class:"icon-"+t.item.meta.icon}):t._e(),t.isCollapse?t._e():i("span",[t._v(t._s(t.$t("home."+t.item.meta.name)))])]),i("el-menu-item-group",t._l(t.item.children,(function(t){return i("SidebarItem",{key:t.permissionId,attrs:{index:t.meta.name,item:t}})})),1)],2):[i("el-menu-item",{attrs:{index:t.item.meta.name,route:t.item}},[t.item.meta.icon?i("i",{staticClass:"iconfont icon",class:"icon-"+t.item.meta.icon}):t._e(),i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("home."+t.item.meta.name)))])])]],2)},n=[],a={name:"SidebarItem",props:{item:{type:Object,required:!0}},computed:{isCollapse:{get:function(){return this.$store.state.app.isCollapse}}}},o=a,r=i("2877"),c=Object(r["a"])(o,s,n,!1,null,null,null);e["default"]=c.exports},"162e":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-wrapper"},[i("div",{staticClass:"app-header"},[i("div",{staticClass:"header-logo",on:{click:t.goHome}},[t.logoForm.logoPath?i("img",{staticClass:"icon",attrs:{src:t.logoForm.logoPath,alt:""}}):i("i",{staticClass:"iconfont icon-logo icon"}),t.logoForm.unitName?i("div",{staticClass:"name"},[t._v(" "+t._s("en"==this.$i18n.locale?t.logoForm.enUnitName:t.logoForm.unitName)+" ")]):i("div",{staticClass:"name"},[t._v(" "+t._s(t.isAdmin||t.isHome?t.$t("deskName"):t.$t("name"))+" ")])]),i("div",{staticClass:"header-content"},[i("SignOut",{attrs:{isAdmin:t.isAdmin,isHome:t.isHome}}),i("AlarmList")],1)]),i("div",{class:{collapsed:t.isCollapse},attrs:{id:"app-main"}},[t.isHome?t._e():i("LeftBar"),i("div",{staticClass:"app-main",class:{isAdmin:t.isHome}},[t.isHome?t._e():i("TagsView"),i("AppMain")],1)],1)])},n=[],a=(i("b0c0"),i("fcda")),o=i("177e"),r=i("9128"),c=i("77eb"),l=i("1a47"),u={name:"Layout",components:{LeftBar:c["default"],SignOut:a["default"],AppMain:o["default"],TagsView:l["default"],AlarmList:r["default"]},data:function(){return{isAdmin:!1,isHome:!0}},mounted:function(){console.log(this.logoForm," this.-----------"),this.isAdmin="admin"==this.$route.matched[0].meta.name,this.isHome="manager"==this.$route.name},watch:{$route:function(){console.log(this.$route),this.isAdmin="admin"==this.$route.matched[0].meta.name,this.isHome="manager"==this.$route.name}},computed:{logoForm:{get:function(){return this.$store.state.user.logoForm}},isCollapse:{get:function(){return this.$store.state.app.isCollapse}}},methods:{goHome:function(){var t=this.$router.resolve({path:"/map/GIS"});window.open(t.href,"GIS")}}},m=u,h=(i("4a5a"),i("2877")),d=Object(h["a"])(m,s,n,!1,null,"a5015ec8",null);e["default"]=d.exports},"177e":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"app-container"}},[i("keep-alive",{attrs:{include:t.cachedViews}},[i("router-view",{key:t.key})],1)],1)},n=[],a={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.fullPath}}},o=a,r=i("2877"),c=Object(r["a"])(o,s,n,!1,null,null,null);e["default"]=c.exports},"1a47":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"tags-view-container"},[i("i",{staticClass:"iconfont icon-xiangqian icon"}),i("i",{staticClass:"iconfont icon-xianghou icon after"}),i("div",{ref:"isOverflow",staticClass:"container"},t._l(t.visitedViews,(function(e){return i("div",{key:e.path,staticClass:"tags-view-item",class:t.isActive(e)?"active":"",on:{click:function(i){return t.goLink(e)},contextmenu:function(i){return i.preventDefault(),i.stopPropagation(
//# sourceMappingURL=chunk-8492257a.a9c84623.js.map