(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a38efd30"],{"21bb":function(t,e,a){"use strict";a("2dad")},"2dad":function(t,e,a){},"975a":function(t,e,a){t.exports=a.p+"img/bg2.df27d89a.jpg"},bb51:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"homeBox"}},[i("img",{staticClass:"image",attrs:{title:" ",src:a("975a")}}),i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"newVersionTipDialog",attrs:{visible:t.dialogVisible,title:"版本提示",width:"330px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("h5",[t._v("发现新版本")]),t._l(t.appInfoList,(function(e,a){return i("el-row",{key:e.appName,staticClass:"appInfo-item",attrs:{gutter:20}},[i("el-col",{staticClass:"appName",attrs:{span:12}},[t._v(" "+t._s(e.appName)+" ")]),i("el-col",{staticClass:"maxVersion",attrs:{span:12}},[t._v(" 版本号"+t._s(e.maxVersion)+" ")])],1)})),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:t.toUpgrade}},[t._v("去升级")])],1)],2)],1)},o=[],s=a("2909"),n=(a("d3b7"),a("9633")),r=a("72ac"),c={name:"home",data:function(){return{dialogVisible:!1,appInfoList:[]}},created:function(){},components:{},mounted:function(){n["a"].notificationMessage();var t=sessionStorage.getItem("need_check_app_version");if(t&&"true"===t&&!this.$store.state.ytoBase.schemePermission.restricted)try{this.checkAppVersion()}finally{sessionStorage.removeItem("need_check_app_version")}},watch:{},methods:{toUpgrade:function(){this.$router.push({path:"/Software/SoftwareManagement"})},checkAppVersion:function(){var t=this;this.$http.post("".concat(r["b"],"/Yto_MonitorServer/software/checkAppNewVersion")).then((function(e){var a=e.body;a&&"000"===a.respcode?a.data&&a.data.newVersionAppears&&(t.appInfoList=Object(s["a"])(a.data.appInfoList),t.dialogVisible=!0):t.dialogVisible=!1})).catch((function(e){console.error(e),t.dialogVisible=!1})).finally((function(){}))}}},l=c,p=(a("21bb"),a("2877")),d=Object(p["a"])(l,i,o,!1,null,null,null);e["default"]=d.exports}}]);