(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-55b866bb"],{
/***/"028b":
/***/function(t,e,a){"use strict";
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/layouts/ProjectLayout.vue?vue&type=template&id=17a11d2e&scoped=true
var i=a("b85c"),n=a("5530"),o=(a("99af"),a("c740"),a("fb6a"),a("b0c0"),a("7db0"),a("b64b"),a("d3b7"),a("0643"),a("fffc"),a("2b49")),s=a("301a"),l=a("2f62"),r=a("cf45"),c={name:"ProjectHeader",components:{IMenu:s.a,HeaderAvatar:o.a},props:["collapsed","menuData"],i18n:a("89fe"),data:function(){return{searchActive:!1}},created:function(){var t=this,e=this.$createElement,a=this;this.$EventBus.$off("RealAlarm"),this.$EventBus.$on("RealAlarm",(function(i){var n=i,o="",s="",l="",r="",c=a.formatDateTime(n.HappenTime);"1"==n.Value?(o=a.$t("monitor.Notification.MessageAlarmTitle"),s=t.$t(n.AlarmMessage),r=a.$t("alarm.Speech.tips")):(o=a.$t("monitor.Notification.MessageClearAlarmTitle"),s=t.$t(n.AlarmClearMessage)),
//此为摄像头的特殊数据ID需要单独处理
"videoConnectStatusAlarm"==n.DataUuid&&(n.AlarmLevel=3,n.DataName=a.$t("monitor.Notification.public.videoDataName"),s="1"==n.Value?a.$t("monitor.Notification.public.videoOffline"):a.$t("monitor.Notification.public.videoOnline")),0==n.AlarmLevel?l=a.$t("dataModel.alarm.Tips"):1==n.AlarmLevel?l=a.$t("dataModel.alarm.Minor"):2==n.AlarmLevel?l=a.$t("dataModel.alarm.Importance"):3==n.AlarmLevel?l=a.$t("dataModel.alarm.Urgency"):4==n.AlarmLevel&&(l=a.$t("dataModel.alarm.Deadly")),r+=a.$t("monitor.Notification.DeviceTitle"),r+=a.$t(n.DeviceName),r+=a.$t("monitor.Notification.DataTitle"),r+=a.$t(n.DataName),r+=a.$t("dataModel.AlarmLevel"),r+=l,r+=a.$t("monitor.Notification.HappenTime"),r+=c,r+=a.$t("monitor.Notification.Message"),r+=s;var d=localStorage.getItem("AlarmWindow");if("null"==d||null==d||""==d?((d={}).enable=!0,d.isClose=!0):d=JSON.parse(d),d.enable){var u=!1;void 0!==d.Level?(u=d.Level.find((function(t){return t==n.AlarmLevel})),0==d.Level.length&&(u=!0)):u=!0,u&&(a.$notification.warning({message:e("span",[o]),description:e("div",[e("span",{style:"font-size: 14px;font-weight: bold;"},[a.$t("monitor.Notification.DeviceTitle"),":"]),e("span",[a.$t(n.DeviceName)]),e("br"),e("span",{style:"font-size: 14px;font-weight: bold;"},[a.$t("monitor.Notification.DataTitle"),":"]),e("span",[a.$t(n.DataName)]),e("br"),e("span",{style:"font-size: 14px;font-weight: bold;"},[a.$t("dataModel.AlarmLevel"),":"]),e("span",[l]),e("br"),e("span",{style:"font-size: 14px;font-weight: bold;"},[a.$t("monitor.Notification.HappenTime"),":"]),e("span",[c]),e("br"),e("span",{style:"font-size: 14px;font-weight: bold;"},[a.$t("monitor.Notification.Message"),":"]),e("span",[s]),e("br")]),class:"fancy-notification",placement:"bottomRight",duration:d.isClose?5:null,icon:e("a-icon",{attrs:{type:"alert",theme:"filled"},style:{position:"absolute","margin-left":"4px","font-size":"24px","line-height":"24px",color:"red"}}),style:{padding:"10px 5px"}}),a.alarmSoundSpeech().start({container:"#sppekContent",Lang:a.$i18n.locale,rate:1},r))}})),this.$EventBus.$off("PlayVoice"),this.$EventBus.$on("PlayVoice",(function(t){var e=t;a.alarmSoundSpeech().start({container:"#sppekContent",Lang:a.$i18n.locale,rate:1},e.VoiceString)}))},computed:Object(n.a)(Object(n.a)({},Object(l.e)("setting",["langList","theme","isMobile","layout","systemName","lang","pageWidth"])),{},{headerTheme:function(){return"side"!=this.layout||"dark"!=this.theme.mode||this.isMobile?this.theme.mode:"light"},systemLogo:function(){return this.$store.state.setting.SystemLogo},langAlias:function(){var t=this;return this.langList.find((function(e){return e.key==t.lang})).alias},menuWidth:function(){var t=this.layout,e=this.searchActive?"600px":"400px";return"calc(".concat("head"===t?"100% - 188px":"100%"," - ").concat(e,")")}}),methods:Object(n.a)({formatDateTime:function(t){var e=new Date(t);return Object(r.a)(e,"yyyy-MM-dd hh:mm:ss")},toggleCollapse:function(){this.$emit("toggleCollapse")},onSelect:function(t){this.$emit("menuSelect",t)}},Object(l.d)("setting",["setLang"]))},d=(a("485f"),a("30ea"),a("2877")),u=Object(d.a)(c,(function(){var t=this,e=t._self._c;return e("a-layout-header",{class:[t.headerTheme,"admin-header"]},[e("div",{class:["admin-header-wide",t.layout,t.pageWidth],staticStyle:{position:"relative"}},[e("router-link",{class:["logo",t.isMobile?null:"pc",t.headerTheme],attrs:{to:"/Project"}},[e("img",{attrs:{width:"32",src:t.systemLogo}}),e("h1",[t._v(t._s(t.systemName))])]),t.isMobile?e("a-divider",{attrs:{type:"vertical"}}):t._e(),"side"===t.layout||t.isMobile?t._e():e("div",{staticClass:"admin-header-menu",style:"width: ".concat(t.menuWidth,";")},[e("i-menu",{staticClass:"head-menu",attrs:{theme:t.headerTheme,mode:"horizontal",options:t.menuData},on:{select:t.onSelect}})],1),e("div",{class:["admin-header-right",t.headerTheme]},[e("header-avatar",{staticClass:"header-item"}),e("a-dropdown",{staticClass:"lang header-item"},[e("div",[e("a-icon",{attrs:{type:"global"}}),t._v(" "+t._s(t.langAlias)+" ")],1),e("a-menu",{attrs:{slot:"overlay","selected-keys":[t.lang]},on:{click:function(e){return t.setLang(e.key)}},slot:"overlay"},t._l(t.langList,(function(a){return e("a-menu-item",{key:a.key},[t._v(" "+t._s(a.name))])})),1)],1)],1)],1)])}),[],!1,null,"74bea729",null)
/* harmony default export */.exports,h=a("613e"),m=(a("a41c"),a("e5f9"),a("060e"),{name:"ProjectLayout",components:{PageFooter:h.a,ProjectHeader:u},data:function(){return{minHeight:window.innerHeight-64-122,collapsed:!1,showSetting:!1,drawerOpen:!1}},provide:function(){return{adminLayout:this}},watch:{$route:function(t){this.setActivated(t)},layout:function(){this.setActivated(this.$route)},isMobile:function(t){t||(this.drawerOpen=!1)}},computed:Object(n.a)(Object(n.a)(Object(n.a)({},Object(l.e)("setting",["isMobile","theme","layout","footerLinks","copyright","fixedHeader","fixedSideBar","fixedTabs","hideSetting","multiPage","systemVersion"])),Object(l.c)("setting",["firstMenu","subMenu","menuData"])),{},{sideMenuWidth:function(){return this.collapsed?"80px":"256px"},headerStyle:function(){var t=this.fixedHeader&&"head"!==this.layout&&!this.isMobile?"calc(100% - ".concat(this.sideMenuWidth,")"):"100%",e=this.fixedHeader?"fixed":"static";return"width: ".concat(t,"; position: ").concat(e,";")},headMenuData:function(){var t=this.layout,e=this.menuData,a=this.firstMenu;return"mix"===t?a:e},sideMenuData:function(){var t=this.layout,e=this.menuData,a=this.subMenu;return"mix"===t?a:e}}),methods:Object(n.a)(Object(n.a)({},Object(l.d)("setting",["correctPageMinHeight","setActivatedFirst"])),{},{toggleCollapse:function(){this.collapsed=!this.collapsed},onMenuSelect:function(){this.toggleCollapse()},setActivated:function(t){var e=this;if("mix"===this.layout){var a=t.matched;a=a.slice(0,a.length-1);var n,o=this.firstMenu,s=Object(i.a)(o);try{var l=function(){var t=n.value;if(-1!==a.findIndex((function(e){return e.path===t.fullPath})))return e.setActivatedFirst(t.fullPath),1;// break
};for(s.s();!(n=s.n()).done&&!l(););}catch(t){s.e(t)}finally{s.f()}}}}),created:function(){this.correctPageMinHeight(this.minHeight-24),this.setActivated(this.$route)},beforeDestroy:function(){this.correctPageMinHeight(24-this.minHeight)}}),f=m,p=(a("6ed2"),Object(d.a)(f,(function(){var t=this,e=t._self._c;return e("a-layout",{class:["admin-layout","beauty-scroll"]},[e("a-layout",{staticClass:"admin-layout-main beauty-scroll"},[e("project-header",{class:[{"fixed-tabs":t.fixedTabs,"fixed-header":t.fixedHeader,"multi-page":t.multiPage}],style:t.headerStyle,attrs:{menuData:t.headMenuData}}),e("a-layout-content",{staticClass:"admin-layout-content",staticStyle:{"min-height":"100vh",margin:"10px 0px 20px 15px"}},[e("div",{staticStyle:{position:"relative"}},[t._t("default")],2)]),e("a-layout-footer",{staticStyle:{padding:"0px"}},[e("page-footer",{attrs:{"link-list":t.footerLinks,copyright:t.copyright,version:t.systemVersion}})],1)],1)],1)}),[],!1,null,"17a11d2e",null)
/* harmony default export */);e.a=p.exports},
/***/"1c0f":
/***/function(t,e,a){
// extracted by mini-css-extract-plugin
/***/},
/***/"30ea":
/***/function(t,e,a){"use strict";
/* harmony import */a("c5d6");
/* harmony import */},
/***/"485f":
/***/function(t,e,a){"use strict";
/* harmony import */a("f300");
/* harmony import */},
/***/"6ed2":
/***/function(t,e,a){"use strict";
/* harmony import */a("1c0f");
/* harmony import */},
/***/c5d6:
/***/function(t,e,a){
// extracted by mini-css-extract-plugin
/***/},
/***/f300:
/***/function(t,e,a){
// extracted by mini-css-extract-plugin
/***/}}]);