(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-496f"],{"/6nZ":function(t,e,a){var i=a("c9BZ");
"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);
(0,a("SZ7m").default)("e9e4f364",i,!0,{})},"3jk9":function(t,e,a){t.exports=a.p+"static/img/help_diagram.d29fb0c.png"},"89SD":function(t,e,a){"use strict";
var i=a("hjBM");
a.n(i).a},"8iyZ":function(t,e,a){"use strict";
a("RW0V"),a("ioFf"),a("0l/t"),a("mYba"),a("jm62");
var i=a("lSNA"),n=a.n(i),l=a("EkQH"),r=a("L2JU");
function s(t,e){var a=Object.keys(t);
if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);
e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)}return a}function o(t){for(var e=1;
e<arguments.length;
e++){var a=null!=arguments[e]?arguments[e]:{};
e%2?s(Object(a),!0).forEach(function(e){n()(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}var u={props:{visible:{type:Boolean,default:!1},psId:{type:String,default:""},sn:{type:String,default:""}},data:function(){return{}},computed:o(o({},Object(r.c)(["lang","cloudId"])),{},{helpPopVisible:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}}}),methods:{clickMoreHelp:function(){Object(l.d)(this.psId,this.sn)}}},d=(a("g3c/"),a("KHd+")),c=Object(d.a)(u,function(){var t=this,e=t.$createElement,i=t._self._c||e;
return i("el-dialog",{attrs:{visible:t.helpPopVisible,"custom-class":"lg-dialog ps-status-help-pop","append-to-body":""},on:{"update:visible":function(e){t.helpPopVisible=e}}},[i("div",{staticClass:"dialog-header",attrs:{slot:"title"},slot:"title"},[t._v("\n    "+t._s(t.$t("I18N_COMMON_HELP"))+"\n  ")]),t._v(" "),i("h4",{staticClass:"first-title"},[t._v(t._s(t.$t("I18N_COMMON_CREATE_PLANT_DEVICE_NODEBUGGER")))]),t._v(" "),i("p",[t._v(t._s(t.$t("I18N_COMMON_CREATE_PLANT_TOAPP_DEBUGGER")))]),t._v(" "),i("p",[t._v(t._s(t.$t("I18N_COMMON_LOGGOR_SIGHIN_TIPS").replace("{0}","Logger1000/EyeM4").replace("{1}",t.$t("I18N_COMMON_USER_GUIDE"))))]),t._v(" "),i("h4",[t._v(t._s(t.$t("I18N_COMMON_CREATE_PLANT_DEVICE_DEBUGGER")))]),t._v(" "),i("p",{domProps:{innerHTML:t._s(t.$t("I18N_COMMON_POWER_STATION_APPROACHING_NEW").replace(/\\n/g,"<br>").replace("{0}","15").replace("{1}","").replace("{2}",t.Constant.siteName[t.cloudId]))}}),t._v(" "),i("div",{staticClass:"detail-wrap"},[i("p",{domProps:{innerHTML:t._s(t.$t("I18N_COMMON_CREATE_PLANT_APP_LOCAL_ACCESS").replace("{0}",t.$t("I18N_COMMON_DIRECT_LOGIN")).replace("{1}","<img class='example-icon' src="+a("Eqqk")+" alt=''>"))}}),t._v(" "),i("img",{attrs:{src:a("3jk9"),alt:""}})]),t._v(" "),i("p",{staticClass:"more-help",on:{click:t.clickMoreHelp}},[t._v(t._s(t.$t("I18N_COMMON_CREATE_PLANT_MORE_HELP"))+" "),i("span",{staticClass:"iconfont icon-arrowRight disable"})]),t._v(" "),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{staticClass:"cancel-btn",on:{click:function(e){t.helpPopVisible=!1}}},[t._v(t._s(t.$t("I18N_COMMON_GOT_IT")))])],1)])},[],!1,null,null,null);
c.options.__file="ps-status-help.vue";
e.a=c.exports},EkQH:function(t,e,a){"use strict";
a.d(e,"c",function(){return c}),a.d(e,"d",function(){return p}),a.d(e,"b",function(){return f}),a.d(e,"a",function(){return b}),a.d(e,"e",function(){return v});
var i=a("X8p2"),n=a.n(i),l=(a("Btvt"),a("VRzm"),a("0l/t"),a("CX2u"),a("t3Un")),r=a("vDqi"),s=a.n(r),o=a("XJYT"),u=a("mSNy"),d=a("r6kQ"),c=function(t,e){return new Promise(function(a,i){Object(l.b)(d.a.findCodeValueList,t,e).then(function(t){a(t)}).catch(function(t){i(t)})})},p=function(t,e){Object(l.b)(d.a.getPsCommunicateDeviceTypeInfo,{ps_id:t}).then(function(t){var a="";
if(t.communicate_device_type_list.length){var i=t.communicate_device_type_list.filter(function(t){return e?t.sn===e:!n.a.isUndefinedOrNull(t.faq_url)});
a=i.length&&i[0].faq_url?i[0].faq_url:t.default_faq_url}else a=t.default_faq_url;
window.open(a,"_blank")})},f=function(t,e){return new Promise(function(a,i){Object(l.b)(d.a.getCloudList,t,{changeRouter:e}).then(function(t){var e=[];
t.cloud_list.forEach(function(t){e.push({value:t.cloud_id,text:t.cloud_name,service_url:t.service_url,web_url:t.web_url})}),a(e)}).catch(function(t){i(t)})})},b=function(t){var e=t.path,a=t.params,i=t.config,n=void 0===i?{}:i,r=t.exportType,d=void 0===r?"1":r,c=t.exportSuccess,p=t.exportFail,f=t.complete;
Object(l.b)(e,a,n).then(function(t){t&&"1"===t.code&&t.url?(o.Message.success(u.default.t("I18N_COMMON_SUCCESS")),c&&c(),"1"===d?window.open(t.url,"_self"):s()({method:"get",url:t.url,responseType:"blob"}).then(function(e){var a=window.URL.createObjectURL(e.data),i=document.createElement("a");
i.style.display="none",i.href=a,i.download=t.url.substring(t.url.lastIndexOf("/")+1),document.body.appendChild(i),i.click()}).catch(function(t){p&&p(),console.log("response: ",t)})):(o.Message.error(u.default.t("I18N_COMMON_FAILED")),p&&p())}).catch(function(t){console.log(t),p&&p()}).finally(function(){f&&f()})},v=function(t){return Object(l.b)(d.a.checkUserIsExist,t)}},Eqqk:function(t,e,a){t.exports=a.p+"static/img/icon.0012d17.svg"},IUFI:function(t,e){t.exports="data:image/jpeg;
base64, "},L6Gv:function(t,e,a){var i=a("NQ3K");
"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);
(0,a("SZ7m").default)("0bd99c3f",i,!0,{})},NQ3K:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".ps-status-help-pop{width:600px !important;
height:90vh !important;
top:calc(50% - 45vh)}.ps-status-help-pop h4{color:#222;
margin-top:10px;
margin-bottom:13px}.ps-status-help-pop h4.first-title{margin-top:0}.ps-status-help-pop p{line-height:23px}.ps-status-help-pop .detail-wrap{padding:15px;
background-color:#f2f2f2;
margin-top:25px}.ps-status-help-pop img{height:250px}.ps-status-help-pop .example-icon{height:20px}.ps-status-help-pop .more-help,.ps-status-help-pop .more-help .iconfont{font-size:14px;
color:#2196F3}.ps-status-help-pop .more-help{cursor:pointer;
margin-top:20px}.ps-status-help-pop .more-help .iconfont{vertical-align:middle}\n",""])},Nw8A:function(t,e,a){"use strict";
a.r(e);
a("dRSK"),a("f3/d"),a("BP8U"),a("xfY5"),a("I78e"),a("Btvt"),a("ioFf"),a("HEwt"),a("XfO3"),a("yt8O"),a("rGqo");
var i=a("t3Un"),n=a("iZVF"),l=a("Q2AE"),r=a("3oKu"),s=a("8iyZ");
function o(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
if(!a){if(Array.isArray(t)||(a=function(t,e){if(!t)return;
if("string"==typeof t)return u(t,e);
var a=Object.prototype.toString.call(t).slice(8,-1);
"Object"===a&&t.constructor&&(a=t.constructor.name);
if("Map"===a||"Set"===a)return Array.from(t);
if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){a&&(t=a);
var i=0,n=function(){};
return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,r=!0,s=!1;
return{s:function(){a=a.call(t)},n:function(){var t=a.next();
return r=t.done,t},e:function(t){s=!0,l=t},f:function(){try{r||null==a.return||a.return()}finally{if(s)throw l}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);
for(var a=0,i=new Array(e);
a<e;
a++)i[a]=t[a];
return i}var d={name:"PlantDetail",components:{plantAvatar:n.a,psStatusHelpPop:s.a},filters:{spliteDate:function(t){if(t&&"string"==typeof t)return t.substring(0,10)}},data:function(){return{showSnHelp:"",helpPopVisible:!1,actNavIdx:"0",subNavList:[],menuCode:{ivAnalyse:"1",secondLevel:"2"},psId:void 0,psObj:{ps_name:"",valid_flag:"",operate_year:"--",ps_country_id:""},routerQuery:{ps_name:"",selectPsType:"",sn_like:"",status:"",curPage:"",code:""},supportData:null,isShowSenior:!1}},computed:{psInfo:function(){return l.a.getters.plantDetail}},watch:{$route:function(t){this.toggleNavActive(t.path),this.$refs.detail.scrollTop=0}},created:function(){this.routerQuery={ps_name:this.$route.query.ps_name,sn_like:this.$route.query.sn_like,status:this.$route.query.status,selectPsType:this.$route.query.selectPsType,curPage:this.$route.query.curPage,code:this.$route.query.code}},mounted:function(){var t=this;
0===this.subNavList.length&&(this.subNavList=this.Sungrow.getNavList("plantDetail"),this.checkPsSupportSome()),this.toggleNavActive(this.$route.path),this.psId=this.$route.query.psId,this.$store.dispatch("CloseSideBar"),this.psObj=l.a.getters.plantDetail,0===this.$route.query.isMsg&&(this.$refs.detail.scrollTop=this.$refs.detail.scrollHeight),this.$eventManager.subscribe("OPEN_HELP_POP",{name:"openPsStatusHelpPop",method:function(e){t.helpPopVisible=!0,t.showSnHelp=e.sn}})},beforeDestroy:function(){this.$eventManager.remove("OPEN_HELP_POP")},methods:{checkPsSupportSome:function(){var t=this,e={};
e.ps_id=this.$route.query.psId,e.func_code="1,2",Object(i.b)("/v1/devService/checkPsSupportSomeFunction",e).then(function(e){t.supportData=e;
var a,i=t.subNavList.find(function(t){return"seniorPlantDetail"===t.name}),n=o(i.children);
try{for(n.s();
!(a=n.n()).done;
){var l=a.value;
if(t.menuCode[l.name]){var r=e[t.menuCode[l.name]];
l.isShow=r}else l.isShow=!0}}catch(t){n.e(t)}finally{n.f()}t.$nextTick(function(){t.isShowSenior=!t.Sungrow.isUndefinedOrNull(i.children.find(function(t){return t.isShow}))})})},toggleNavActive:function(t){var e,a=o(this.subNavList);
try{for(a.s();
!(e=a.n()).done;
){var i=e.value;
if(i.path===t){this.actNavIdx=i.index;
break}if(i.children){var n,l=o(i.children);
try{for(l.s();
!(n=l.n()).done;
){var r=n.value;
if(r.path===t){this.actNavIdx=r.index;
break}}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){a.e(t)}finally{a.f()}},goDashboard:function(){if(this.$store.dispatch("OpenSideBar"),"batchImport"===this.$route.query.from)this.$router.push({path:"/createPlant",query:{pageType:"batchImport"}});
else if(this.$route.query.isMsg&&"1"===this.$route.query.isMsg)this.$router.push({path:"/messageCenter/detail?code="+this.routerQuery.code});
else if(this.$route.query.ps_fault&&"1"===this.$route.query.ps_fault)this.$router.push({path:"/faultList",query:{ps_fault:1}});
else{var t=this.Sungrow.isUndefinedOrNull(this.routerQuery.status)?"":Number.parseInt(this.routerQuery.status);
this.$router.push({path:"/dashboard",query:{status:t,ps_name:this.routerQuery.ps_name,sn_like:this.routerQuery.sn_like,curPage:this.routerQuery.curPage,selectPsType:this.routerQuery.selectPsType}})}},toRoute:function(t){var e=r.a.planDetail[t.name];
e&&("seniorPlantDetail"===t.parentName?window.zhuge.track("PlantPage-Advance",{Selector:e}):window.zhuge.track("PlantPage-TabBar",{Selector:e})),this.$router.push({path:t.path,query:{psId:this.psId,ps_country_id:this.psObj.ps_country_id,ps_type:this.psObj.ps_type,selectPsType:this.routerQuery.selectPsType,ps_status:this.psObj.ps_status,sn_like:this.routerQuery.sn_like,ps_name:this.psObj.ps_name}})}}},c=(a("89SD"),a("lKW8"),a("KHd+")),p=Object(c.a)(d,function(){var t=this,e=t.$createElement,a=t._self._c||e;
return a("div",{staticClass:"plant-detail"},[a("div",{staticClass:"detail-sidebar"},[a("div",{staticClass:"top-area"},[a("div",{staticClass:"back-nav font-color",on:{click:t.goDashboard}},[a("i",{staticClass:"iconfont icon-sm-arrowLeft"}),t._v(" "),a("span",{staticClass:"tip"},[t._v(t._s(t.$t("I18N_COMMON_RETURN"))+" ")])]),t._v(" "),a("plant-avatar",{attrs:{slot:"reference","ps-obj":t.psObj,width:14.5},slot:"reference"})],1),t._v(" "),a("el-scrollbar",[a("el-menu",{staticClass:"detail-menu",attrs:{"default-active":t.actNavIdx}},t._l(t.subNavList,function(e,i){return a("div",{key:i},[t.subNavList.length>0&&!e.children?a("el-menu-item",{attrs:{index:e.index},on:{click:function(a){return t.toRoute(e)}}},[a("i",{staticClass:"iconfont",class:e.icon}),t._v(" "),a("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t(e.title)))])]):t._e(),t._v(" "),"1"!==t.psInfo.share_type&&"config"===e.name?a("el-submenu",{staticClass:"detail-submenu",attrs:{index:e.index},on:{click:function(a){return t.toRoute(e)}}},[a("template",{slot:"title"},[a("i",{staticClass:"iconfont",class:e.icon}),t._v(" "),a("span",[t._v(t._s(t.$t(e.title)))])]),t._v(" "),t._l(e.children,function(e,i){return a("el-menu-item",{key:i,attrs:{index:e.index},on:{click:function(a){return t.toRoute(e)}}},[t._v("\n              "+t._s(t.$t(e.title))+"\n            ")])})],2):t._e(),t._v(" "),"seniorPlantDetail"===e.name&&t.isShowSenior?a("div",{staticClass:"detail-submenu senior-submenu",attrs:{index:e.index}},[a("span",{staticClass:"submenu-title"},[t._v(t._s(t.$t(e.title)))]),t._v(" "),t._l(e.children,function(e,i){return[e.isShow?a("el-menu-item",{key:i,attrs:{index:e.index},on:{click:function(a){return t.toRoute(e)}}},[a("i",{staticClass:"iconfont",class:e.icon}),t._v(" "),a("span",[t._v(t._s(t.$t(e.title)))])]):t._e()]})],2):t._e()],1)}),0)],1)],1),t._v(" "),a("div",{ref:"detail",staticClass:"main-detail"},[a("router-view")],1),t._v(" "),a("psStatusHelpPop",{attrs:{visible:t.helpPopVisible,"ps-id":t.psId,sn:t.showSnHelp},on:{"update:visible":function(e){t.helpPopVisible=e}}})],1)},[],!1,null,"f39e0f66",null);
p.options.__file="index.vue";
e.default=p.exports},c9BZ:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,'.detail-submenu .el-submenu__title{display:flex;
align-items:center;
line-height:normal;
white-space:normal;
padding-left:24px !important}.detail-submenu .el-submenu__title:hover{background-color:#faf4f0}[data-theme="style_blue"] .detail-submenu .el-submenu__title:hover{background-color:#ecf5ff}[data-theme="style"] .detail-submenu .el-submenu__title:hover{background-color:#faf4f0}.detail-submenu .el-submenu__title span{display:block;
width:calc(100% - 35px);
word-break:break-word;
float:left}.senior-submenu{padding-top:20px}.detail-sidebar .el-scrollbar__bar.is-vertical{width:0}.plant-detail .detail-sidebar .el-scrollbar .el-scrollbar__wrap{margin:0 !important}\n',""])},"g3c/":function(t,e,a){"use strict";
var i=a("L6Gv");
a.n(i).a},hjBM:function(t,e,a){var i=a("wlnt");
"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);
(0,a("SZ7m").default)("6b997422",i,!0,{})},lKW8:function(t,e,a){"use strict";
var i=a("/6nZ");
a.n(i).a},wlnt:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,'.submenu-title[data-v-f39e0f66]{padding-left:26px;
color:#888;
font-size:14px}.plant-detail[data-v-f39e0f66]{height:100%;
display:flex}.plant-detail .detail-sidebar[data-v-f39e0f66]{display:flex;
flex-direction:column;
width:238px;
height:100vh;
background:#fff;
margin-left:4px;
border-right:1px solid #fff;
box-shadow:1px 0 15px 0 rgba(0,0,0,0.15);
z-index:2;
position:relative}.plant-detail .detail-sidebar .top-area[data-v-f39e0f66]{padding:24px 15px}.plant-detail .detail-sidebar .top-area .plant-avatar[data-v-f39e0f66]{margin-top:50px}.plant-detail .detail-sidebar .detail-menu[data-v-f39e0f66]{border-right:0}.plant-detail .detail-sidebar .detail-menu .el-menu-item[data-v-f39e0f66]{display:flex;
align-items:center;
white-space:normal;
line-height:normal;
font-weight:normal;
border-left:4px solid transparent;
word-break:break-word}.plant-detail .detail-sidebar .detail-menu .el-menu-item[data-v-f39e0f66]:hover{background-color:#faf4f0}[data-theme="style_blue"] .plant-detail .detail-sidebar .detail-menu .el-menu-item[data-v-f39e0f66]:hover{background-color:#ecf5ff}[data-theme="style"] .plant-detail .detail-sidebar .detail-menu .el-menu-item[data-v-f39e0f66]:hover{background-color:#faf4f0}.plant-detail .detail-sidebar .detail-menu .el-menu-item .el-submenu__title[data-v-f39e0f66]{display:flex;
align-items:center;
white-space:normal}.plant-detail .detail-sidebar .detail-menu .el-menu-item .el-submenu__title span[data-v-f39e0f66]{display:block;
width:calc(100% - 35px);
word-break:break-word}.plant-detail .detail-sidebar .detail-menu .el-menu-item .iconfont[data-v-f39e0f66]{color:#999;
padding:0 14px 0 0;
font-weight:normal}.plant-detail .detail-sidebar .detail-menu .el-menu-item>span[data-v-f39e0f66]{word-break:break-word}.plant-detail .detail-sidebar .detail-menu .el-menu-item.is-active[data-v-f39e0f66]{font-weight:700;
background-color:#f0f0f0;
border-style:solid;
border-width:0 0 0 4px;
border-left-color:#ff7300;
color:#222}[data-theme="style_blue"] .plant-detail .detail-sidebar .detail-menu .el-menu-item.is-active[data-v-f39e0f66]{background-color:#e2f1fc}[data-theme="style"] .plant-detail .detail-sidebar .detail-menu .el-menu-item.is-active[data-v-f39e0f66]{background-color:#f0f0f0}[data-theme="style_blue"] .plant-detail .detail-sidebar .detail-menu .el-menu-item.is-active[data-v-f39e0f66]{border-left-color:#2196f3}[data-theme="style"] .plant-detail .detail-sidebar .detail-menu .el-menu-item.is-active[data-v-f39e0f66]{border-left-color:#ff7300}[data-theme="style_blue"] .plant-detail .detail-sidebar .detail-menu .el-menu-item.is-active[data-v-f39e0f66]{color:#2196f3}[data-theme="style"] .plant-detail .detail-sidebar .detail-menu .el-menu-item.is-active[data-v-f39e0f66]{color:#222}.plant-detail .detail-sidebar .detail-menu .el-menu-item.is-active .iconfont[data-v-f39e0f66]{color:#222}[data-theme="style_blue"] .plant-detail .detail-sidebar .detail-menu .el-menu-item.is-active .iconfont[data-v-f39e0f66]{color:#2196f3}[data-theme="style"] .plant-detail .detail-sidebar .detail-menu .el-menu-item.is-active .iconfont[data-v-f39e0f66]{color:#222}.plant-detail .detail-sidebar .detail-menu .el-menu-item.is-active span[data-v-f39e0f66]{font-weight:700}.plant-detail .detail-sidebar .detail-menu .el-submenu .el-menu-item[data-v-f39e0f66]{color:#666;
padding:0 10px 0 58px !important;
font-size:14px}.plant-detail .detail-sidebar .detail-menu .el-submenu .iconfont[data-v-f39e0f66]{color:#999;
padding:0 14px 0 0;
font-weight:normal;
float:left}.plant-detail .main-detail[data-v-f39e0f66]{position:relative;
flex:1;
height:auto;
overflow:auto;
padding:20px;
box-sizing:border-box}.avatar-list[data-v-f39e0f66]{display:flex;
flex-direction:column}.avatar-list .item[data-v-f39e0f66]{display:flex;
flex-direction:column}.avatar-list .item[data-v-f39e0f66]:first-child{padding-bottom:8px}.avatar-list .item[data-v-f39e0f66]:last-child{padding-top:8px}.avatar-list .item .weight[data-v-f39e0f66]{font-weight:bold}\n',""])}}]);
