PageSourceSearch

https://globalpro.solarmanpv.com/static/js/3986.b3ea0015.js

js solarmanpv.com collected 2026-10-01 14:57:18 UTC 145,046 bytes, 2 lines download raw bytes

1/*! vue-admin-solarman2026-9-29 03:30:27 */
2(self["webpackChunkmain"]=self["webpackChunkmain"]||[]).push([[1392,3986],{55500(t,e,a){"use strict";a.d(e,{A:()=>u});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("IgWindowForAlert",{ref:"Window",attrs:{id:"addChildSys",title:t.title,size:"m"}},[a("div",{staticClass:"mb05x_E"},[a("div",{staticClass:"fs12x",attrs:{title:t.getLanguageStr("word1719","子系统名称")}},[a("span",{staticClass:"cError"},[t._v("* ")]),t._v(t._s(t.getLanguageStr("word1719","子系统名称"))+" ")]),a("IgInput",{ref:"childName",staticClass:"mb2x",attrs:{placeholder:t.$t("plant_detail106",["输入子系统名称"]),verification:"notEmpty","clear-btn":!0,name:"childText"},model:{value:t.childText,callback:function(e){t.childText=e},expression:"childText"}}),a("div",{staticClass:"fs12x",attrs:{title:t.getLanguageStr("word1720","子系统类型")}},[t._v(t._s(t.getLanguageStr("word1720","子系统类型")))]),a("div",{staticClass:"curP_E mb2x"},[a("label",{staticClass:"mr1x"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.ChildType,expression:"ChildType"}],attrs:{type:"radio",name:"choose",value:"GENERATION"},domProps:{checked:t._q(t.ChildType,"GENERATION")},on:{change:function(e){t.ChildType="GENERATION"}}}),t._v(" "+t._s(t.getLanguageStr("word559","发电")))]),a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.ChildType,expression:"ChildType"}],attrs:{type:"radio",name:"choose",value:"CONSUMPTION"},domProps:{checked:t._q(t.ChildType,"CONSUMPTION")},on:{change:function(e){t.ChildType="CONSUMPTION"}}}),t._v(" "+t._s(t.getLanguageStr("word561","用电")))])]),"GENERATION"===t.ChildType?a("div",{staticClass:"fs12x",attrs:{title:t.getLanguageStr("word727","装机容量")+"(kWp)"}},[a("span",{staticClass:"cError"},[t._v("* ")]),t._v(t._s(t.getLanguageStr("word727","装机容量"))+"(kWp) ")]):t._e(),"GENERATION"===t.ChildType?a("IgInput",{ref:"installedCapacity",staticClass:"mb2x",attrs:{only:"absNumber",verification:"notEmpty,~:0.001~100000000",matchType:"floor3x",placeholder:"0.001~100000000"},model:{value:t.installedCapacity,callback:function(e){t.installedCapacity=e},expression:"installedCapacity"}}):t._e()],1),a("button",{staticClass:"functionBtn hover-cF bgMain tra-fast",class:{disable:"GENERATION"===t.ChildType&&(!t.installedCapacity||t.installedCapacity<.001||t.installedCapacity>1e8)||!t.childText},attrs:{slot:"btmBtn",type:"button"},on:{click:t.confirm},slot:"btmBtn"},[t._v(" "+t._s(t.$t("cmd84",["保存"]))+" ")])])},n=[],s=(a(62010),a(76031),a(94117)),r=a(81345);const o={name:"AddChildSys",components:{},data:function(){return{myMode:"new",title:"",stationId:"",childId:null,childText:"",ChildType:"",installedCapacity:""}},methods:{getLanguageStr:r.cx,getDetail:function(t){var e=this;s.iE(t).then(function(t){e.installedCapacity=t.installedCapacity},function(t){return t})},show:function(t){var e=this;this.$refs.childName.reset(),"new"==this.myMode?(this.stationId=t.id,this.childText=this.installedCapacity="",this.ChildType="GENERATION",this.title=(0,r.cx)("plant_detail114","添加子系统")):(this.stationId=t.node.parentId,this.getDetail(t.node.id),this.childId=t.node.id,this.childText=t.node.name,this.ChildType=t.node.functionType,this.title=(0,r.cx)("plant161","编辑子系统")),this.$nextTick(function(){e.$refs.Window.show({title:e.title})})},modeChange:function(t){this.myMode=t},hide:function(){this.$refs.Window.hide()},confirm:function(){var t=this;if(!this.childText)return!1;if("GENERATION"===this.ChildType&&(!this.$refs.installedCapacity.doVerification()||!this.$refs.childName.doVerification()))return!1;var e={name:this.childText,functionType:this.ChildType,installedCapacity:this.installedCapacity};"new"==this.myMode?(0,s.Rp)(this.stationId,e).then(function(e){t.hide(),setTimeout(function(){t.$emit("update",e)},1e3)},function(t){return t}):(0,s.AE)(this.childId,e).then(function(e){t.hide(),t.$emit("refreshChildSys",e)},function(t){return t})}},watch:{ChildType:function(){this.installedCapacity=""}}},l=o;var d=a(845),c=(0,d.A)(l,i,n,!1,null,"87e37462",null);const u=c.exports},83477(t,e,a){"use strict";a.d(e,{A:()=>f});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("IgPanel",{directives:[{name:"show",rawName:"v-show",value:Object.keys(t.afterResult).length,expression:"Object.keys(afterResult).length"}],staticClass:"h19x-min",attrs:{loading:t.isLoading,title:t.$t("plant530_1",["系统概要"])}},[a("div",{staticClass:"spaceSys-in clearfix posR"},[t._l(t.afterResult,function(e,i){return[t.summaryTypeMap[i]?a("div",{key:i,staticClass:"boxshow col-4 mb205x"},[a("div",{staticClass:"w80pct-max fL ml1x"},[a("IgIcon",{staticClass:"fSub cSub w3x h3x",attrs:{name:t.summaryTypeMap[i].icon,type:t.summaryTypeMap[i].iconType||"svg"}})],1),a("div",{staticClass:"dpIB ml1x"},[a("div",{key:t.summaryTypeMap[i].id,staticClass:"textCut pb1x taL",attrs:{title:""+t.summaryTypeMap[i].title+e.total}},[t._v(" "+t._s(t.summaryTypeMap[i].title)),a("span",{staticClass:"pl1x fsLv3"},[t._v(t._s(e.total))])]),a("div",{staticClass:"taL textCut_E w70pct-max_E fL_E clearfix pr205x_E"},[a("div",{attrs:{title:""+e.offline+t.getLanguageStr("word1752","台离线")}},[a("span",{staticClass:"fsLv3"},[t._v(t._s(e.offline))]),a("span",{staticClass:"cSub pr205x"}
2,[t._v(t._s(t.getLanguageStr("word64","离线")))])]),a("div",{attrs:{title:""+e.alert+t.getLanguageStr("word1755","台报警")}},[a("span",{staticClass:"fsLv3"},[t._v(t._s(e.alert))]),a("span",{staticClass:"cSub pr205x"},[t._v(t._s(t.getLanguageStr("word27","报警")))])])]),a("div",{staticClass:"cMain mt1x curP",on:{click:function(e){return t.stepTo(i)}}},[t._v(t._s(t.getLanguageStr("cmd155","查看")))])])]):t._e()]}),a("div",{directives:[{name:"show",rawName:"v-show",value:t.showMore,expression:"showMore"}],staticClass:"taC pb1x posA rowC togBtn"},[a("button",{staticClass:"cSub fSub hover-c-main hover-f-main tra-fast vaM_E",attrs:{title:t.$t("cmd108",["点击展开/收起"]),status:t.filterOptionStatus},on:{click:t.filterCtrl}},[a("IgIcon",{staticClass:"w2x h2x mr05x tra",attrs:{name:"arrowDouble-d",type:"svg"}})],1)])],2)])},n=[],s=a(79893),r=a(53945),o=(a(50113),a(25276),a(72712),a(18111),a(20116),a(18237),a(79432),a(26099),a(81345)),l=a(94117),d=a(71757);const c={name:"StationSummary",components:{},data:function(){return{filterOptionStatus:"show",isLoading:!0,showMore:!1,summaryTypeMap:{},summaryType:[{type:"inverterCount",deviceType:"INVERTER",title:(0,o.cx)("plant143","逆变器总数"),tag:"InverterList",icon:"dv-inverter",id:1,statisticCode:{a:"A13",b:"A1303"}},{type:"meterCount",deviceType:"METER",title:(0,o.cx)("word1756","电表总数"),tag:"AmmeterList",icon:"dv-meter",id:2,statisticCode:{a:"A13",b:"A1304"}},{type:"pvModuleCount",deviceType:"PV_MODULE",title:(0,o.cx)("word1758","组件总数"),tag:"ComponetList",icon:"dv-comp",id:3,statisticCode:{a:"A13",b:"A1305"}},{type:"weatherStationCount",deviceType:"WEATHER_STATION",title:(0,o.cx)("word1759","气象站总数"),tag:"WeatherList",icon:"dv-weatherStation",id:4,statisticCode:{a:"A13",b:"A1306"}},{type:"microInverterCount",deviceType:"MICRO_INVERTER",title:(0,o.cx)("plant_detail1","微逆总数"),tag:"MicroInverterList",icon:"dv-microInverter",id:5,statisticCode:{a:"A13",b:"A1307"}},{type:"combinerBoxCount",deviceType:"COMBINER_BOX",title:(0,o.cx)("plant_detail2","汇流箱总数"),tag:"CombinerBoxList",icon:"dv-combinerBox",id:6,statisticCode:{a:"A13",b:"A1308"}},{type:"repeaterCount",deviceType:"REPEATER",title:(0,o.cx)("plant_detail3","中继器总数"),tag:"RepeaterList",icon:"dv-repeater",id:7,statisticCode:{a:"A13",b:"A1309"}},{type:"batteryCount",deviceType:"BATTERY",title:(0,o.cx)("plant_detail4","电池总数"),tag:"BatteryList",icon:"dv-battery",id:8,statisticCode:{a:"A13",b:"A1310"}},{type:"fanCount",deviceType:"FAN",title:(0,o.cx)("plant393","风机总数"),tag:"FANList",icon:"dv-fan",id:11,statisticCode:{a:"A13",b:"A1313"}},{type:"epmCount",deviceType:"EPM",title:(0,o.cx)("plant470","EPM总数"),tag:"EPMList",icon:"dv-EPM",id:12,statisticCode:{a:"",b:""}},{type:"hybridPowerCount",deviceType:"HYBRID_POWER_SYSTEM_CABINET",title:(0,o.cx)("plant472","混合能源系统柜总数"),tag:"HybridPowerList",icon:"dv-hybridEnergyCabinet",id:13,statisticCode:{a:"",b:""}},{type:"smartMeterCount",deviceType:"SMART_METER",title:this.$t("all22",[(0,o.cx)("plant471","智能表总数")]),tag:"SmartMeterList",icon:"dv-smartMeter",id:14,statisticCode:{a:"",b:""}},{type:"offGridInverterCount",deviceType:"TYPE_OFF_GRID_INVERTER",title:this.$t("all22",[(0,o.cx)("device391","离网逆变器")]),tag:"TypeOffGridInverterList",icon:"dv-inverter",id:15,statisticCode:{a:"",b:""}},{type:"boxTransformerCount",deviceType:"BOX_TRANSFORMER",title:this.$t("all22",[(0,o.cx)("device_management152","箱变")]),tag:"BoxTransformerList",icon:"dv-boxTransformer",id:16,statisticCode:{a:"",b:""}},{type:"switchgearCount",deviceType:"SWITCHGEAR",title:this.$t("all22",[(0,o.cx)("device_management153","开关柜")]),tag:"SwitchCabinetList",icon:"dv-switchgear",id:17,statisticCode:{a:"",b:""}},{type:"collectorCount",deviceType:"COLLECTOR",title:(0,o.cx)("plant_detail226","采集器总数"),tag:"CollectorList",icon:"dv-logger",id:9,statisticCode:{a:"A13",b:"A1311"}},{type:"dtuCount",deviceType:"DTU",title:(0,o.cx)("plant_detail5","DTU总数"),tag:"DTUList",icon:"dv-DTU",id:10,statisticCode:{a:"A13",b:"A1312"}},{type:"optimizerCount",deviceType:"OPTIMIZER",title:this.$t("all22",[(0,o.cx)("device451","优化器总数")]),tag:"OptimizerList",icon:"Optimizer",iconType:"font",id:18,statisticCode:{a:"",b:""}},{type:"dcConverterCount",deviceType:"DC_CONVERTER",title:this.$t("all22",[(0,o.cx)("device602","直流转换器")]),tag:"DcConverter",icon:"dv-DC",iconType:"font",id:37,statisticCode:{a:"",b:""}},{type:"surgeProtectionCount",deviceType:"SURGE_PROTECTION",title:this.$t("all22",[(0,o.cx)("device620","防雷器")]),tag:"SurgeProtection",icon:"dv-lightning",iconType:"font",id:38,statisticCode:{a:"",b:""}},{type:"mecdCount",deviceType:"MECD",title:this.$t("all22",["MECD"]),tag:"MECD",icon:"dv-MECD",iconType:"font",id:30,statisticCode:{a:"",b:""}},{type:"flowMeterThermometerCount",deviceType:"FLOW_METER_THERMOMETER",title:this.$t("all22",[(0,o.cx)("device744","流量计热仪")]),tag:"FlowMeterThermometer",icon:"Hot-topics",iconType:"font",id:29,statisticCode:{a:"",b:""}},{type:"relayBoxCount",deviceType:"RELAY_BOX",title:this.$t("all22",[(0,o.cx)("device745","RELAY BOX")]),tag:"RelayBoxList",icon:"Reilay-box",iconType:"font",id:36,statisticCode:{a:"",b:""}},{type:"feedInLimitCount",deviceType:"FEED_IN_LIMIT",title:this.$t("all22",[(0,o.cx)("all121","防逆流箱")]),tag:"FeedInLimitList",icon:"dv-other",id:47,statisticCode:{a:"",b:""}},{type:"microStorageInOneCount",deviceType:"MICRO_STORAGE_IN_ONE",title:this.$t("all22",[(0,o.cx)("device944","微逆储能一体机")]),tag:"MicroStorageInOneList",icon:"microStorageInOne",iconType:"font",id:48,statisticCode:{a:"",b:""}},{type:"optimizerConcentratorCount",deviceType:"OPTIMIZER_CONCENTRATOR",title:this.$t("all22",[(0,o.cx)("device945","优化器集中器")]),tag:"OptimizerConcentratorList",icon:"optimizerConcentrator",iconType:"font",id:49,statisticCode:{a:"",b:""}},{type:"socketCount",deviceType:"SOCKET",title:this.$t("all22",[(0,o.cx)("device954","插座")]),tag:"BasicTypeList",icon:"Socket",iconType:"font",id:52,statisticCode:{a:"",b:""}},{type:"pcsCount",deviceType:"PCS",title:this.$t("all22",["PCS"]),tag:"InverterList",icon:"PCS",iconType:"font",id:46,statisticCode:{a:"",b:""}},{type:"chargingStationCount",deviceType:"CHARGING_STATION",title:this.$t("all22",[(0,o.cx)("device943"),"充电桩总数"]),tag:"BasicTypeList",icon:"Charging-station",iconType:"font",id:35,statisticCode:{a:"",b:""}},{type:"smartTxCount",deviceType:"SMART_TX",title:this.$t("all22",[(0,o.cx)("device958"),"智能发送总数"]),tag:"BasicTypeList",icon:"Intelligent-sending",iconType:"font",id:55,statisticCode:{a:"",b:""}},{type:"meterReaderCount",deviceType:"METER_READER",title:this.$t("all22",[(0,o.cx)("all580"),"读表器"]),tag:"BasicTypeList",icon:"meter-reader",iconType:"font",id:56,statisticCode:{a:"",b:""}},{type:"chargePortCount",deviceType:"CHARGE_PORT",title:this.$t("all22",[(0,o.cx)("SOLARMA
2N-PRO-web_15912"),"充电接口"]),tag:"BasicTypeList",icon:"dv-chargePort",iconType:"svg",id:57,statisticCode:{a:"",b:""}},{type:"wirelessCtCount",deviceType:"WIRELESS_CT",title:this.$t("all22",[(0,o.cx)("SOLARMAN-PRO-web_15914"),"无线CT"]),tag:"BasicTypeList",icon:"dv-wirelessCT",iconType:"svg",id:58,statisticCode:{a:"",b:""}},{type:"smartSwitchCount",deviceType:"SMART_SWITCH",title:this.$t("all22",[(0,o.cx)("SOLARMAN-PRO-web_15913"),"智能开关"]),tag:"BasicTypeList",icon:"dv-smartSwitch",iconType:"svg",id:59,statisticCode:{a:"",b:""}},{type:"batteryControlUnitCount",deviceType:"BATTERY_CONTROL_UNIT",title:this.$t("all22",[(0,o.cx)("SOLARMAN-pro-web_56918"),"电池控制单元"]),tag:"BasicTypeList",icon:"dv-BATTERY_CONTROL_UNIT",iconType:"svg",id:67,statisticCode:{a:"",b:""}}],basicInfo:{},result:{}}},methods:{getLanguageStr:o.cx,filterCtrl:function(t){var e=d(this.$el).find(".boxshow:gt(4)");switch(["show","hide"].indexOf(t)<0&&(t="show"==this.filterOptionStatus?"hide":"show"),t){case"show":e.slideDown(500,"easeInOutExpo"),this.filterOptionStatus="show",d(".togBtn").removeClass("rotate0"),d(".togBtn").addClass("rotate180");break;case"hide":e.slideUp(500,"easeInOutExpo"),this.filterOptionStatus="hide",d(".togBtn").removeClass("rotate180"),d(".togBtn").addClass("rotate0");break}},show:function(t){0==t.level?this._getList(t.stationId,null):this._getList(t.stationId,t.systemId)},_getList:function(t,e){var a=this;this.result={},this.isLoading=!0,l.HP(t,{systemId:e}).then(function(t){a.result=t,delete a.result["alertCount"],a.isLoading=!1,a.$nextTick(function(){var t=Object.keys(a.afterResult).length;t>6?(a.filterCtrl("hide"),a.showMore=!0):a.showMore=!1})},function(){a.isLoading=!1})},stepTo:function(t){var e=null;if("alarm"!=t)for(var a in this.summaryType)this.summaryType[a].type==t&&(statistic(this.summaryType[a].statisticCode.a,this.summaryType[a].statisticCode.b),e=this.summaryType[a].deviceType);else statistic("A13","A1302"),e=t;this.$emit("stepTo",e)}},created:function(){var t=this;d.each(this.summaryType,function(e,a){t.summaryTypeMap[a.type]=a})},computed:{afterResult:function(t){var e=this,a=t.result;return Object.keys(a).reduce(function(t,i){return e.getIn(a,[i,"total"])?(0,r.A)((0,r.A)({},t),{},(0,s.A)({},i,a[i])):t},{})}}},u=c;a(3398);var h=a(845),g=(0,h.A)(u,i,n,!1,null,"54594f7a",null);const f=g.exports},91322(t,e,a){"use strict";a.d(e,{A:()=>p});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("IgPanel",{class:"detail"==t.fromChild?"h42x":"",attrs:{title:t.getLanguageStr("word561","用电")+t.getLanguageStr("word678","概况"),loading:t.isLoading}},[a("div",{staticClass:"pt3x"},[a("div",{class:(t.fromChild,"")},[a("div",{staticClass:"dpIB_E vaM_E"},[a("div",{staticClass:"flex100 posR3 taR vaM_E"},[a("div",{staticClass:"flow_bg bgDeviceSceneGraph-use"},[a("IgIcon",{staticClass:"ico w305x h305x",style:{fill:t.stage.color["deviceSceneGraph-use"]},attrs:{name:"house-useElectricity",type:"svg"}})],1)]),a("span",{staticClass:"mr05x mb2x",attrs:{title:t.$t("word977",["用电功率"])}},[t._v(t._s(t.$t("word977",["用电功率"])))]),a("span",{staticClass:"mb2x",attrs:{title:t.convertData(t.getFastData("usePower",t.stationInfo.usePower,t.stationInfo.systemId),2,"","W")[0]}},[a("span",{staticClass:"fs2x b"},[t._v(t._s(t.convertData(t.getFastData("usePower",t.stationInfo.usePower,t.stationInfo.systemId),2,"","W")[1]))]),t._v(" "+t._s(t.convertData(t.getFastData("usePower",t.stationInfo.usePower,t.stationInfo.systemId),2,"","W")[2])+" ")])])]),a("div",{staticClass:"pt2x pb2x"},[a("div",{staticClass:"tableSys mb1x"},[a("div",{staticClass:"bgDetail"},[a("div",{staticClass:"pl3x mr1x h11x pt205x liHeight"},[a("div",{staticClass:"cSub mt05x",attrs:{title:t.$t("word527",["当日用电量"])}},[t._v(t._s(t.$t("word527",["当日用电量"])))]),a("div",{attrs:{title:t.convertData(t.getFastData("useValue",t.stationInfo.useValue,t.stationInfo.systemId),2,"k","Wh")[0]}},[a("span",{staticClass:"fs2025x"},[t._v(t._s(t.convertData(t.getFastData("useValue",t.stationInfo.useValue,t.stationInfo.systemId),2,"k","Wh")[1]))]),t._v(" "+t._s(t.convertData(t.getFastData("useValue",t.stationInfo.useValue,t.stationInfo.systemId),2,"k","Wh")[2])+" ")])])]),a("div",{staticClass:"w1x"}),a("div",{staticClass:"bgDetail"}
2,[a("div",{staticClass:"pl3x mr1x h11x pt205x liHeight"},[a("div",{staticClass:"cSub mt05x",attrs:{title:t.$t("word528",["当月用电量"])}},[t._v(t._s(t.$t("word528",["当月用电量"])))]),a("div",{staticClass:"mb05x",attrs:{title:t.convertData(t.stationInfo.useMonth,2,"k","Wh")[0]}},[a("span",{staticClass:"fs2025x"},[t._v(t._s(t.convertData(t.stationInfo.useMonth,2,"k","Wh")[1]))]),t._v(" "+t._s(t.convertData(t.stationInfo.useMonth,2,"k","Wh")[2])+" ")])])])]),a("div",{staticClass:"tableSys"},[a("div",{staticClass:"bgDetail"},[a("div",{staticClass:"pl3x mr1x h11x pt2x liHeight"},[a("div",{staticClass:"cSub mt05x",attrs:{title:t.$t("word529",["当年用电量"])}},[t._v(t._s(t.$t("word529",["当年用电量"])))]),a("div",{staticClass:"mb05x",attrs:{title:t.convertData(t.stationInfo.useYear,2,"k","Wh")[0]}},[a("span",{staticClass:"fs2025x"},[t._v(t._s(t.convertData(t.stationInfo.useYear,2,"k","Wh")[1]))]),t._v(" "+t._s(t.convertData(t.stationInfo.useYear,2,"k","Wh")[2])+" ")])])]),a("div",{staticClass:"w1x"}),a("div",{staticClass:"bgDetail"},[a("div",{staticClass:"pl3x mr1x h11x pt2x liHeight"},[a("div",{staticClass:"cSub mt05x",attrs:{title:t.$t("plant_list37",["累计用电量"])}},[t._v(t._s(t.$t("plant_list37",["累计用电量"])))]),a("div",{staticClass:"mb05x",attrs:{title:t.convertData(t.getFastData("useUploadTotalOffset",t.stationInfo.useUploadTotal,t.stationInfo.systemId,"electricityConsumptionMethod",t.meters.electricityConsumptionMethod),2,"k","Wh")[0]}},[a("span",{staticClass:"fs2025x"},[t._v(t._s(t.convertData(t.getFastData("useUploadTotalOffset",t.stationInfo.useUploadTotal,t.stationInfo.systemId,"electricityConsumptionMethod",t.meters.electricityConsumptionMethod),2,"k","Wh")[1]))]),t._v(" "+t._s(t.convertData(t.getFastData("useUploadTotalOffset",t.stationInfo.useUploadTotal,t.stationInfo.systemId,"electricityConsumptionMethod",t.meters.electricityConsumptionMethod),2,"k","Wh")[2])+" ")])])])])])])])},n=[],s=a(94416),r=a(16928),o=a(24357),l=a(94117),d=a(9232),c=a(28931),u=a(68663);const h={name:"UsePower",components:{},props:{fromChild:{type:String,default:"detail"},data:{type:Object,default:function(){return[]}}},mixins:[u.A],data:function(){return{stage,isLoading:!1,stationInfo:{}}},methods:{convertData:d.convertData,getStationInfo:function(){var t=this;return(0,o.A)((0,s.A)().m(function e(){var a,i,n,o,d;return(0,s.A)().w(function(e){while(1)switch(e.n){case 0:return a=t,t.isLoading=!0,e.n=1,(0,c.to)(l.HE(a.getIn(a.data,["id"])));case 1:i=e.v,n=(0,r.A)(i,2),o=n[0],d=n[1],o||(t.stationInfo=d),t.isLoading=!1;case 2:return e.a(2)}},e)}))()}},mounted:function(){this.getStationInfo()}},g=h;a(56678);var f=a(845),m=(0,f.A)(g,i,n,!1,null,"9d2788c8",null);const p=m.exports},11355(t,e,a){"use strict";a.d(e,{A:()=>p});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("IgPanel",{staticClass:"h40x",attrs:{loading:t.loadshow,title:t.getLanguageStr("plant406","逆变器排名"),more:function(){t.$emit("stepTo","InverterList")}}},[a("template",{slot:"title"},[a("span",{staticClass:"ml1x fsLv1"},[t._v(t._s(t.getLanguageStr("plant197","限10个")))])]),a("div",{staticClass:"cb table h33x-min table-s"},[t.data&&0!==t.data.length?t._e():a("IgNoData"),a("div",{directives:[{name:"show",rawName:"v-show",value:t.data.length>0,expression:"data.length > 0"}]},[a("div",{staticClass:"tableSys head noSelect b cField bdLight-bottom",style:{"min-width":t.stage.setting.system.autoColumnWidth[0]*t.column.length+t.stage.setting.system.autoColumnWidth[1]}},[a("div",{staticClass:"taL sequence",attrs:{title:t.getLanguageStr("plant467","逆变器名称")}},[t._v(" "+t._s(t.getLanguageStr("plant467","逆变器名称"))+" ")]),a("div",{staticClass:"taL sequence",class:{cMain:this.hourDESC},attrs:{title:t.getLanguageStr("word1882","当日满发小时")+"(h)"},on:{click:function(e){return t.sortList("hourDESC")}}},[t._v(" "+t._s(t.getLanguageStr("word1882","当日满发小时")+"(h)")+" "),a("span",{attrs:{sequence:t.hourDESC}})]),a("div",{staticClass:"taL sequence",class:{cMain:this.gyDESC},attrs:{title:t.getLanguageStr("plant_list8","功率归一化")},on:{click:function(e){return t.sortList("gyDESC")}}},[a("span",[t._v(t._s(t.getLanguageStr("plant_list8","功率归一化")))]),a("span",{attrs:{sequence:t.gyDESC}})])]),a("div",{staticClass:"tra-fast h20x",attrs:{scroll:""}},[a("table",{style:{"min-width":t.stage.setting.system.autoColumnWidth[0]*t.column.length+t.stage.setting.system.autoColumnWidth[1]}},[a("tbody",{staticClass:"bdLight-bottom_E emptyToken_EE textCut_EE"},t._l(t.data,function(e,i){return a("tr",{key:i},[a("td",{staticClass:"curP",attrs:{title:e.name},on:{click:function(a){return t.openDetail(e)}}},[t._v(" "+t._s(e.name?e.name:t.getTypeText(e.type,"deviceType"))+" ")]),a("td",{attrs:{title:e.fullPowerHoursDay}},[t._v(t._s(null!==e.fullPowerHoursDay?e.fullPowerHoursDay:"--"))]),null==e.generationCapacity?a("td",[t._v("--")]):a("td",[a("IgProgress",{attrs:{percent:e.generationCapacity+"%",width:"2.5rem"}})],1)])}
2),0)])])])],1)],2)},n=[],s=(a(50113),a(18111),a(20116),a(2892),a(26099),a(9232)),r=a(81345),o=a(5203),l=a(78775),d=a(94117),c=a(22224),u=a(71757);const h={props:{stationInfo:{type:Object,default:function(){return{x:1}}},child:{type:Boolean,default:!1},stationInfoSys:{type:[Number,String,Object]},childBasic:{type:Object,default:null},roleCode:{type:Array,default:function(){return[]}}},data:function(){return{stage,floatColumn:new Array(2),column:new Array(1),data:[],hourDESC:"ASC",gyDESC:"",loadshow:!1,requestp:{"order.direction":"ASC","order.property":"full_power_hours_day"},deviceViewDetailDom:null}},watch:{},components:{},methods:{getLanguageStr:r.cx,getTypeText:s.getTypeText,doPermissions:o.doPermissions,openDetail:function(t){var e=this;t.deviceId=t.id,this.deviceViewDetailDom?this.deviceViewDetailDom.show(t):this.$dynamic(stage.dynamicContainer(this.$el),l["default"],{bg:!0,type:1,systemSection:"station"},{},{}).then(function(a){var i=a.childInstance;e.deviceViewDetailDom=i,i.show(t)})},clone:function(t){return c.cloneDeep(t)},getList:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.childBasic?this.childBasic.id:void 0;this.requestp.page=1,this.requestp.size=10,(this.child||a)&&(this.requestp.systemId=a||this.stationInfoSys.systemId),this.stationInfo.id&&(0,d.F5)(t||this.stationInfo.id).then(function(a){var i;i=a.roleCode&&0===a.roleCode.length?null:a.roleCode,!1===(0,o.doPermissions)("A/B/A7",{targetCode:"A3",codeList:e.clone(i)})||"false"===(0,o.doPermissions)("A/B/A7",{targetCode:"A3",codeList:e.clone(i)})?e.data=[]:(0,d.pc)(t||e.stationInfo.id,e.requestp).then(function(t){e.data=t.data},function(){e.data=[]})})},sortList:function(t){switch(t){case"hourDESC":this.gyDESC="","DESC"===this.hourDESC?this.hourDESC="ASC":this.hourDESC="DESC",this.requestp={"order.direction":this.hourDESC,"order.property":"full_power_hours_day"};break;case"gyDESC":"DESC"===this.gyDESC?this.gyDESC="ASC":this.gyDESC="DESC",this.hourDESC="",this.requestp={"order.direction":this.gyDESC,"order.property":"generation_capacity"};break}this.getList()}},mounted:function(){this.getList(),s.setNewScroll(u(this.$el).find("[scroll]"))}},g=h;var f=a(845),m=(0,f.A)(g,i,n,!1,null,"634f2d5b",null);const p=m.exports},97363(t,e,a){"use strict";a.r(e),a.d(e,{default:()=>K});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.basicInfo&&t.basicInfo.entityRel?a("PromiseList",{ref:"PromiseList",attrs:{"role-code":t.basicInfo.roleCode}}):t._e(),a("AddChildSys",{ref:"AddChildSys",on:{refreshChildSys:t.refreshChildSys}}),a("IgConfirm",{ref:"confirmDelChild",on:{confirm:t.delChild}}),"/station/childSystem".includes(t.$route.path)&&t.childBasic?a("PageDetail_head",{attrs:{title:t.childBasic.name,"title-sub":"("+t.$t("all82",[t.getTypeText(t.childBasic.functionType,"stationtype"),"XX系统"])+")"}},[t.entityRelId?a("div",{staticClass:"ml3x dpIB cSub curP w38x-max textCut vaM hover-c-main tra-fast",attrs:{slot:"afterTitle",onclick:"statistic('A13','A1352')"},on:{click:function(e){return t.$refs.PromiseList.show(t.basicInfo.entityRel)}},slot:"afterTitle"},[t._v(" "+t._s(t.getLanguageStr("device_management41","外部电站,点击查看权限"))+" ")]):t._e(),t.childInfo&&t.basicInfo?a("div",{staticClass:"dpIB dpIB_E vaM_E",attrs:{slot:"headContent"},slot:"headContent"},[t.getFastData("networkStatus",t.childInfo.networkStatus,t.systemId)?a("div",{class:t.judge(t.entityRelId,"ChildSys",t.basicInfo.roleCode)?"curP":"",on:{click:function(e){t.judge(t.entityRelId,"ChildSys",t.basicInfo.roleCode)&&t.$router.push({path:"/station/childDevice",query:{id:t.stationId,childId:t.systemId,deviceState:"ALL_OFFLINE"==t.getFastData("networkStatus",t.childInfo.networkStatus,t.systemId)?"3":""}})}}},[a("StatusIco",{staticClass:"statueIcon",attrs:{id:t.getFastData("networkStatus",t.childInfo.networkStatus,t.systemId),type:"plant"}}),t._v(" "+t._s(t.getTypeText(t.getFastData("networkStatus",t.childInfo.networkStatus,t.systemId),"netStatus"))+" ")],1):t._e(),"NO_DEVICE"==t.getFastData("networkStatus",t.childInfo.networkStatus,t.systemId)?a("Help",{staticClass:"miniHelp",attrs:{code:"accessing","btn-close":!1}}):t._e(),t.childInfo.warningStatus?a("div",{staticClass:"ml1x",class:t.judge(t.entityRelId,"Alarm",t.basicInfo.roleCode)?"curP":"",on:{click:function(e){t.judge(t.entityRelId,"Alarm",t.basicInfo.roleCode)&&t.$router.push({path:"/station/childAlarm",query:{id:t.stationId,childId:t.systemId}})}}},[a("StatusIco",{staticClass:"statueIcon",attrs:{id:t.childInfo.warningStatus,type:"alarm"}}),t._v(t._s(t.getTypeText(t.childInfo.warningStatus,"alarmStatus"))+" ")],1):t._e(),"ALERTING"==t.childInfo.warningStatus?a("Help",{staticClass:"miniHelp",attrs:{code:"alarming","btn-close":!1}}):t._e()],1):t._e(),a("div",{staticClass:"mt1x cSub",attrs:{slot:"headPartRight"},slot:"headPartRight"},[t.getFastData("lastUpdateTime",t.childInfo.lastUpdateTime,t.systemId)?[t._v(t._s(t.getLanguageStr("all69","最后更新")+" "+t.timeFormat(t.getFastData("lastUpdateTime",t.childInfo.lastUpdateTime,t.systemId),"utc","%Y/%m/%d %H:%M:%S UTC",{offset:t.basicInfo.region.timezone})))]:[t._v("--")]],2),a("template",{slot:"headButton"},[a("Refresh",{on:{Refresh:t.refresh}}),t.doPermissions("A/B/A9",{targetCode:"A5",codeList:t.clone(t.basicInfo.roleCode)})?a("button",{staticClass:"ms-s-l",attrs:{title:t.getLanguageStr("word1790","编辑子系统"),type:"button"},on:{click:t.editChildSys}},[a("IgIcon",{staticClass:"w2x h2x",attrs:{name:"edit",type:"font"}})],1):t._e(),t.doPermissions("A/B/A10",{targetCode:"A6",codeList:t.clone(t.basicInfo.roleCode)})?a("button",{staticClass:"ms-s-l hover-c-error",attrs:{title:t.getLanguageStr("cmd293","删除子系统"),type:"button"},on:{click:t.delChildSys}},[a("IgIcon",{staticClass:"w2x h2x",attrs:{name:"recycle",type:"font"}})],1):t._e()],1),t.tipShow?a("div",{staticClass:"tableSys cWarning bgWarning-low vaM_E",attrs:{slot:"bottom"},slot:"bottom"},[a("a",{staticClass:"ps-in-l pt105x pb105x dpB",attrs:{href:t.tipLink[t.stage.languageId]||t.tipLink.public,target:"_blank",rel:"noopener"}},[t._v(" "+t._s(t.getLanguageStr("data1","点击了解新电站数据看板"))+" ")]),a("div",{staticClass:"w5x taC curP hover-effect-rotate tra-fast",on:{click:t.closeTip}},[a("IgIcon",{staticClass:"w2x h2x",attrs:{name:"close",type:"font"}})],1)]):t._e()],2):t._e(),a("div",{ref:"content",attrs:{fillHeight:"lastHeight",scroll:""}},[a("div",{staticClass:"spaceSys"},[a("div",{staticClass:"col-6"},["GENERATION"==t.functionType?a("div",[a("PowerGeneration",{staticClass:"PowerGeneration",attrs:{data:Object.assign({},t.childInfo,{id:t.childInfo.systemId}),title:t.getLanguageStr("word559","发电")+t.getLanguageStr("word678","概况")}})],1):t._e(),"CONSUMPTION"==t.functionType?a("UsePower",{ref:"UsePowerInfo",attrs:{data:{id:t.systemId},"from-child":"childDetail"}}):t._e()],1),a("div",{ref:"InverterRankBox",staticClass:"col-6"}),a("div",{staticClass:"col-12"},["GENERATION"==t.functionType?a("generateHistoryChild",{ref:"generateHistory",attrs:{"station-type":"PV"===t.basicInfo.powerType?"light":"wind","base-info":t.basicInfo,"collect-time":t.option.stationInfo,"time-zone-code":t.basicInfo.region?t.basicInfo.region.timezone:t.stage.time.timeZoneCode,"from-child":"childDetail"}}):t._e(),"CONSUMPTION"==t.functionType?a("ConsumptionHistory",{ref:"consumptionHistory",attrs:{"base-info":t.basicInfo,"collect-time":t.option.stationInfo,"time-zone-code":t.basicInfo.region?t.basicInfo.region.timezone:t.stage.time.timeZoneCode}}):t._e()],1),a("div",{staticClass:"col-12"},[a("StationSummary",{ref:"StationSummary",on:{stepTo:t.summaryStepTo}}
2)],1)])])],1)},n=[],s=a(53945),r=(a(44114),a(94170),a(62010),a(2892),a(26099),a(47764),a(62953),a(9232)),o=a(95353),l=a(5203),d=a(47827),c=a(81110),u=a(35854),h=a(55500),g=a(80261),f=a(11355),m=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("IgPanel",{staticClass:"h52x",attrs:{title:0==t.level?t.getLanguageStr("user106","历史"):t.getLanguageStr("word1480","发电历史"),loading:t.isChart,name:"generatehistorychilddetail"}},[a("IgConfirm",{ref:"confirm"}),a("template",{slot:"tool"},[a("div",{staticClass:"classGroup tra-fast_E",on:{mouseleave:t.leave}},t._l(t.timeChoose,function(e,i){return a("button",{key:i,class:{active:t.ActiveIndex==i},attrs:{type:"button"},on:{click:function(a){return t._timePicker(e,i)}}},[t._v(" "+t._s(e.datepicker)+" ")])}),0),a("div",{staticClass:"posR",on:{mouseleave:t.leave}},[a("button",{staticClass:"sizeS bdSub h3x pl1x pr1x boxR-light hover-main",attrs:{title:t.getLanguageStr("word566","参数选择")},on:{mouseenter:t.paramChooiceShow}},[t._v(" "+t._s(t.getLanguageStr("word566","参数选择"))+" ")]),a("DeviceDetailParam",{ref:"DeviceDetailParam",staticClass:"cContent DeviceDetailParam",on:{selectArray:t.updateShowParamArray,beingParamArray:t.beingParamArray}}),a("button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],staticClass:"functionBtn sizeS",attrs:{type:"button"},on:{click:t.exportExcel}},[t._v(" "+t._s(t.$t("report22",["导出"]))+" ")])],1),a("div",{staticClass:"cField tra-fast_E vaM_E hover-cMain_E",on:{mouseleave:t.leave}},[a("IgIcon",{staticClass:"w2x h2x curP",class:{disable:"all"===t.timeChoose[t.ActiveIndex].type},attrs:{type:"font",name:"arrow-l",id:"prev"},on:{click:function(e){return t.dateChange("perv")}}}),"all"===t.timeChoose[t.ActiveIndex].type?a("IgDatePicker",{staticClass:"h3x",attrs:{format:"YYYY",local:t.local,disabled:""},model:{value:t.rangeDate,callback:function(e){t.rangeDate=e},expression:"rangeDate"}}):a("IgDatePicker",{ref:"date",staticClass:"h3x",attrs:{format:t.timeChoose[t.ActiveIndex].format,local:t.local,"disabled-date":t.disabledDate},on:{input:function(e){return t._showChartParam(e)}},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}}),a("IgIcon",{staticClass:"w2x h2x curP",class:{disable:"all"===t.timeChoose[t.ActiveIndex].type||t.timeGetTime>=t.todayGetTime},attrs:{type:"font",name:"arrow-r",id:"next"},on:{click:function(e){return t.dateChange("next")}}})],1)]),a("div",{staticClass:"emptyToken_EE posR pb1x"},[t.isChart||0!=t.ActiveIndex?t._e():a("div",{staticClass:"w70pct taC dpIB_E mr3x_E lh5 pa2x flexBox"},[a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("all428","光伏日发电量")}},[t._v(t._s(t.getLanguageStr("all428","光伏日发电量")))]),null!=t.getFastData("generationValue",t.getIn(t.detailData,["statistics","generationValue"]),t.useId)?a("div",{attrs:{title:t.convertData(t.getFastData("generationValue",t.getIn(t.detailData,["statistics","generationValue"]),t.useId),2,"k","Wh")[0]}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.convertData(t.getFastData("generationValue",t.getIn(t.detailData,["statistics","generationValue"]),t.useId),2,"k","Wh")[1]))]),a("span",[t._v(t._s(t.convertData(t.getFastData("generationValue",t.getIn(t.detailData,["statistics","generationValue"]),t.useId),2,"k","Wh")[2]))])]):a("span",[t._v("--")])])]),t.condition?a("div",[a("div",[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("word1725","当日辐照量")}},[t._v(t._s(t.getLanguageStr("word1725","当日辐照量")))]),a("div",{staticClass:"taL dpIB"},[null!=t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId)?a("span",{attrs:{title:t.convertData(t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId),2,"k","Wh/㎡")[0]}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.convertData(t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId),2,"k","Wh/㎡")[1]))]),a("span",[t._v(t._s(t.convertData(t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId),2,"k","Wh/㎡")[2]))])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e(),a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("word1882","当日满发小时")}},[t._v(" "+t._s(t.getLanguageStr("word1882","当日满发小时"))+" "),a("button",{on:{click:function(e){return t.showInfo("full_power_hours_day")}}},[a("IgIcon",{staticClass:"w105x h105x tra-fast help cSub",attrs:{name:"help","size-base":"xxs",type:"font"}})],1)]),null!==t.getFastData("fullPowerHoursDay",t.getIn(t.detailData,["statistics","fullPowerHoursDay"]),t.useId)?a("div",{attrs:{title:t.floatFix(t.getFastData("fullPowerHoursDay",t.getIn(t.detailData,["statistics","fullPowerHoursDay"]),t.useId),2," h",!1)}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.floatFix(t.getFastData("fullPowerHoursDay",t.getIn(t.detailData,["statistics","fullPowerHoursDay"]),t.useId),2,null,!1))+" ")]),a("span",{staticClass:"ml05x"},[t._v("h")])]):a("div",[t._v("--")])])]),t.condition2?a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("plant_detail6","当日理论发电量")}},[t._v(" "+t._s(t.getLanguageStr("plant_detail6","当日理论发电量"))+" ")]),a("div",[null!=t.getIn(t.detailData,["statistics","theoreticalGeneration"])?a("span",{attrs:{title:t.convertData(t.detailData.statistics.theoreticalGeneration,2,"k","Wh")[0]}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.convertData(t.detailData.statistics.theoreticalGeneration,2,"k","Wh")[1]))]),a("span",[t._v(t._s(t.convertData(t.detailData.statistics.theoreticalGeneration,2,"k","Wh")[2]))])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e(),t.condition3?a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("word1726","当日PR")}},[t._v(" "+t._s(t.getLanguageStr("word1726","当日PR"))+" "),a("button",{on:{click:function(e){return t.showInfo("pr_today")}}},[a("IgIcon",{staticClass:"w105x h105x tra-fast help cSub",attrs:{name:"help","size-base":"xxs",type:"font"}})],1)]),a("div",[null!=t.getIn(t.detailData,["statistics","pr"])?a("span",{attrs:{title:t.floatFix(100*t.detailData.statistics.pr,2,"%")}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.floatFix(100*t.detailData.statistics.pr,2,null,!1)))]),a("span",{staticClass:"ml05x"},[t._v("%")])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e(),t.condition2?a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("plant_detail9","当日CPR")}},[t._v(t._s(t.getLanguageStr("plant_detail9","当日CPR")))]),a("div",[null!=t.getIn(t.detailData,["statistics","cpr"])?a("span",{attrs:{title:t.floatFix(100*t.detailData.statistics.cpr,2,"%")}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.floatFix(100*t.detailData.statistics.cpr,2,null,!1)))]),a("span",{staticClass:"ml05x"},[t._v("%")])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e()]),t.isChart||1!=t.ActiveIndex?t._e(
2):a("div",{staticClass:"taC dpIB_E pa2x flexBox"},[a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("all429","光伏月发电量")}},[t._v(t._s(t.getLanguageStr("all429","光伏月发电量")))]),null!=t.getIn(t.detailData,["statistics","generationValue"])?a("div",{attrs:{title:t.convertData(t.getFastData("generationValue",t.detailData.statistics.generationValue,t.useId),2,"k","Wh")[0]}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.convertData(t.getFastData("generationValue",t.detailData.statistics.generationValue,t.useId),2,"k","Wh")[1]))]),a("span",[t._v(t._s(t.convertData(t.getFastData("generationValue",t.detailData.statistics.generationValue,t.useId),2,"k","Wh")[2]))])]):a("div",[t._v("--")])])]),a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("word1728","当月满发小时")}},[t._v(t._s(t.getLanguageStr("word1728","当月满发小时")))]),null!==t.getFastData("fullPowerHoursDay",t.getIn(t.detailData,["statistics","fullPowerHoursDay"]),t.useId)?a("div",{attrs:{title:t.floatFix(t.detailData.statistics.fullPowerHoursDay,2," h")}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.floatFix(t.getFastData("fullPowerHoursDay",t.getIn(t.detailData,["statistics","fullPowerHoursDay"]),t.useId),2,null)))]),a("span",[t._v("h")])]):a("div",{staticClass:"ml1x"},[t._v("--")])])]),t.condition?a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("word1729","当月辐照量")}},[t._v(t._s(t.getLanguageStr("word1729","当月辐照量")))]),a("div",[null!=t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId)?a("span",{attrs:{title:t.convertData(t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId),2,"k","Wh/㎡")[0]}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.convertData(t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId),2,"k","Wh/㎡")[1]))]),a("span",[t._v(t._s(t.convertData(t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId),2,"k","Wh/㎡")[2]))])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e(),t.condition1?a("div",{staticClass:"minW28x"},[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("plant_detail7","当月理论发电量")}},[t._v(" "+t._s(t.getLanguageStr("plant_detail7","当月理论发电量"))+" ")]),a("div",[null!=t.getIn(t.detailData,["statistics","theoreticalGeneration"])?a("span",{attrs:{title:t.convertData(t.detailData.statistics.theoreticalGeneration,2,"k","Wh")[0]}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.convertData(t.detailData.statistics.theoreticalGeneration,2,"k","Wh")[1]))]),a("span",[t._v(t._s(t.convertData(t.detailData.statistics.theoreticalGeneration,2,"k","Wh")[2]))])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e(),t.condition?a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("word1730","当月PR")}},[t._v(t._s(t.getLanguageStr("word1730","当月PR")))]),a("div",[null!=t.getIn(t.detailData,["statistics","pr"])?a("span",{attrs:{title:t.floatFix(100*t.detailData.statistics.pr,2,"%")}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.floatFix(100*t.detailData.statistics.pr,2,null,!1)))]),a("span",{staticClass:"ml05x"},[t._v("%")])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e(),t.condition1?a("div",[a("div",{staticClass:"taL dpIB"},[a("span",{staticClass:"cSub",attrs:{title:t.getLanguageStr("plant_detail10","当月CPR")}},[t._v(t._s(t.getLanguageStr("plant_detail10","当月CPR"))+" ")]),a("div",[null!=t.getIn(t.detailData,["statistics","cpr"])?a("span",{attrs:{title:t.floatFix(100*t.detailData.statistics.cpr,2,"%")}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.floatFix(100*t.detailData.statistics.cpr,2,null,!1)))]),a("span",{staticClass:"ml05x"},[t._v("%")])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e()]),t.isChart||2!=t.ActiveIndex?t._e(
2):a("div",{staticClass:"taC dpIB_E pa2x flexBox"},[a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("all430","光伏年发电量")}},[t._v(t._s(t.getLanguageStr("all430","光伏年发电量")))]),null!=t.getIn(t.detailData,["statistics","generationValue"])?a("div",{attrs:{title:t.convertData(t.getFastData("generationValue",t.detailData.statistics.generationValue,t.useId),2,"k","Wh")[0]}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.convertData(t.getFastData("generationValue",t.getIn(t.detailData,["statistics","generationValue"]),t.useId),2,"k","Wh")[1]))]),a("span",[t._v(t._s(t.convertData(t.getFastData("generationValue",t.getIn(t.detailData,["statistics","generationValue"]),t.useId),2,"k","Wh")[2]))])]):a("div",[t._v("--")])])]),a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("word1734","当年满发小时")}},[t._v(t._s(t.getLanguageStr("word1734","当年满发小时")))]),null!==t.getFastData("fullPowerHoursDay",t.getIn(t.detailData,["statistics","fullPowerHoursDay"]),t.useId)?a("div",{attrs:{title:t.floatFix(t.getFastData("fullPowerHoursDay",t.getIn(t.detailData,["statistics","fullPowerHoursDay"]),t.useId),2," h")}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.floatFix(t.getFastData("fullPowerHoursDay",t.getIn(t.detailData,["statistics","fullPowerHoursDay"]),t.useId),2,null)))]),a("span",{staticClass:"ml05x"},[t._v("h")])]):a("div",[t._v("--")])])]),t.condition?a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("word1736","当年辐照量")}},[t._v(t._s(t.getLanguageStr("word1736","当年辐照量")))]),a("div",[null!=t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId)?a("span",{attrs:{title:t.convertData(t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId),2,"k","Wh/㎡")[0]}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.convertData(t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId),2,"k","Wh/㎡")[1]))]),a("span",[t._v(t._s(t.convertData(t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId),2,"k","Wh/㎡")[2]))])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e(),t.condition1?a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("plant_detail8","当年理论发电量")}},[t._v(" "+t._s(t.getLanguageStr("plant_detail8","当年理论发电量"))+" ")]),a("div",[null!=t.getIn(t.detailData,["statistics","theoreticalGeneration"])?a("span",{attrs:{title:t.convertData(t.detailData.statistics.theoreticalGeneration,2,"k","Wh")[0]}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.convertData(t.detailData.statistics.theoreticalGeneration,2,"k","Wh")[1]))]),a("span",[t._v(t._s(t.convertData(t.detailData.statistics.theoreticalGeneration,2,"k","Wh")[2]))])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e(),t.condition?a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("word1737","当年PR")}},[t._v(t._s(t.getLanguageStr("word1737","当年PR")))]),a("div",[null!=t.getIn(t.detailData,["statistics","pr"])?a("span",{attrs:{title:t.floatFix(100*t.detailData.statistics.pr,2,"%")}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.floatFix(100*t.detailData.statistics.pr,2,null,!1)))]),a("span",{staticClass:"ml05x"},[t._v("%")])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e()]),t.isChart||3!=t.ActiveIndex?t._e():a("div",{staticClass:"taC dpIB_E pa2x flexBox"},[a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("all431","光伏总发电量")}},[t._v(t._s(t.getLanguageStr("all431","光伏总发电量")))]),null!=t.getIn(t.detailData,["statistics","generationValue"])?a("div",{attrs:{title:t.convertData(t.getFastData("generationValue",t.detailData.statistics.generationValue,t.useId),2,"k","Wh")[0]}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.convertData(t.getFastData("generationValue",t.getIn(t.detailData,["statistics","generationValue"]),t.useId),2,"k","Wh")[1]))]),a("span",[t._v(t._s(t.convertData(t.getFastData("generationValue",t.getIn(t.detailData,["statistics","generationValue"]),t.useId),2,"k","Wh")[2]))])]):a("div",[t._v("--")])])]),a("div",[a("div",{staticClass:"taL dpIB"},[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("word1742","总满发小时")}},[t._v(t._s(t.getLanguageStr("word1742","总满发小时")))]),null!=t.getFastData("fullPowerHoursDay",t.getIn(t.detailData,["statistics","fullPowerHoursDay"]),t.useId)?a("div",{attrs:{title:t.floatFix(t.getFastData("fullPowerHoursDay",t.getIn(t.detailData,["statistics","fullPowerHoursDay"]),t.useId),2," h")}},[a("span",{staticClass:"fontBig"},[t._v(t._s(t.floatFix(t.getFastData("fullPowerHoursDay",t.getIn(t.detailData,["statistics","fullPowerHoursDay"]),t.useId),2,null)))]),a("span",{staticClass:"ml05x"},[t._v("h")])]):a("div",[t._v("--")])])]),t.condition?a("div",[a("div",[a("div",{staticClass:"cSub",attrs:{title:t.getLanguageStr("word1744","总辐照量")}},[t._v(t._s(t.getLanguageStr("word1744","总辐照量")))]),a("div",{staticClass:"taL dpIB"},[null!=t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId)?a("span",[a("span",{staticClass:"fontBig"},[t._v(t._s(t.convertData(t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId),2,"k","Wh/㎡")[1]))]),a("span",[t._v(t._s(t.convertData(t.getFastData("irradiate",t.getIn(t.detailData,["statistics","irradiate"]),t.useId),2,"k","Wh/㎡")[2]))])]):a("span",{staticClass:"fontBig",attrs:{title:"--"}},[t._v("-- ")])])])]):t._e()]),t.getIn(t.stage,["station","detail","historyChart","showLogo"])?a("div",{staticClass:"taR posA fixRight"},[a("img",{staticClass:"w8x h3x",attrs:{src:t.getIn(t.stage,["station","detail","historyChart","logoUrl"])}})]):t._e()]),a("div",{staticClass:"pt1x pb2x mt2x"},[0==t.ActiveIndex?a("ChartLine",{ref:"chartLine",staticClass:"w100pct",attrs:{data:t.ChartData,option:t.defChartMonthOption,"chart-class":"h36x"}}):a("ChartColumn",{ref:"chartColumn",staticClass:"w100pct h36x",attrs:{data:t.ChartData,option:t.defChartMonthOption,"chart-class":"h36x"}})],1)],2)},p=[],v=a(52846),y=(a(28706),a(88431),a(2008),a(51629),a(74423),a(25276),a(62062),a(72712),a(34782),a(23288),a(18111),a(81148),a(22489),a(7588),a(61701),a(18237),a(16034),a(58940),a(27495),a(25440),a(23500),a(70060)),C=a(10583),w=a(81345),D=a(84895),S=a(45784),I=a(68663),x=a(25591),_=a(76520),L=a(63779),b=a(94611),T=a(94117),A=a(22224),E=a(71757);const B={name:"GenerateHistory",components:{ChartLine:_.A,ChartColumn:L.A,DeviceDetailParam:b.A}
2,props:{collectTime:Object,timeZoneCode:String,fromChild:{type:String,default:"detail"},StationType:{type:String,default:"light"},stationTypeAndGridType:{type:String,default:""}},mixins:[I.A],data:function(){return{option:{timeZoneCode:this.timeZoneCode},running:!1,ActiveIndex:0,local:{},isChart:!0,time:new Date,rangeDate:[new Date("2000"),new Date],datepicker_Ctrl_day:"",datepicker_Ctrl_month:"",datepicker_Ctrl_year:"",timeChoose:[{datepicker:(0,w.cx)("cmd93","日"),format:"YYYY/MM/DD",type:"day"},{datepicker:(0,w.cx)("cmd95","月"),format:"YYYY/MM",type:"month"},{datepicker:(0,w.cx)("cmd96","年"),format:"YYYY",type:"year"},{datepicker:(0,w.cx)("cmd97","总"),format:"YYYY",type:"all"}],defChartMonthOption:{},ChartData:[],detailData:{},tempData:[],chartList:[],stationId:null,systemId:null,level:0,installedCapacity:null,basicInfo:{},showData:null,exportExcelObj:{records:[],weatherList:[]}}},watch:{"collectTime.lastUpdateTime":function(t){var e=this;this.basicInfo.region&&t&&this.$nextTick(function(){e.time=new Date(e.timeFormat(e.getFastData("lastUpdateTime",t,e.useId)?e.getFastData("lastUpdateTime",t,e.useId):new Date,"utc","%Y/%m/%d",{offset:e.basicInfo.region.timezone}))})},baseInfo:function(t){var e=this;this.$nextTick(function(){e.time=new Date(e.timeFormat(e.getFastData("lastUpdateTime",e.collectTime.lastUpdateTime,e.useId)?e.getFastData("lastUpdateTime",e.collectTime.lastUpdateTime,e.useId):new Date,"utc","%Y/%m/%d",{offset:t.region.timezone}))})}},created:function(){this._getLocal()},computed:(0,s.A)((0,s.A)({},(0,o.L8)({weather:"stationDetail/weather",preference:"user/preference",userInfo:"user/userInfo"})),{},{timeGetTime:function(){var t=new Date(this.time).getFullYear(),e=new Date(this.time).getMonth()+1,a=new Date(this.time).getDate();return 0==this.ActiveIndex?new Date(t+"/"+e+"/"+a).getTime():1==this.ActiveIndex?new Date(t+"/"+e+"/01").getTime():2==this.ActiveIndex?new Date(String(t)).getTime():void 0},isToday:function(){if(A.get(this.basicInfo,["region","timezone"],!1)){var t=this.timeFormat(this.getFastData("lastUpdateTime",this.collectTime.lastUpdateTime,this.systemId||this.stationId),"utc","%d",{offset:this.basicInfo.region.timezone}),e=this.time.getDate();return 0===this.ActiveIndex&&Number(e)===Number(t)}return!1},useId:function(){return!!this.isToday&&(this.systemId||this.stationId)},todayGetTime:function(){return 0==this.ActiveIndex?new Date(this.datepicker_Ctrl_day).getTime():1==this.ActiveIndex?new Date(this.datepicker_Ctrl_month).getTime():2==this.ActiveIndex?new Date(this.datepicker_Ctrl_year).getTime():void 0},stationTypeSpecial:function(){var t=!1;"HOUSE_ROOF"===this.basicInfo.type&&(t=!0);var e=!1;return"DISTRIBUTED_FULLY"!==this.basicInfo.gridInterconnectionType&&"CENTRALIZED_FULLY"!==this.basicInfo.gridInterconnectionType||(e=!0),!(t&&e)},condition:function(t){var e=t.basicInfo,a=t.fromChild,i=t.StationType;return"HOUSE_ROOF"!==e.type&&"detail"==a&&"light"===i},condition1:function(t){var e=t.basicInfo,a=t.fromChild,i=t.StationType;return"HOUSE_ROOF"!==e.type&&"detail"==a&&"light"===i},condition2:function(t){var e=t.basicInfo,a=t.fromChild,i=t.StationType,n=t.timeGetTime,s=t.todayGetTime;return"HOUSE_ROOF"!==e.type&&(n<s&&"detail"==a&&"light"===i)},condition3:function(t){var e=t.fromChild,a=t.StationType,i=t.timeGetTime,n=t.todayGetTime,s=t.stationTypeAndGridType;return!["HOUSE_ROOF-DISTRIBUTED_FULLY/CENTRALIZED_FULLY","HOUSE_ROOF-EXCESS","HOUSE_ROOF-BATTERY_BACKUP"].includes(s)&&(i<n&&"detail"==e&&"light"===a)}}),methods:{getLanguageStr:w.cx,floatFix:r.floatFix,timeFormat:r.timeFormat,getTypeText:r.getTypeText,convertData:r.convertData,tempChange:r.tempChange,showInfo:function(t){var e=this;this.$dynamic(stage.dynamicContainer(this.$el),x.IgConfirm,{cancelBtn:!1,okBtnText:this.$t("cmd15",{0:"我知道了"})},{},{}).then(function(a){var i=a.instance,n=a.childInstance;"full_power_hours_day"==t?(e.infoTitle=(0,w.cx)("word1882",["当日满发小时"]),e.infoContent="".concat((0,w.cx)("plant517")+"<br/>"+(0,w.cx)("plant518")+"<br/>"+(0,w.cx)("plant519"))):"pr_today"==t&&(e.infoTitle=(0,w.cx)("word1726",["当日PR"]),e.infoContent="<div>".concat((0,w.cx)("plant572","当日PR是衡量一座光伏电站发电质量的重要指标之一,当日PR则表示当日的发电质量。"),"</div><div>").concat((0,w.cx)("plant573","计算公式:当日PR=当日发电量/(装机容量*当日辐照量)。"),"</div><div>").concat((0,w.cx)("plant574","例如当日PR是80%,表示此电站当日实发电量/应发电量的比值为80%。"),"</div>\n\t\t\t\t\t<div>").concat((0,w.cx)("plant523","注意:如果电站没有气象站将无法计算该指标。"),"</div>")),n.show({title:e.infoTitle,text:e.infoContent},i)})},leave:function(){this.paramChooiceActive=!1,this.$refs.DeviceDetailParam.showParam=!1},show:function(t){this.showData=t,this.basicInfo=t.basicInfo,this.option.timeZoneCode=t.basicInfo.region.timezone||stage.time.timeZoneCode,this.installedCapacity=t.basicInfo.installedCapacity,this.stationId=t.stationId,this.systemId=t.systemId,this.level=t.level,this.running?this._showChartParam():(this.getDatepickerCtrl(),this._showChart()),this.running=!0},getDatepickerCtrl:function(){if(this.basicInfo.region){var t=this.timeFormat(this.getFastData("lastUpdateTime",this.collectTime.lastUpdateTime,this.useId)?this.getFastData("lastUpdateTime",this.collectTime.lastUpdateTime,this.useId):new Date,"utc","%Y/%m/%d",{offset:this.basicInfo.region.timezone});this.time=new Date(t),this.datepicker_Ctrl_day=t,this.datepicker_Ctrl_month=this.timeFormat(this.time,"utc","%Y/%m/01",{offset:this.basicInfo.region.timezone}),this.datepicker_Ctrl_year=this.timeFormat(this.time,"utc","%Y",{offset:this.basicInfo.region.timezone})}},_getLocal:function(){this.local=(0,C.GB)()},disabledDate:function(t){var e=new Date(this.datepicker_Ctrl_day).getTime();return e<t},paramChooiceShow:function(){var t=this.timeChoose[this.ActiveIndex].type;switch(t){case"month":statistic("A13","A1319");break;case"year":statistic("A13","A1325");break;case"all":statistic("A13","A1331");break;default:statistic("A13","A1313")}var e=A.cloneDeep(this.chartList);e.length>0&&e.forEach(function(t){t.isBeingSelected=t["default"]}),this.$refs.DeviceDetailParam.show(A.cloneDeep(this.chartList),e,!0)},beingParamArray:function(t){this.chartList=[],this.chartList=t},updateShowParamArray:function(t){var e=t.filter(function(t){return t.isBeingSelected}).map(function(t){return t.type});this.chartList=[],this.chartList=t,0==this.ActiveIndex?(statistic("A13","A1314","select_production_day_parameters",e),this._getDayData()):1==this.ActiveIndex?(statistic("A13","A1320","select_production_month_parameters",e),this._getMonthData()):2==this.ActiveIndex?(statistic("A13","A1326","select_production_year_parameters",e),this._getYearData()):(statistic("A13","A1332","select_production_total_parameters",e),this._getTotalData())},timezoneMS:function(){return(0,r.getTimeZoneOffset)(this.basicInfo.region.timezone,!0)},dateChange:function(t){var e,a=this.timeChoose[this.ActiveIndex].type,i=this.$refs.date.text,n=new Date("month"==a||"quarter"==a?i.split("~").pop()+"/01":i.split("~").pop());switch(a){case"day":"perv"===t?(statistic("A13","A1316"),e=-1):"next"===t&&new Date(i).getTime()<new Date(this.datepicker_Ctrl_day).getTime()?(statistic("A13","A1318"),e=1):(statistic("A13","A1317"),e=0),n.setDate(n.getDate()+e),this.$refs.date.selectOk(n);break;case"month":i+="/01","perv"===t?(statistic("A13","A1322"),e=-1):"next"===t&&new Date(i.replace(/\//g,"-")).getTime()<new Date(this.datepicker_Ctrl_month).getTime()?(statistic("A13","A1324"),e=1):e=0,n.setMonth(n.getMonth()+e),this.$refs.date.selectOk(n);break;case"quarter":e="perv"===t?-1:"next"===t&&new Date(i).getTime()<new Date(this.datepicker_Ctrl_day).getTime()?1:0,this.curQuarter=Math.ceil((n.getMonth()+1+e)/3),n.setMonth(n.getMonth()+e),this.$refs.date.selectOk(n);break;case"year":"perv"===t?(statistic("A13","A1328"),e=-1):"next"===t&&new Date(i).getTime()<new Date(this.datepicker_Ctrl_year).getTime()?(statistic("A13","A1330"),e=1):e=0,n.setFullYear(n.getFullYear()+e),this.$refs.date.selectOk(n);break;default:break}},_getCountDays:function(){var t=A.cloneDeep(this.time),e=t.getMonth()+1,a=t.getFullYear();return new Date(a,e,0).getDate()}
2,_showChartParam:function(){0==this.ActiveIndex?this._chartDay():1==this.ActiveIndex?this._chartMonth():2==this.ActiveIndex?this._chartYear():3==this.ActiveIndex&&this._totalData()},_showChart:function(){var t=this,e=D.A.generationPower,a=D.A.weatherPic,i=D.A.temperature,n=D.A.irradiateIntensity,s=D.A.generationValue,r=D.A.fullPowerHoursDay,o=D.A.irradiate,l=D.A.pr,d=D.A.usePower,c=D.A.gridPower,u=D.A.buyPower,h=D.A.useValue,g=D.A.gridValue,f=D.A.buyValue,m=D.A.wirePower,p=D.A.batterySoc,v=D.A.chargePower,y=D.A.dischargePower,C=D.A.batteryPower,S=D.A.chargeValue,I=D.A.dischargeValue;for(var x in this.detailData={},this.isChart=!0,this.chartList=[],this.proportion)this.proportion[x]=0;if(0==this.ActiveIndex){var _=[{name:(0,w.cx)("all426","光伏发电功率"),type:"generationPower",selected:!0,isBeingSelected:!0,default:!0,unit:"W",data:[]},{name:(0,w.cx)("word1470","天气"),type:"weatherPic",dataType:"weatherPic",selected:!0,isBeingSelected:!0,default:!0,unit:"",data:[]},{name:(0,w.cx)("word1623","当地温度"),type:"temperature",selected:!1,isBeingSelected:!1,unit:1==this.preference.tempUnit?"℃":"℉",default:!1,data:[]},{name:(0,w.cx)("word1211","辐照强度"),type:"irradiateIntensity",selected:!1,isBeingSelected:!1,default:!1,unit:"W/㎡",data:[]}];if("light"===this.StationType)switch(this.stationTypeAndGridType){case"HOUSE_ROOF-DISTRIBUTED_FULLY/CENTRALIZED_FULLY":_=[e({name:t.getLanguageStr("all426","光伏发电功率")}),a({name:t.getLanguageStr("word1470","天气")}),i({name:t.getLanguageStr("word1623","当地温度")},this.preference.tempUnit)];break;case"HOUSE_ROOF-EXCESS":_=[e({name:t.getLanguageStr("all426","光伏发电功率")}),a({name:t.getLanguageStr("word1470","天气")}),d({name:t.getLanguageStr("word977","用电功率"),selected:!1,isBeingSelected:!1,default:!1}),c({name:t.getLanguageStr("word177","并网功率")}),u({name:t.getLanguageStr("plant342","购电功率")}),i({name:t.getLanguageStr("word1623","当地温度")},this.preference.tempUnit)];break;case"HOUSE_ROOF-BATTERY_BACKUP":_=[e({name:t.getLanguageStr("all426","光伏发电功率")}),a({name:t.getLanguageStr("word1470","天气")}),d({name:t.getLanguageStr("word977","用电功率")}),m({name:t.getLanguageStr("word190","电网功率")}),c({name:t.getLanguageStr("word177","并网功率")}),u({name:t.getLanguageStr("plant342","购电功率")}),C({name:t.getLanguageStr("plant366","电池功率")}),v({name:t.getLanguageStr("word1883","充电功率")}),y({name:t.getLanguageStr("word1884","放电功率")}),p({name:t.getLanguageStr("word1009","电池剩余容量")}),i({name:t.getLanguageStr("word1623","当地温度")},this.preference.tempUnit)];break;case"OTHER_ROOF-EXCESS":_=[e({name:t.getLanguageStr("all426","光伏发电功率")}),a({name:t.getLanguageStr("word1470","天气")}),d({name:t.getLanguageStr("word977","用电功率"),selected:!1,isBeingSelected:!1,default:!1}),c({name:t.getLanguageStr("word177","并网功率")}),u({name:t.getLanguageStr("plant342","购电功率")}),n({name:t.getLanguageStr("word1211","辐照强度")}),i({name:t.getLanguageStr("word1623","当地温度")},this.preference.tempUnit)];break;case"OTHER_ROOF-BATTERY_BACKUP":_=[e({name:t.getLanguageStr("all426","光伏发电功率")}),a({name:t.getLanguageStr("word1470","天气")}),d({name:t.getLanguageStr("word977","用电功率")}),m({name:t.getLanguageStr("word190","电网功率")}),c({name:t.getLanguageStr("word177","并网功率")}),u({name:t.getLanguageStr("plant342","购电功率")}),C({name:t.getLanguageStr("plant366","电池功率")}),v({name:t.getLanguageStr("word1883","充电功率")}),y({name:t.getLanguageStr("word1884","放电功率")}),p({name:t.getLanguageStr("word1009","电池剩余容量")}),n({name:t.getLanguageStr("word1211","辐照强度")}),i({name:t.getLanguageStr("word1623","当地温度")},this.preference.tempUnit)];break;default:break}"childDetail"==this.fromChild&&(_=_.slice(0,1)),this.chartList=_,this._chartDay()}else if(1==this.ActiveIndex){var L=this._getCountDays(),b=[{name:(0,w.cx)("all428","光伏日发电量"),unit:"kWh",type:"generationValue",selected:!0,isBeingSelected:!0,default:!0,data:new Array(L)},{name:(0,w.cx)("word1882","当日满发小时"),unit:"h",type:"fullPowerHoursDay",selected:!1,isBeingSelected:!1,default:!1,data:new Array(L)},{name:(0,w.cx)("plant_detail216","当日天气"),type:"weatherPic",dataType:"weatherPic",selected:!0,isBeingSelected:!0,default:!0,unit:"",data:new Array(L)},{name:(0,w.cx)("word1731","当日温度"),unit:1==this.preference.tempUnit?"℃":"℉",type:"temperature",selected:!1,isBeingSelected:!1,default:!1,data:new Array(L)},{name:(0,w.cx)("word1725","当日辐照量"),unit:"kWh/㎡",type:"irradiate",selected:!1,isBeingSelected:!1,default:!1,data:new Array(L)},{name:(0,w.cx)("plant_detail6","当日理论发电量"),unit:"kWh",type:"theoreticalGeneration",selected:!1,isBeingSelected:!1,default:!1,onlySolarman:!0,data:new Array(L)},{name:(0,w.cx)("word1726","当日PR"),unit:"%",type:"pr",selected:!1,isBeingSelected:!1,default:!1,data:new Array(L)},{name:(0,w.cx)("plant_detail9","当日CPR"),unit:"%",type:"cpr",selected:!1,isBeingSelected:!1,default:!1,onlySolarman:!0,data:new Array(L)}];if("light"===this.StationType){switch(this.stationTypeAndGridType){case"HOUSE_ROOF-DISTRIBUTED_FULLY/CENTRALIZED_FULLY":b=[s({name:t.getLanguageStr("all428","光伏日发电量")}),a({name:t.getLanguageStr("word1732","当日天气")}),r({name:t.getLanguageStr("word1882","当日满发小时")}),i({name:t.getLanguageStr("word1731","当日温度")},this.preference.tempUnit)];break;case"HOUSE_ROOF-EXCESS":b=[s({name:t.getLanguageStr("all428","光伏日发电量")}),a({name:t.getLanguageStr("word1732","当日天气")}),r({name:t.getLanguageStr("word1882","当日满发小时")}),h({name:t.getLanguageStr("word527","当日用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word501","当日并网量")}),f({name:t.getLanguageStr("word502","当日购电量")}),i({name:t.getLanguageStr("word1731","当日温度")},this.preference.tempUnit)];break;case"HOUSE_ROOF-BATTERY_BACKUP":b=[s({name:t.getLanguageStr("all428","光伏日发电量")}),a({name:t.getLanguageStr("word1732","当日天气")}),r({name:t.getLanguageStr("word1882","当日满发小时")}),h({name:t.getLanguageStr("word527","当日用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word501","当日并网量")}),f({name:t.getLanguageStr("word502","当日购电量")}),S({name:t.getLanguageStr("word548","当日充电量")}),I({name:t.getLanguageStr("word549","当日放电量")}),i({name:t.getLanguageStr("word1731","当日温度")},this.preference.tempUnit)];break;case"OTHER_ROOF-EXCESS":b=[s({name:t.getLanguageStr("all428","光伏日发电量")}),a({name:t.getLanguageStr("word1732","当日天气")}),r({name:t.getLanguageStr("word1882","当日满发小时")}),h({name:t.getLanguageStr("word527","当日用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word501","当日并网量")}),f({name:t.getLanguageStr("word502","当日购电量")}),o({name:t.getLanguageStr("word1725","当日辐照量")}),l({name:t.getLanguageStr("word1726","当日PR")}),i({name:t.getLanguageStr("word1731","当日温度")},this.preference.tempUnit)];break;case"OTHER_ROOF-BATTERY_BACKUP":b=[s({name:t.getLanguageStr("all428","光伏日发电量")}),a({name:t.getLanguageStr("word1732","当日天气")}),r({name:t.getLanguageStr("word1882","当日满发小时")}),h({name:t.getLanguageStr("word527","当日用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word501","当日并网量")}),f({name:t.getLanguageStr("word502","当日购电量")}),S({name:t.getLanguageStr("word548","当日充电量")}),I({name:t.getLanguageStr("word549","当日放电量")}),o({name:t.getLanguageStr("word1725","当日辐照量")}),l({name:t.getLanguageStr("word1726","当日PR")}),i({name:t.getLanguageStr("word1731","当日温度")},this.preference.tempUnit)];break;default:break}b.forEach(function(t){t.data=new Array(L)})}"childDetail"==this.fromChild&&(b=[{name:(0,w.cx)("all428","光伏日发电量"),unit:"kWh",type:"generationValue",selected:!0,isBeingSelected:!0,default:!0,data:new Array(L)},{name:(0,w.cx)("word1882","当日满发小时"),type:"fullPowerHoursDay",selected:!0,isBeingSelected:!0,default:!0,unit:"h",data:new Array(L)}]),this.chartList=b,this._chartMonth()}else if(2==this.ActiveIndex){var T=[{name:(0,w.cx)("all429","光伏月发电量"),unit:"kWh",type:"generationValue",selected:!0,isBeingSelected:!0,default:!0,data:new Array(12)},{name:(0,w.cx)("word1728","当月满发小时"),unit:"h",type:"fullPowerHoursDay",selected:!1,isBeingSelected:!1,default:!1,data:new Array(12)},{name:(0,w.cx)("word1729","当月辐照量"),unit:"kWh/㎡",type:"irradiate",selected:!1,isBeingSelected:!1,default:!1,data:new Array(12)},{name:(0,w.cx)("plant_detail7","当月理论发电量"),unit:"kWh",type:"theoreticalGeneration",selected:!1,isBeingSelected:!1,default:!1,onlySolarman:!0,data:new Array(12)},{name:(0,w.cx)("word1730","当月PR"),unit:"%",type:"pr",selected:!1,isBeingSelected:!1,default:!1,data:new Array(12)},{name:(0,w.cx)("plant_detail10","当月CPR"),unit:"%",type:"cpr",selected:!1,isBeingSelected:!1,default:!1,onlySolarman:!0,data:new Array(12)}];if("light"===this.StationType){switch(this.stationTypeAndGridType){case"HOUSE_ROOF-DISTRIBUTED_FULLY/CENTRALIZED_FULLY":T=[s({name:t.getLanguageStr("all429","光伏月发电量")}),r({name:t.getLanguageStr("word1728","当月满发小时")})];break;case"HOUSE_ROOF-EXCESS":T=[s({name:t.getLanguageStr("all429","光伏月发电量")}),r({name:t.getLanguageStr("word1728","当月满发小时")}),h({name:t.getLanguageStr("word528","当月用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word503","当月并网量")}),f({name:t.getLanguageStr("word504","当月购电量")})];break;case"HOUSE_ROOF-BATTERY_BACKUP":T=[s({name:t.getLanguageStr("all429","光伏月发电量")}),r({name:t.getLanguageStr("word1728","当月满发小时")}),h({name:t.getLanguageStr("word528","当月用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word503","当月并网量")}),f({name:t.getLanguageStr("word504","当月购电量")}),S({name:t.getLanguageStr("word550","当月充电量")}),I({name:t.getLanguageStr("word551","当月放电量")})];break;case"OTHER_ROOF-EXCESS":T=[s({name:t.getLanguageStr("all429","光伏月发电量")}),h({name:t.getLanguageStr("word528","当月用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word503","当月并网量")}),f({name:t.getLanguageStr("word504","当月购电量")}),r({name:t.getLanguageStr("word1728","当月满发小时")}),o({name:t.getLanguageStr("word1729","当月辐照量")}),l({name:t.getLanguageStr("word1730","当月PR")})];break;case"OTHER_ROOF-BATTERY_BACKUP":T=[s({name:t.getLanguageStr("all429","光伏月发电量")}),h({name:t.getLanguageStr("word528","当月用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word503","当月并网量")}),f({name:t.getLanguageStr("word504","当月购电量")}),S({name:t.getLanguageStr("word550","当月充电量")}),I({name:t.getLanguageStr("word551","当月放电量")}),r({name:t.getLanguageStr("word1728","当月满发小时")}),o({name:t.getLanguageStr("word1729","当月辐照量")}),l({name:t.getLanguageStr("word1730","当月PR")})];break;default:break}T.forEach(function(t){t.data=new Array(12)})}"childDetail"==this.fromChild&&(T=[{name:(0,w.cx)("all429","光伏月发电量"),unit:"kWh",type:"generationValue",selected:!0,isBeingSelected:!0,default:!0,data:new Array(12)},{name:(0,w.cx)("word1728","当月满发小时"),unit:"h",type:"fullPowerHoursDay",selected:!0,isBeingSelected:!0,default:!0,data:new Array(12)}]),this.chartList=T,this._chartYear()}else if(3==this.ActiveIndex){var A=0,E=[{name:(0,w.cx)("all430","光伏年发电量"),unit:"kWh",type:"generationValue",selected:!0,isBeingSelected:!0,default:!0,data:new Array(A)},{name:(0,w.cx)("word1734","当年满发小时"),unit:"h",type:"fullPowerHoursDay",selected:!1,isBeingSelected:!1,default:!1,data:new Array(A)},{name:(0,w.cx)("word1736","当年辐照量"),unit:"kWh/㎡",type:"irradiate",selected:!1,default:!1,data:new Array(A)},{name:(0,w.cx)("plant_detail8","当年理论发电量"),unit:"kWh",type:"theoreticalGeneration",selected:!1,isBeingSelected:!1,default:!1,onlySolarman:!0,data:new Array(A)},{name:(0,w.cx)("word1737","当年PR"),unit:"%",type:"pr",selected:!1,default:!1,data:new Array(A)}];if("light"===this.StationType){switch(this.stationTypeAndGridType){case"HOUSE_ROOF-DISTRIBUTED_FULLY/CENTRALIZED_FULLY":E=[s({name:t.getLanguageStr("all430","光伏年发电量")}),r({name:t.getLanguageStr("word1734","当年满发小时")})];break;case"HOUSE_ROOF-EXCESS":E=[s({name:t.getLanguageStr("all430","光伏年发电量")}),r({name:t.getLanguageStr("word1734","当年满发小时")}),h({name:t.getLanguageStr("word529","当年用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word505","当年并网量")}),f({name:t.getLanguageStr("word506","当年购电量")})];break;case"HOUSE_ROOF-BATTERY_BACKUP":E=[s({name:t.getLanguageStr("all430","光伏年发电量")}),r({name:t.getLanguageStr("word1734","当年满发小时")}),h({name:t.getLanguageStr("word529","当年用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word505","当年并网量")}),f({name:t.getLanguageStr("word506","当年购电量")}),S({name:t.getLanguageStr("word552","当年充电量")}),I({name:t.getLanguageStr("word553","当年放电量")})];break;case"OTHER_ROOF-EXCESS":E=[s({name:t.getLanguageStr("all430","光伏年发电量")}),h({name:t.getLanguageStr("word529","当年用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word505","当年并网量")}),f({name:t.getLanguageStr("word506","当年购电量")}),r({name:t.getLanguageStr("word1734","当年满发小时")}),o({name:t.getLanguageStr("word1736","当年辐照量")}),l({name:t.getLanguageStr("word1737","当年PR")})];break;case"OTHER_ROOF-BATTERY_BACKUP":E=[s({name:t.getLanguageStr("all430","光伏年发电量")}),h({name:t.getLanguageStr("word529","当年用电量"),selected:!1,isBeingSelected:!1,default:!1}),g({name:t.getLanguageStr("word505","当年并网量")}),f({name:t.getLanguageStr("word506","当年购电量")}),S({name:t.getLanguageStr("word552","当年充电量")}),I({name:t.getLanguageStr("word553","当年放电量")}),r({name:t.getLanguageStr("word1734","当年满发小时")}),o({name:t.getLanguageStr("word1736","当年辐照量")}),l({name:t.getLanguageStr("word1737","当年PR")})];break;default:break}E.forEach(function(t){t.data=new Array(A)})}"childDetail"==this.fromChild&&(E=[{name:(0,w.cx)("all430","光伏年发电量"),unit:"kWh",type:"generationValue",selected:!0,isBeingSelected:!0,default:!0,data:new Array(A)},{name:(0,w.cx)("word1734","当年满发小时"),unit:"h",type:"fullPowerHoursDay",selected:!0,isBeingSelected:!0,default:!0,data:new Array(A)}]),this.chartList=E,this._totalData()}},powerDay:function(){var t,e=this,a={year:this.time.getFullYear(),month:this.time.getMonth()+1,day:this.time.getDate()};return t=0==this.level?this.stationId:this.systemId,new Promise(function(i,n){"BATTERY_BACKUP"===e.basicInfo.gridInterconnectionType?T.XD(t,a).then(function(t){i(t)},function(t){n(t)}):T.u0(t,a).then(function(t){i(t)},function(t){n(t)})})},powerDayTemp:function(){var t={year:this.time.getFullYear(),month:this.time.getMonth()+1,day:this.time.getDate(),regionNationId:this.getIn(this.basicInfo,["regi
2on","nationId"]),regionLevel1:this.getIn(this.basicInfo,["region","level1"]),regionLevel2:this.getIn(this.basicInfo,["region","level2"]),timezone:this.getIn(this.basicInfo,["region","timezone"])};return new Promise(function(e,a){T.bJ(t).then(function(t){e(t)},function(t){a(t)})})},_getDayData:function(){var t=this,e=this;if(this.detailData.records.length>0){var a=[];a=A.cloneDeep(this.chartList).filter(function(t){return 1==t.selected});var i=function(e){a[e].data=[],"weatherPic"==a[e].type?t.tempData.forEach(function(i){a[e].data.push([1e3*i.datetime+((0,y.W$)(i.timeZoneOffset)?1e3*i.timeZoneOffset:t.timezoneMS()),null,i[a[e].type]])}):"temperature"==a[e].type?t.tempData.length&&t.tempData.forEach(function(i){a[e].data.push([1e3*i.datetime+((0,y.W$)(i.timeZoneOffset)?1e3*i.timeZoneOffset:t.timezoneMS()),i.temp])}):t.detailData.records.length&&(t.detailData.records.forEach(function(i){"irradiateIntensity"==a[e].type?null!=i[a[e].type]&&a[e].data.push([1e3*i.dateTime+((0,y.W$)(i.timeZoneOffset)?1e3*i.timeZoneOffset:t.timezoneMS()),i[a[e].type]]
2):a[e].data.push([1e3*i.dateTime+((0,y.W$)(i.timeZoneOffset)?1e3*i.timeZoneOffset:t.timezoneMS()),i[a[e].type]])}),a[e].data=r.sortData(a[e].data,{byKey:0}))};for(var n in a)i(n);var s=(0,r.getTimeZoneOffset)(e.basicInfo.region.timezone,!0),o=60*dayjs().utcOffset()*1e3,l=dayjs(e.time).startOf("day").valueOf(),d=dayjs(e.time).endOf("day").valueOf(),c=Number(l)+o-s,u=Number(d)+o-s,h=A.cloneDeep(a);if(e.ChartData=h.map(function(t){return t.data=t.data.filter(function(t){return Number(c)<=t[0]-e.timezoneMS()&&t[0]-e.timezoneMS()<=Number(u)}),t}),e.ChartData.every(function(t){return 0===t.data.length}))return void(this.ChartData=[]);var g=[];for(var f in this.ChartData)this.ChartData[f].unit?(g.indexOf(this.ChartData[f].unit)<0&&g.push(this.ChartData[f].unit),this.ChartData[f].yAxis=g.indexOf(this.ChartData[f].unit)):this.ChartData[f].yAxis=0,delete this.ChartData[f]["default"],delete this.ChartData[f].selected,delete this.ChartData[f].type;0==g.length&&(g=[""]),this.defChartMonthOption=function(){var t={yTitle:g,opposite:!0};return t}()}else this.ChartData=[]},resetChart:function(){this.detailData={},this.tempData=[],this.chartData=[]},_chartDay:function(){var t=this;this.$refs.chartLine.showLoading();var e=[];e="light"==this.StationType&&this.basicInfo.region?[this.powerDay(),this.powerDayTemp()]:[this.powerDay()],Promise.all(e).then(function(a){var i=a[0].records;t.exportExcelObj={records:i,weatherList:a[1]},2==e.length&&a[1]&&a[1].length>0&&(a[1]=a[1].map(function(e){return e.temp=t.tempChange(t.preference.tempUnit,e.temp)[1],e})),"day"==t.timeChoose[t.ActiveIndex].type&&(t.resetChart(),t.$refs.chartLine&&t.$refs.chartLine.hideLoading(),t.isChart=!1,t.detailData=a[0],2==e.length?(t.tempData=a[1],0==a[0].records.length&&0==a[1].length?t.ChartData=[]:t._getDayData()):0==a[0].records.length?t.ChartData=[]:t._getDayData())},function(){t.$refs.chartLine&&t.$refs.chartLine.hideLoading(),t.isChart=!1})},powerMonth:function(){var t,e=this,a={year:this.time.getFullYear(),month:this.time.getMonth()+1};return t=0==this.level?this.stationId:this.systemId,new Promise(function(i,n){"BATTERY_BACKUP"===e.basicInfo.gridInterconnectionType?T.eA(t,a).then(function(t){i(t)},function(t){n(t)}):T.YH(t,a).then(function(t){i(t)},function(t){n(t)})})},powerMonthTemp:function(){var t={year:this.time.getFullYear(),month:this.time.getMonth()+1,regionNationId:this.basicInfo.region.nationId,regionLevel1:this.basicInfo.region.level1,regionLevel2:this.basicInfo.region.level2,timezone:this.basicInfo.region.timezone};return new Promise(function(e,a){T.Ri(t).then(function(t){e(t)},function(t){a(t)})})},_getMonthData:function(){var t=this;if(this.detailData.records.length>0){var e=[];e=A.cloneDeep(this.chartList).filter(function(t){return 1==t.selected});var a=this._getCountDays(),i=function(i){e[i].data=new Array(a),E.each(e[i].data,function(t){e[i].data[t]=null}),"weatherPic"==e[i].type?t.tempData.forEach(function(a){var n=r.timeFormat(a.datetime,"utc","%m",{offset:t.option.timeZoneCode}),s=r.timeFormat(t.time,"utc","MM",{offset:t.timeZoneCode});n===s&&(e[i].data[Number(r.timeFormat(a.datetime,"utc","%d",{offset:t.option.timeZoneCode}))-1]=a.weatherPic)}):"temperature"==e[i].type?t.tempData.length&&t.tempData.forEach(function(a){e[i].data[Number(r.timeFormat(a.datetime,"utc","%d",{offset:t.option.timeZoneCode}))-1]=Number(a.temp)}):"pr"==e[i].type||"cpr"==e[i].type?t.detailData.records.map(function(t){null!=t[e[i].type]&&(e[i].data[parseInt(t.day)-1]=100*Number(t[e[i].type]))}):t.detailData.records.map(function(t){null!=t[e[i].type]&&(e[i].data[parseInt(t.day)-1]=Number(t[e[i].type]))})};for(var n in e)i(n);this.ChartData=e;var s=[];for(var o in this.ChartData)this.ChartData[o].unit&&(s.indexOf(this.ChartData[o].unit)<0&&s.push(this.ChartData[o].unit),this.ChartData[o].yAxis=s.indexOf(this.ChartData[o].unit)),delete this.ChartData[o]["default"],delete this.ChartData[o].selected,delete this.ChartData[o].type;0==s.length&&(s=[""]),this.defChartMonthOption=function(){var t={yTitle:s,timeType:"month",opposite:!0,xCategories:new Array(a)};return E.each(t.xCategories,function(e){t.xCategories[e]=e+1}),t}()}else this.ChartData=[]},_chartMonth:function(){var t=this;this.$refs.chartColumn.showLoading();var e=[];e="light"==this.StationType?[this.powerMonth(),this.powerMonthTemp()]:[this.powerMonth()],Promise.all(e).then(function(a){var i=a[0].records;t.exportExcelObj={records:i,weatherList:a[1]}
2,"month"==t.timeChoose[t.ActiveIndex].type&&(t.resetChart(),t.$refs.chartLine&&t.$refs.chartColumn.hideLoading(),2==e.length&&a[1]&&a[1].length>0&&(a[1]=a[1].map(function(e){return e.temp=t.tempChange(t.preference.tempUnit,e.temp)[1],e})),t.isChart=!1,t.detailData=a[0],2==e.length?(t.tempData=a[1],0==a[0].records.length&&0==a[1].length?t.ChartData=[]:t._getMonthData()):0==a[0].records.length?t.ChartData=[]:t._getMonthData())},function(){t.$refs.chartLine&&t.$refs.chartColumn.hideLoading(),t.isChart=!1})},_getYearData:function(){var t=this;if(this.detailData.records.length>0){var e=[];e=A.cloneDeep(this.chartList).filter(function(t){return 1==t.selected});var a=function(a){e[a].data=new Array(12),E.each(e[a].data,function(t){e[a].data[t]=null}),"pr"==e[a].type||"cpr"==e[a].type?t.detailData.records.map(function(t){null!=t[e[a].type]&&(e[a].data[parseInt(t.month)-1]=100*Number(t[e[a].type]))}):t.detailData.records.map(function(t){null!=t[e[a].type]&&(e[a].data[parseInt(t.month)-1]=Number(t[e[a].type]))})};for(var i in e)a(i);this.ChartData=e;var n=[];for(var s in this.ChartData)this.ChartData[s].unit&&(n.indexOf(this.ChartData[s].unit)<0&&n.push(this.ChartData[s].unit),this.ChartData[s].yAxis=n.indexOf(this.ChartData[s].unit)),delete this.ChartData[s]["default"],delete this.ChartData[s].selected,delete this.ChartData[s].type;this.defChartMonthOption=function(){var t={yTitle:n,timeType:"year",opposite:!0,xCategories:new Array(12)};return E.each(t.xCategories,function(e){t.xCategories[e]=e+1}),t}()}else this.ChartData=[]},_chartYear:function(){var t,e=this;this.$refs.chartColumn.showLoading();var a={year:this.time.getFullYear()};t=0==this.level?this.stationId:this.systemId;var i=null;"BATTERY_BACKUP"===this.basicInfo.gridInterconnectionType?(i=T.vd,T.Bo()):(i=T.X1,T.Bo()),i(t,a).then(function(t){var a=t.records;if(e.exportExcelObj={records:a,weatherList:[]},"year"==e.timeChoose[e.ActiveIndex].type){if(e.resetChart(),e.isChart=!1,!t)return;e.$refs.chartLine&&e.$refs.chartColumn.hideLoading(),e.detailData=t,0==e.detailData.records.length?e.ChartData=[]:e._getYearData()}},function(){e.$refs.chartLine&&e.$refs.chartColumn.hideLoading(),e.isChart=!1})},_getTotalData:function(){var t=this;if(this.detailData.records.length>0){var e=[];for(var a in this.detailData.records)e.push(this.detailData.records[a].year);e=r.sortData(e)[0];var i=r.timeFormat(new Date,"inc","%Y"),n=Number(i)-Number(e)+1;this.rangeDate=[new Date(String(e)),new Date(i)];var s=[];s=A.cloneDeep(this.chartList).filter(function(t){return 1==t.selected});var o=function(a){s[a].data=new Array(n),E.each(s[a].data,function(t){s[a].data[t]=null}),"pr"==s[a].type?t.detailData.records.map(function(t){null!=t[s[a].type]?s[a].data[parseInt(t.year)-Number(e)]=100*Number(t[s[a].type]):s[a].data[parseInt(t.year)-Number(e)]=t[s[a].type]}):t.detailData.records.map(function(t){null!=t[s[a].type]?s[a].data[parseInt(t.year)-Number(e)]=Number(t[s[a].type]):s[a].data[parseInt(t.year)-Number(e)]=t[s[a].type]})};for(var l in s)o(l);this.ChartData=s;var d=[];for(var c in this.ChartData)this.ChartData[c].unit&&(d.indexOf(this.ChartData[c].unit)<0&&d.push(this.ChartData[c].unit),this.ChartData[c].yAxis=d.indexOf(this.ChartData[c].unit)),delete this.ChartData[c]["default"],delete this.ChartData[c].selected,delete this.ChartData[c].type;this.defChartMonthOption=function(){var t={yTitle:d,timeType:"all",opposite:!0,xCategories:new Array(n)};return E.each(t.xCategories,function(a){t.xCategories[a]=a+Number(e)}),t}()}else this.ChartData=[]},_totalData:function(){var t,e=this;this.$refs.chartColumn.showLoading();var a={startYear:2e3,endYear:this.time.getFullYear()};t=0==this.level?this.stationId:this.systemId;var i=null;"BATTERY_BACKUP"===this.basicInfo.gridInterconnectionType?(i=T.WC,T.Bo()):(i=T.aW,T.Bo()),i(t,a).then(function(t){var a=t.records;if(e.exportExcelObj={records:a,weatherList:[]},"all"==e.timeChoose[e.ActiveIndex].type){if(e.ChartData=[],e.$refs.chartLine&&e.$refs.chartColumn.hideLoading(),e.isChart=!1,!t)return;if(e.detailData=t,0==e.detailData.records.length)e.ChartData=[];else{var i=[];for(var n in e.detailData.records)i.push(e.detailData.records[n].year);i=r.sortData(i)[0];var s=r.timeFormat(new Date,"inc","%Y");e.rangeDate=[new Date(String(i)),new Date(s)],e._getTotalData()}}},function(){e.$refs.chartLine&&e.$refs.chartColumn.hideLoading(),e.isChart=!1})},_timePicker:function(t,e){var a=this;this.$refs.DeviceDetailParam.showParam=!1,this.ActiveIndex=e,this.getDatepickerCtrl(),this.$nextTick(function(){a._showChart()})},exportExcel:function(){0==this.ActiveIndex&&(statistic("A79-导出","A7902-历史-日导出"),0==this.level?this.exportJson2ExcelByDay():this.exportJson2ExcelByChildSysDay()),1==this.ActiveIndex&&(statistic("A79-导出","A7903-历史-月导出"),0==this.level?this.exportJson2ExcelByMonth():this.exportJson2ExcelByChildSysMonth()),2==this.ActiveIndex&&(statistic("A79-导出","A7904-历史-年导出"),0==this.level?this.exportJson2ExcelByYear():this.exportJson2ExcelByChildSysYear()),3==this.ActiveIndex&&(statistic("A79-导出","A7905-历史-总导出"),0==this.level?this.exportJson2ExcelByTotal():this.exportJson2ExcelByChildSysTotal())},exportJson2ExcelByDay:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("all426",["光伏发电功率"])+"(kW)"],a=["dateTime","generationPower"],i=this.exportExcelObj,n=i.records,s=i.weatherList;
2s.forEach(function(e){t.$set(e,"dateTime",e.datetime)}),n=[].concat((0,v.A)(n),(0,v.A)(s));var o=A.sortBy(n,function(t){return t.dateTime}).map(function(e){return{dateTime:r.timeFormat(e.dateTime,"utc","YYYY/MM/DD HH:mm",{offset:t.timeZoneCode}),generationPower:null!=e.generationPower?t.floatFix(e.generationPower/1e3,2):null}}),l=(0,S.IB)(a,o);(0,S.eC)({header:e,data:l,filename:this.$t("word204",["电站"])+""+this.$t("word734",["详情"])+"-"+this.$t("user106",["历史"]),sheetName:r.timeFormat(this.time,"utc","YYYY-MM-DD",{offset:this.timeZoneCode})})},exportJson2ExcelByChildSysDay:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("all426",["光伏发电功率"])+"(kW)"],a=["dateTime","generationPower"],i=this.exportExcelObj,n=i.records,s=i.weatherList;s.forEach(function(e){t.$set(e,"dateTime",e.datetime)}),n=[].concat((0,v.A)(n),(0,v.A)(s));var o=A.sortBy(n,function(t){return t.dateTime}).map(function(e){return{dateTime:r.timeFormat(e.dateTime,"utc","YYYY/MM/DD HH:mm",{offset:t.timeZoneCode}),generationPower:null!=e.generationPower?t.floatFix(e.generationPower/1e3,2):null}}),l=(0,S.IB)(a,o);(0,S.eC)({header:e,data:l,filename:this.$t("word204",["电站"])+""+this.$t("word1487",["子系统"])+"-"+this.$t("word1480",["发电历史"]),sheetName:r.timeFormat(this.time,"utc","YYYY-MM-DD",{offset:this.timeZoneCode})})},exportJson2ExcelByMonth:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("all428",["光伏日发电量"])+"(kWh)",this.$t("word1882",["当日满发小时"])+"(h)"],a=["dateTime","generationValue","fullPowerHoursDay"],i=this.exportExcelObj,n=i.records,o=i.weatherList;
2n.forEach(function(e){t.$set(e,"showExcelLeftTitle","".concat(e.year,"/").concat((0,S._3)(e.month),"/").concat((0,S._3)(e.day)))}),o.forEach(function(e){t.$set(e,"showExcelLeftTitle",r.timeFormat(e.datetime,"utc","YYYY/MM/DD",{offset:t.timeZoneCode}))}),n=[].concat((0,v.A)(n),(0,v.A)(o));var l=A.groupBy(n,"showExcelLeftTitle");n=Object.values(l).map(function(t){return t.reduce(function(t,e){return(0,s.A)((0,s.A)({},t),e)},{})});var d=A.sortBy(n,function(t){return t.showExcelLeftTitle}).map(function(e){return{dateTime:e.showExcelLeftTitle,generationValue:null!=e.generationValue?t.floatFix(e.generationValue,2):null,fullPowerHoursDay:null!=e.fullPowerHoursDay?t.floatFix(e.fullPowerHoursDay,2,null,!1):null}}),c=(0,S.IB)(a,d);(0,S.eC)({header:e,data:c,filename:this.$t("word204",["电站"])+""+this.$t("word734",["详情"])+"-"+this.$t("user106",["历史"]),sheetName:r.timeFormat(this.time,"utc","YYYY-MM",{offset:this.timeZoneCode})})},exportJson2ExcelByChildSysMonth:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("all428",["光伏日发电量"])+"(kWh)",this.$t("word1882",["当日满发小时"])+"(h)"],a=["dateTime","generationValue","fullPowerHoursDay"],i=this.exportExcelObj,n=i.records,o=i.weatherList;
2n.forEach(function(e){t.$set(e,"showExcelLeftTitle","".concat(e.year,"/").concat((0,S._3)(e.month),"/").concat((0,S._3)(e.day)))}),o.forEach(function(e){t.$set(e,"showExcelLeftTitle",r.timeFormat(e.datetime,"utc","YYYY/MM/DD",{offset:t.timeZoneCode}))}),n=[].concat((0,v.A)(n),(0,v.A)(o));var l=A.groupBy(n,"showExcelLeftTitle");n=Object.values(l).map(function(t){return t.reduce(function(t,e){return(0,s.A)((0,s.A)({},t),e)},{})});var d=A.sortBy(n,function(t){return t.showExcelLeftTitle}).map(function(e){return{dateTime:e.showExcelLeftTitle,generationValue:null!=e.generationValue?t.floatFix(e.generationValue,2):null,fullPowerHoursDay:null!=e.fullPowerHoursDay?t.floatFix(e.fullPowerHoursDay,2,null,!1):null}}),c=(0,S.IB)(a,d);(0,S.eC)({header:e,data:c,filename:this.$t("word204",["电站"])+""+this.$t("word1487",["子系统"])+"-"+this.$t("word1480",["发电历史"]),sheetName:r.timeFormat(this.time,"utc","YYYY-MM",{offset:this.timeZoneCode})})},exportJson2ExcelByYear:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("all429",["光伏月发电量"])+"(kWh)",this.$t("word528",["当月用电量"])+"(kWh)",this.$t("word503",["当月并网量"])+"(kWh)",this.$t("word504",["当月购电量"])+"(kWh)",this.$t("word550",["当月充电量"])+"(kWh)",this.$t("word551",["当月放电量"])+"(kWh)",this.$t("word1728",["当月满发小时"])+"(h)",this.$t("word1729",["当月辐照量"])+"(kWh/㎡)",this.$t("word1730",["当月PR"])+"(%)"],a=["dateTime","generationValue","useValue","gridValue","buyValue","chargeValue","dischargeValue","fullPowerHoursDay","irradiate","pr"],i=this.exportExcelObj.records;i.forEach(function(e){t.$set(e,"showExcelLeftTitle","".concat(e.year,"/").concat((0,S._3)(e.month)))});var n=A.sortBy(i,function(t){return t.showExcelLeftTitle}).map(function(e){return{dateTime:e.showExcelLeftTitle,generationValue:null!=e.generationValue?t.floatFix(e.generationValue,2):null,useValue:null!=e.useValue?t.floatFix(e.useValue,2):null,gridValue:null!=e.gridValue?t.floatFix(e.gridValue,2):null,buyValue:null!=e.buyValue?t.floatFix(e.buyValue,2):null,chargeValue:null!=e.chargeValue?t.floatFix(e.chargeValue,2):null,dischargeValue:null!=e.dischargeValue?t.floatFix(e.dischargeValue,2):null,fullPowerHoursDay:null!=e.fullPowerHoursDay?t.floatFix(e.fullPowerHoursDay,2,null,!1):null,irradiate:null!=e.irradiate?e.irradiate:null,pr:null!=e.pr?t.floatFix(100*e.pr,2,"",!1):null}}),s=(0,S.IB)(a,n);(0,S.eC)({header:e,data:s,filename:this.$t("word204",["电站"])+""+this.$t("word734",["详情"])+"-"+this.$t("user106",["历史"]),sheetName:r.timeFormat(this.time,"utc","YYYY",{offset:this.timeZoneCode})})},exportJson2ExcelByChildSysYear:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("all429",["光伏月发电量"])+"(kWh)",this.$t("word1728",["当月满发小时"])+"(h)"],a=["dateTime","generationValue","fullPowerHoursDay"],i=this.exportExcelObj.records;i.forEach(function(e){t.$set(e,"showExcelLeftTitle","".concat(e.year,"/").concat((0,S._3)(e.month)))});var n=A.sortBy(i,function(t){return t.showExcelLeftTitle}).map(function(e){return{dateTime:e.showExcelLeftTitle,generationValue:null!=e.generationValue?t.floatFix(e.generationValue,2):null,fullPowerHoursDay:null!=e.fullPowerHoursDay?t.floatFix(e.fullPowerHoursDay,2,null,!1):null}}),s=(0,S.IB)(a,n);(0,S.eC)({header:e,data:s,filename:this.$t("word204",["电站"])+""+this.$t("word1487",["子系统"])+"-"+this.$t("word1480",["发电历史"]),sheetName:r.timeFormat(this.time,"utc","YYYY",{offset:this.timeZoneCode})})},exportJson2ExcelByTotal:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("all430",["光伏年发电量"])+"(kWh)",this.$t("word529",["当年用电量"])+"(kWh)",this.$t("word505",["当年并网量"])+"(kWh)",this.$t("word506",["当年购电量"])+"(kWh)",this.$t("word552",["当年充电量"])+"(kWh)",this.$t("word553",["当年放电量"])+"(kWh)",this.$t("word1734",["当年满发小时"])+"(h)",this.$t("word1736",["当年辐照量"])+"(kWh/㎡)",this.$t("word1737",["当年PR"])+"ï¼
2ˆ%)"],a=["dateTime","generationValue","useValue","gridValue","buyValue","chargeValue","dischargeValue","fullPowerHoursDay","irradiate","pr"],i=this.exportExcelObj.records;i.forEach(function(e){t.$set(e,"showExcelLeftTitle","".concat(e.year))});var n=i.map(function(e){return{dateTime:e.showExcelLeftTitle,generationValue:null!=e.generationValue?t.floatFix(e.generationValue,2):null,useValue:null!=e.useValue?t.floatFix(e.useValue,2):null,gridValue:null!=e.gridValue?t.floatFix(e.gridValue,2):null,buyValue:null!=e.buyValue?t.floatFix(e.buyValue,2):null,chargeValue:null!=e.chargeValue?t.floatFix(e.chargeValue,2):null,dischargeValue:null!=e.dischargeValue?t.floatFix(e.dischargeValue,2):null,fullPowerHoursDay:null!=e.fullPowerHoursDay?t.floatFix(e.fullPowerHoursDay,2):null,irradiate:null!=e.irradiate?e.irradiate:null,pr:null!=e.pr?t.floatFix(100*e.pr,2,"",!1):null}}),s=(0,S.IB)(a,n);(0,S.eC)({header:e,data:s,filename:this.$t("word204",["电站"])+""+this.$t("word734",["详情"])+"-"+this.$t("user106",["历史"]),sheetName:r.timeFormat(this.rangeDate[0],"utc","YYYY",{offset:this.timeZoneCode})+"-"+r.timeFormat(this.rangeDate[1],"utc","YYYY",{offset:this.timeZoneCode})})},exportJson2ExcelByChildSysTotal:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("all430",["光伏年发电量"])+"(kWh)",this.$t("word1734",["当年满发小时"])+"(h)"],a=["dateTime","generationValue","fullPowerHoursDay"],i=this.exportExcelObj.records;i.forEach(function(e){t.$set(e,"showExcelLeftTitle","".concat(e.year))});var n=i.map(function(e){return{dateTime:e.showExcelLeftTitle,generationValue:null!=e.generationValue?t.floatFix(e.generationValue,2):null,fullPowerHoursDay:null!=e.fullPowerHoursDay?t.floatFix(e.fullPowerHoursDay,2):null}}),s=(0,S.IB)(a,n);(0,S.eC)({header:e,data:s,filename:this.$t("word204",["电站"])+""+this.$t("word1487",["子系统"])+"-"+this.$t("word1480",["发电历史"]),sheetName:r.timeFormat(this.rangeDate[0],"utc","YYYY",{offset:this.timeZoneCode})+"-"+r.timeFormat(this.rangeDate[1],"utc","YYYY")})}}},k=B;a(16525);var O=a(845),P=(0,O.A)(k,m,p,!1,null,"d8022734",null);const $=P.exports;var F=a(83477),R=a(82055),Y=a(91322),M=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("IgPanel",{staticClass:"cb",attrs:{title:t.getLanguageStr("word1698","用电历史"),loading:!1,name:"consumptionHistory"}},[a("template",{slot:"tool"},[a("div",{staticClass:"classGroup"},t._l(t.timeChoose,function(e,i){return a("button",{key:i,class:{active:t.ActiveIndex==i},attrs:{type:"button"},on:{click:function(a){return t._timePicker(e,i)}}},[t._v(" "+t._s(e.datepicker)+" ")])}),0),a("div",{staticClass:"cField tra-fast_E vaM_E posR",on:{mouseleave:t.leave}},[a("button",{staticClass:"sizeS bdSub pl1x pr1x boxR-light hover-primary",attrs:{title:t.getLanguageStr("word566","参数选择")},on:{mouseenter:t.paramChooiceShow}},[t._v(" "+t._s(t.getLanguageStr("word566","参数选择"))+" ")]),a("DeviceDetailParam",{ref:"DeviceDetailParam",staticClass:"cField",on:{selectArray:t.updateShowParamArray,beingParamArray:t.beingParamArray}}),a("button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],staticClass:"functionBtn sizeS ml1x",attrs:{type:"button"},on:{click:t.exportExcel}},[t._v(" "+t._s(t.$t("report22",["导出"]))+" ")])],1),a("div",{staticClass:"cField tra-fast_E vaM_E hover-cPrimary_E"},[a("IgIcon",{staticClass:"w2x h2x curP",class:{disable:"all"===t.timeChoose[t.ActiveIndex].type},attrs:{type:"font",name:"arrow-l"},on:{click:function(e){return t.dateChange("perv")}}}),"all"===t.timeChoose[t.ActiveIndex].type?a("IgDatePicker",{staticClass:"sizeS",attrs:{format:"YYYY",local:t.local,disabled:""},model:{value:t.rangeDate,callback:function(e){t.rangeDate=e},expression:"rangeDate"}}):a("IgDatePicker",{ref:"date",staticClass:"sizeS",attrs:{format:t.timeChoose[t.ActiveIndex].format,local:t.local,"disabled-date":t.disabledDate},on:{input:function(e){return t._showChart()}},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}}),a("IgIcon",{staticClass:"w2x h2x curP",class:{disable:"all"===t.timeCho
2ose[t.ActiveIndex].type||t.timeGetTime==t.todayGetTime},attrs:{type:"font",name:"arrow-r"},on:{click:function(e){return t.dateChange("next")}}})],1)]),a("div",{staticClass:"emptyToken_EE posR"},[t.isChart?a("IgLoading",{staticClass:"chartLoading"}):t._e(),t.isChart||0!=t.ActiveIndex?t._e():a("div",{staticClass:"taC dpIB_E mr1x_E"},[a("div",[a("span",{attrs:{title:t.getLanguageStr("word527","当日用电量")}},[t._v(t._s(t.getLanguageStr("word527","当日用电量"))+":")]),a("span",{attrs:{title:t.convertData(t.getIn(t.detailData,["statistics","useValue"]),2,"k","Wh")[0]}},[t._v(t._s(t.convertData(t.getIn(t.detailData,["statistics","useValue"]),2,"k","Wh")[0]))])])]),t.isChart||1!=t.ActiveIndex?t._e():a("div",{staticClass:"taC dpIB_E mr1x_E"},[a("div",[a("span",{attrs:{title:t.getLanguageStr("word528","当月用电量")}},[t._v(t._s(t.getLanguageStr("word528","当月用电量"))+":")]),a("span",{attrs:{title:t.convertData(t.getIn(t.detailData,["statistics","useValue"]),2,"k","Wh")[0]}},[t._v(t._s(t.convertData(t.getIn(t.detailData,["statistics","useValue"]),2,"k","Wh")[0]))])])]),t.isChart||2!=t.ActiveIndex?t._e():a("div",{staticClass:"taC dpIB_E mr1x_E"},[a("div",[a("span",{attrs:{title:t.getLanguageStr("word529","当年用电量")}},[t._v(t._s(t.getLanguageStr("word529","当年用电量"))+":")]),a("span",{attrs:{title:t.convertData(t.getIn(t.detailData,["statistics","useValue"]),2,"k","Wh")[0]}},[t._v(t._s(t.convertData(t.getIn(t.detailData,["statistics","useValue"]),2,"k","Wh")[0]))])])]),t.isChart||3!=t.ActiveIndex?t._e():a("div",{staticClass:"taC dpIB_E mr1x_E"},[a("div",[a("span",{attrs:{title:t.getLanguageStr("word1049","总用电量")}},[t._v(t._s(t.getLanguageStr("word1049","总用电量"))+":")]),a("span",{attrs:{title:t.convertData(t.getIn(t.detailData,["statistics","useValue"]),2,"k","Wh")[0]}},[t._v(t._s(t.convertData(t.getIn(t.detailData,["statistics","useValue"]),2,"k","Wh")[0]))])])])],1),a("div",{staticClass:"pb1x"},[0==t.ActiveIndex?a("ChartLine",{ref:"chartLine",attrs:{data:t.ChartData,option:t.defChartMonthOption,"chart-class":"h42x"}}):a("ChartColumn",{ref:"chartColumn",staticClass:"h42x",attrs:{data:t.ChartData,option:t.defChartMonthOption,"chart-class":"h42x"}})],1)],2)},W=[],V=a(22224),N=a(71757);const H={name:"ConsumptionHistory",components:{ChartLine:_.A,ChartColumn:L.A,DeviceDetailParam:b.A},props:{collectTime:Object},mixins:[I.A],computed:{timeGetTime:function(){var t=new Date(this.time).getFullYear(),e=new Date(this.time).getMonth()+1,a=new Date(this.time).getDate();return 0==this.ActiveIndex?new Date(t+"/"+e+"/"+a).getTime():1==this.ActiveIndex?new Date(t+"/"+e).getTime():2==this.ActiveIndex?new Date(t).getTime():void 0},todayGetTime:function(){var t=(new Date).getFullYear(),e=(new Date).getMonth()+1,a=(new Date).getDate();return 0==this.ActiveIndex?new Date(t+"/"+e+"/"+a).getTime():1==this.ActiveIndex?new Date(t+"/"+e).getTime():2==this.ActiveIndex?new Date(t).getTime():void 0}},watch:{collectTime:function(t){var e=this;this.basicInfo.region&&this.$nextTick(function(){e.time=new Date(e.timeFormat(e.getFastData("lastUpdateTime",t.lastUpdateTime,e.systemId||e.stationId)?e.getFastData("lastUpdateTime",t.lastUpdateTime,e.systemId||e.stationId):new Date,"utc","%Y/%m/%d",{offset:e.basicInfo.region.timezone}))})},baseInfo:function(t){var e=this;this.$nextTick(function(){e.time=new Date(e.timeFormat(e.getFastData("lastUpdateTime",e.collectTime.lastUpdateTime,e.systemId||e.stationId)?e.getFastData("lastUpdateTime",e.collectTime.lastUpdateTime,e.systemId||e.stationId):new Date,"utc","%Y/%m/%d",{offset:t.region.timezone}))})}},data:function(){return{ActiveIndex:0,local:{},isChart:!0,time:new Date,rangeDate:[new Date("2000"),new Date],timeChoose:[{datepicker:(0,w.cx)("cmd93","日"),format:"YYYY/MM/DD",type:"day"},{datepicker:(0,w.cx)("cmd95","月"),format:"YYYY/MM",type:"month"},{datepicker:(0,w.cx)("cmd96","年"),format:"YYYY",type:"year"},{datepicker:(0,w.cx)("cmd97","总"),format:"YYYY",type:"all"}],defChartMonthOption:{},ChartData:[],detailData:{},chartList:[],stationId:null,systemId:null,level:0,basicInfo:{}}},created:function(){this._getLocal()},methods:{getLanguageStr:w.cx,floatFix:r.floatFix,timeFormat:r.timeFormat,convertData:r.convertData,show:function(t){this.basicInfo=t.basicInfo,this.stationId=t.stationId,this.systemId=t.systemId,this.level=t.level,this.getDatepickerCtrl(),this._showChart()},getDatepickerCtrl:function(){if(this.basicInfo.region){var t=this.timeFormat(this.getFastData("lastUpdateTime",this.collectTime.lastUpdateTime,this.systemId||this.stationId)?this.getFastData("lastUpdateTime",this.collectTime.lastUpdateTime,this.systemId||this.stationId):new Date,"utc","%Y/%m/%d",{offset:this.basicInfo.region.timezone});this.time=new Date(t),this.datepicker_Ctrl_day=t,this.datepicker_Ctrl_month=this.timeFormat(this.time,"utc","%Y/%m/01",{offset:this.basicInfo.region.timezone}),this.datepicker_Ctrl_year=this.timeFormat(this.time,"utc","%Y",{offset:this.basicInfo.region.timezone})}},_getLocal:function(){this.local=(0,C.GB)()},disabledDate:function(t){var e=(new Date).getTime();return e<t},paramChooiceShow:function(){var t=V.cloneDeep(this.chartList);t.forEach(function(t){t.isBeingSelected=t["default"]}),this.$refs.DeviceDetailParam.show(V.cloneDeep(this.chartList),t,!0)},leave:function(){this.paramChooiceActive=!1,this.$refs.DeviceDetailParam.showParam=!1},beingParamArray:function(t){this.chartList=[],this.chartList=t},updateShowParamArray:function(t){this.chartList=[],this.chartList=t,0==this.ActiveIndex?this._getDayData():1==this.ActiveIndex?this._getMonthData():2==this.ActiveIndex?this._getYearData():this._getTotalData()},timezoneMS:function(){return r.getTimeZoneOffset(this.basicInfo.region.timezone,!0)},dateChange:function(t){var e,a=this.timeChoose[this.ActiveIndex].type,i=this.$refs.date.text,n="".concat((new Date).getFullYear(),"/").concat((new Date).getMonth()+1,"/").concat((new Date).getDate()),s="".concat((new Date).getFullYear(),"/").concat((new Date).getMonth()+1),r="".concat((new Date).getFullYear()),o=new Date("month"==a||"quarter"==a?i.split("~").pop()+"/01":i.split("~").pop());switch(a){case"day":e="perv"===t?-1:"next"===t&&new Date(i).getTime()<new Date(n).getTime()?1:0,o.setDate(o.getDate()+e),this.$refs.date.selectOk(o);break;case"month":e="perv"===t?-1:"next"===t&&new Date(i).getTime()<new Date(s).getTime()?1:0,o.setMonth(o.getMonth()+e),this.$refs.date.selectOk(o);break;case"quarter":e="perv"===t?-1:"next"===t&&new Date(i).getTime()<new Date(n).getTime()?1:0,this.curQuarter=Math.ceil((o.getMonth()+1+e)/3),o.setMonth(o.getMonth()+e),this.$refs.date.selectOk(o);break;case"year":e="perv"===t?-1:"next"===t&&new Date(i).getTime()<new Date(r).getTime()?1:0,o.setFullYear(o.getFullYear()+e),this.$refs.date.selectOk(o);break;default:break}},_getCountDays:function(){var t=V.cloneDeep(this.time),e=t.getMonth()+1,a=t.getFullYear();return new Date(a,e,0).getDate()},_showChart:function(){for(var t in this.detailData={},this.isChart=!0,this.chartList={},this.proportion)this.proportion[t]=0;if(0==this.ActiveIndex)this.chartList=[{name:(0,w.cx)("word977","用电功率"),type:"usePower",selected:!0,isBeingSelected:!0,default:!0,unit:"W",data:[]}],this._chartDay();else if(1==this.ActiveIndex){var e=this._getCountDays();this.chartList=[{name:(0,w.cx)("word527","当日用电量"),unit:"kWh",type:"useValue",selected:!0,isBeingSelected:!0,default:!0,data:new Array(e)}],this._chartMonth()}else 2==this.ActiveIndex?(this.chartList=[{name:(0,w.cx)("word528","当月用电量"),unit:"kWh",type:"useValue",selected:!0,isBeingSelected:!0,default:!0,data:new Array(12)}],this._chartYear()):3==this.ActiveIndex&&(this.chartList=[{name:(0,w.cx)("word529","当年用电量"),unit:"kWh",type:"useValue",selected:!0,isBeingSelected:!0,default:!0}],this._totalData())},powerDay:function(){var t,e={year:this.time.getFullYear(),month:this.time.getMonth()+1,day:this.time.getDate()};return t=0==this.level?this.stationId:this.systemId,new Promise(function(a,i){T.u0(t,e).then(function(t){a(t)},function(t){i(t)})})},_getDayData:function(){var t=this;if(this.detailData.records.length>0){var e=[];e=V.cloneDeep(this.chartList).filter(function(t){return 1==t.selected});var a=function(a){e[a].data=[],t.detailData.records.length&&(t.detailData.records.forEach(function(i){e[a].data.push([1e3*i.dateTime+((0,y.W$)(i.timeZoneOffset)?1e3*i.timeZoneOffset:t.timezoneMS()),i[e[a].type]])}),e[a].data=r.sortData(e[a].data,{byKey:0}))};for(var i in e)a(i);this.ChartData=e;var n=[];for(var s in this.ChartData)this.ChartData[s].unit?(n.indexOf(this.ChartData[s].unit)<=0&&n.push(this.ChartData[s].unit),this.ChartData[s].yAxis=n.indexOf(this.ChartData[s].unit)):this.ChartData[s].yAxis=0,delete this.ChartData[s]["default"],delete this.ChartData[s].selected,delete this.ChartData[s].type;0==n.length&&(n=[""]),this.defChartMonthOption=function(){var t={yTitle:n,opposite:!0};return t}()}else this.ChartData=[]},resetChart:function(){this.detailData={},this.tempData=[],this.chartData=[]},_chartDay:function(){var t=this;this.$refs.chartLine.showLoading(),Promise.all([this.powerDay()]).then(function(e){"day"==t.timeCho
2ose[t.ActiveIndex].type&&(t.resetChart(),t.$refs.chartLine&&t.$refs.chartLine.hideLoading(),t.isChart=!1,t.detailData=e[0],0==e[0].records.length?t.ChartData=[]:t._getDayData())},function(){t.$refs.chartLine&&t.$refs.chartLine.hideLoading(),t.isChart=!1})},powerMonth:function(){var t,e={year:this.time.getFullYear(),month:this.time.getMonth()+1};return t=0==this.level?this.stationId:this.systemId,new Promise(function(a,i){T.YH(t,e).then(function(t){a(t)},function(t){i(t)})})},_getMonthData:function(){var t=this;if(this.detailData.records.length>0){var e=[];e=V.cloneDeep(this.chartList).filter(function(t){return 1==t.selected});var a=this._getCountDays(),i=function(i){e[i].data=new Array(a),N.each(e[i].data,function(t){e[i].data[t]=null}),"weatherPic"==e[i].type?t.tempData.forEach(function(a){e[i].data[new Date(1e3*a.datetime+t.timezoneMS()).getDate()-1]=a.weatherPic}):"temperature"==e[i].type?t.tempData.length&&t.tempData.forEach(function(a){e[i].data[new Date(1e3*a.datetime+t.timezoneMS()).getDate()-1]=Number(a.temp)}):t.detailData.records.map(function(t){e[i].data[parseInt(t.day)-1]=Number(t[e[i].type])})};for(var n in e)i(n);this.ChartData=e;var s=[];for(var r in this.ChartData)this.ChartData[r].unit&&(s.indexOf(this.ChartData[r].unit)<=0&&s.push(this.ChartData[r].unit),this.ChartData[r].yAxis=s.indexOf(this.ChartData[r].unit)),delete this.ChartData[r]["default"],delete this.ChartData[r].selected,delete this.ChartData[r].type;0==s.length&&(s=[""]),this.defChartMonthOption=function(){var t={yTitle:s,timeType:"month",opposite:!0,xCategories:new Array(a)};return N.each(t.xCategories,function(e){t.xCategories[e]=e+1}),t}()}else this.ChartData=[]},_chartMonth:function(){var t=this;this.$refs.chartColumn.showLoading(),Promise.all([this.powerMonth()]).then(function(e){"month"==t.timeChoose[t.ActiveIndex].type&&(t.resetChart(),t.$refs.chartLine&&t.$refs.chartColumn.hideLoading(),t.isChart=!1,t.detailData=e[0],t.tempData=e[1],0==e[0].records.length?t.ChartData=[]:t._getMonthData())},function(){t.$refs.chartLine&&t.$refs.chartColumn.hideLoading(),t.isChart=!1})},_getYearData:function(){var t=this;if(this.detailData.records.length>0){var e=[];e=V.cloneDeep(this.chartList).filter(function(t){return 1==t.selected});var a=function(a){e[a].data=new Array(12),N.each(e[a].data,function(t){e[a].data[t]=null}),t.detailData.records.map(function(t){e[a].data[parseInt(t.month)-1]=Number(t[e[a].type])})};for(var i in e)a(i);this.ChartData=e;var n=[];for(var s in this.ChartData)n.push(this.ChartData[s].unit),s>0&&(this.ChartData[s].yAxis=Number(s)),delete this.ChartData[s]["default"],delete this.ChartData[s].selected,delete this.ChartData[s].type;this.defChartMonthOption=function(){var t={yTitle:n,timeType:"year",opposite:!0,xCategories:new Array(12)};return N.each(t.xCategories,function(e){t.xCategories[e]=e+1}),t}()}else this.ChartData=[]},_chartYear:function(){var t,e=this;this.$refs.chartColumn.showLoading();var a={year:this.time.getFullYear()};t=0==this.level?this.stationId:this.systemId,T.X1(t,a).then(function(t){if("year"==e.timeChoose[e.ActiveIndex].type){if(e.resetChart(),e.isChart=!1,!t)return;e.$refs.chartLine&&e.$refs.chartColumn.hideLoading(),e.detailData=t,0==e.detailData.records.length?e.ChartData=[]:e._getYearData()}},function(){e.$refs.chartLine&&e.$refs.chartColumn.hideLoading(),e.isChart=!1})},_getTotalData:function(){var t=this;if(this.detailData.records.length>0){var e=[];for(var a in this.detailData.records)e.push(this.detailData.records[a].year);e=r.sortData(e)[0];var i=r.timeFormat(new Date,"inc","%Y"),n=Number(i)-Number(e)+1;this.rangeDate=[new Date(String(e)),new Date(i)];var s=[];s=V.cloneDeep(this.chartList).filter(function(t){return 1==t.selected});var o=function(a){s[a].data=new Array(n),N.each(s[a].data,function(t){s[a].data[t]=null}),t.detailData.records.map(function(t){s[a].data[parseInt(t.year)-Number(e)]=Number(t[s[a].type])})};for(var l in s)o(l);this.ChartData=s;var d=[];for(var c in this.ChartData)d.push(this.ChartData[c].unit),c>0&&(this.ChartData[c].yAxis=Number(c)),delete this.ChartData[c]["default"],delete this.ChartData[c].selected,delete this.ChartData[c].type;this.defChartMonthOption=function(){var t={yTitle:d,timeType:"all",opposite:!0,xCategories:new Array(n)};return N.each(t.xCategories,function(a){t.xCategories[a]=a+Number(e)}),t}()}else this.ChartData=[]},_totalData:function(){var t,e=this;this.$refs.chartColumn.showLoading();var a={startYear:2e3,endYear:this.time.getFullYear()};t=0==this.level?this.stationId:this.systemId,T.aW(t,a).then(function(t){if("all"==e.timeCho
2ose[e.ActiveIndex].type){if(e.ChartData=[],e.$refs.chartLine&&e.$refs.chartColumn.hideLoading(),e.isChart=!1,!t)return;if(e.detailData=t,0==e.detailData.records.length)e.ChartData=[];else{var a=[];for(var i in e.detailData.records)a.push(e.detailData.records[i].year);a=r.sortData(a)[0];var n=r.timeFormat(new Date,"inc","%Y");e.rangeDate=[new Date(String(a)),new Date(n)],e._getTotalData()}}},function(){e.$refs.chartLine&&e.$refs.chartColumn.hideLoading(),e.isChart=!1})},_timePicker:function(t,e){var a=this;this.$refs.DeviceDetailParam.showParam=!1,this.ActiveIndex=e,this.getDatepickerCtrl(),this.$nextTick(function(){a._showChart()})},exportExcel:function(){0==this.ActiveIndex&&this.exportJson2ExcelByChildSysDay(),1==this.ActiveIndex&&this.exportJson2ExcelByChildSysMonth(),2==this.ActiveIndex&&this.exportJson2ExcelByByChildSysYear(),3==this.ActiveIndex&&this.exportJson2ExcelByByChildSysTotal()},exportJson2ExcelByChildSysDay:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("word977",["用电功率"])+"(kW)"],a=["dateTime","usePower"],i=this.detailData.records.map(function(e){return{dateTime:t.timeFormat(e.dateTime,"utc","YYYY/MM/DD HH:mm",{offset:t.basicInfo.region.timezone}),usePower:null!=e.usePower?t.floatFix(e.usePower/1e3,2):null}}),n=(0,S.IB)(a,i);(0,S.eC)({header:e,data:n,filename:this.$t("word204",["电站"])+""+this.$t("word1487",["子系统"])+"-"+this.$t("word1698",["用电历史"]),sheetName:dayjs(this.time).format("YYYY-MM-DD")})},exportJson2ExcelByChildSysMonth:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("word527",["当日用电量"])+"(kWh)"],a=["dateTime","useValue"],i=this.detailData.records.map(function(e){return{dateTime:"".concat(e.year,"/").concat((0,S._3)(e.month),"/").concat((0,S._3)(e.day)),useValue:null!=e.useValue?t.floatFix(e.useValue,2):null}}),n=(0,S.IB)(a,i);(0,S.eC)({header:e,data:n,filename:this.$t("word204",["电站"])+""+this.$t("word1487",["子系统"])+"-"+this.$t("word1698",["用电历史"]),sheetName:dayjs(this.time).format("YYYY-MM")})},exportJson2ExcelByByChildSysYear:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("word528",["当月用电量"])+"(kWh)"],a=["dateTime","useValue"],i=this.detailData.records.map(function(e){return{dateTime:"".concat(e.year,"/").concat((0,S._3)(e.month)),useValue:null!=e.useValue?t.floatFix(e.useValue,2):null}}),n=(0,S.IB)(a,i);(0,S.eC)({header:e,data:n,filename:this.$t("word204",["电站"])+""+this.$t("word1487",["子系统"])+"-"+this.$t("word1698",["用电历史"]),sheetName:dayjs(this.time).format("YYYY")})},exportJson2ExcelByByChildSysTotal:function(){var t=this,e=[this.$t("word210",["时间"]),this.$t("word529",["当年用电量"])+"(kWh)"],a=["dateTime","useValue"],i=this.detailData.records.map(function(e){return{dateTime:"".concat(e.year),useValue:null!=e.useValue?t.floatFix(e.useValue,2):null}}),n=(0,S.IB)(a,i);(0,S.eC)({header:e,data:n,filename:this.$t("word204",["电站"])+""+this.$t("word1487",["子系统"])+"-"+this.$t("word1698",["用电历史"]),sheetName:dayjs(this.rangeDate[0]).format("YYYY")+"-"+dayjs(this.rangeDate[1]).format("YYYY")})}}},U=H;var j=(0,O.A)(U,M,W,!1,null,null,null);const G=j.exports;var z=a(22224),Z=a(71757);const q={name:"ChildDetail",components:{PageDetail_head:d.A,Refresh:c.A,PromiseList:u.A,AddChildSys:h.A,Help:g.A,generateHistoryChild:$,StationSummary:F.A,PowerGeneration:R.A,UsePower:Y.A,ConsumptionHistory:G},props:{stationInfo:{type:Object},StationType:{type:String,default:"light"},roleCode:{type:Array,default:function(){return[]}}},mixins:[I.A],data:function(){return{option:{stationInfo:this.stationInfo},childBasic:null,childInfo:null,basicInfo:{},stationId:null,systemId:null,entityRelId:null,functionType:null,dynamic:{InverterRank:{ref:null,box:null}},tipLink:{public:"https://www.yuque.com/docs/share/233a7a19-2b17-42d6-84b6-afb1669bec38?# 《Part of the data is updated quickly, and some of the data is updated slowly.》",zh:"https://www.yuque.com/docs/share/9ec13121-5380-474d-a473-325f5fcf4892?# 《部分数据更新快,部分数据更新慢的原因。》"},tipShow:!0}},computed:(0,s.A)({},(0,o.L8)({cookieOption:"user/cookieOption"})),watch:{stationInfo:{handler:function(t){this.option.stationInfo=t,log.system.push(["get childId",this.$route.query.childId]),this.show({stationId:Number(this.$route.query.id),systemId:Number(this.$route.query.childId)})},deep:!0},"$route.query.childId":function(t){log.system.push(["del child 2","systemid:".concat(t)]),t&&this.show({stationId:Number(this.$route.query.id),systemId:Number(this.$route.query.childId)})}},methods:{judge:l.judge,doPermissions:l.doPermissions,closeTip:function(){var t,e=this;this.tipShow=!1,null!==(t=this.cookieOption)&&void 0!==t&&null!==(t=t.categories)&&void 0!==t&&t["function"]&&localStorage.setItem("elec-Tip-Show",this.tipShow),this.$nextTick(function(){r.fillHeight(0,{scope:e.$el})})},stringToBool:function(t){switch(t){case"true":return!0;case"false":return!1;default:return Boolean(t)}},clone:function(t){return z.cloneDeep(t)},show:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.stationId=e.stationId||Number(this.$route.query.id),this.systemId=e.systemId||Number(this.$route.query.childId),Promise.all([T.iE(this.systemId),T.HE(this.systemId),T.F5(this.$route.query.id),T.HE(this.$route.query.id)]).then(function(e){Z.each(e,function(e,a){switch(e){case 0:t.childBasic=a,t.functionType=a.functionType,t.$refs.StationSummary.show({stationId:t.stationId,systemId:t.systemId,level:1});break;case 1:t.childInfo=a;break;case 2:t.basicInfo=a,t.entityRelId=t.getIn(t.basicInfo,["entityRel","id"]);break;case 3:t.option.stationInfo=a,t.$nextTick(function(){t.$refs.ChildSysDetail&&t.$refs.ChildSysDetail._getBasicInfo(t.systemId),"GENERATION"==t.functionType?t.$refs.generateHistory.show({stationId:t.stationId,systemId:t.systemId,level:1,basicInfo:t.basicInfo}):t.$nextTick(function(){t.$refs.UsePowerInfo&&t.$refs.UsePowerInfo.getStationInfo({stationId:t.stationId,systemId:t.systemId,stationInfo:t.stationInfo}),t.$refs.consumptionHistory&&t.$refs.consumptionHistory.show({stationId:t.stationId,systemId:t.systemId,assignInfo:t.option.stationInfo,metering:t.option.stationInfo,basicInfo:t.basicInfo})}),t.creatInverterRank()});break}}),t.$nextTick(function(){r.fillHeight(0,{target:t.$refs.content})})},function(){})},creatInverterRank:function(){var t=this;this.dynamic.InverterRank.box&&(this.dynamic.InverterRank.box.destroyUi(),this.dynamic.InverterRank.box=null),"GENERATION"==this.functionType&&this.$dynamic(this.$refs.InverterRankBox,f.A,{roleCode:this.basicInfo.roleCode,stationInfoSys:this.option.stationInfo,stationInfo:this.basicInfo,child:!0,childBasic:this.childBasic},{stepTo:[this.summaryStepTo.bind(this)]},{}).then(function(e){var a=e.instance,i=e.childInstance;t.dynamic.InverterRank.box=a,t.dynamic.InverterRank.ref=i})},geStationInfo:function(){var t=this;return new Promise(function(e){e(t.option.stationInfo)})},getBasicInfo:function(){var t=this;return new Promise(function(e,a){T.F5(t.stationId).then(function(t){e(t)},function(t){a(t)})})},summaryStepTo:function(t){"/station/childSystem"==this.$route.path?this.$router.push({path:"/station/childDevice",query:{id:this.stationId,childId:this.systemId,type:t}}):"/station/main"==this.$route.path?this.$router.push({path:"/station/device",query:{id:this.stationId,childId:this.systemId}}):this.$emit("stepToDevice",t)},delChild:function(){var t=this;T.jl(this.$route.query.childId).then(function(){t.systemId=null,log.system.push(["del child 1","systemid:".concat(t.systemId)]),t.$router.push({path:"/station/main",query:{id:t.stationId}})})}
2,editChildSys:function(){var t={functionType:this.childBasic.functionType,parentId:this.stationId,id:this.systemId,name:this.childBasic.name};this.$refs.AddChildSys.modeChange("edit"),this.$refs.AddChildSys.show({node:t})},delChildSys:function(){this.$refs.confirmDelChild.show({text:getLanguageStr("phrase640","确定要删除子系统吗?这将导致子系统所有历史数据丢失,请谨慎操作!")})},refreshChildSys:function(){location.reload()},refresh:function(){this.show(),this.$refs.ChildSysTab&&this.$refs.ChildSysTab.update(),this.$refs.WorkStatistics&&this.$refs.WorkStatistics.getOverview(),this.$emit("Update")}},mounted:function(){var t=this;null==localStorage.getItem("elec-Tip-Show")?this.tipShow=!0:this.tipShow=this.stringToBool(localStorage.getItem("elec-Tip-Show")),r.fillHeight(0,{target:this.$refs.content}),r.setNewScroll(Z(this.$refs.content)),"/station/childSystem"==this.$route.path&&this.$nextTick(function(){t.show({stationId:Number(t.$route.query.id),systemId:Number(t.$route.query.childId)})})},destroyed:function(){this.dynamic.InverterRank.box&&this.dynamic.InverterRank.box.destroyUi()}},J=q;a(24674);var X=(0,O.A)(J,i,n,!1,null,"4bd39bd8",null);const K=X.exports},35854(t,e,a){"use strict";a.d(e,{A:()=>g});var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("IgWindowForSetting",{ref:"Window",staticClass:"stationId",attrs:{title:t.getLanguageStr("plant610","功能权限列表"),"footer-button":!1}},[t.entityRel?a("div",{},[a("div",{staticClass:"mb2x lh15"},[a("div",{domProps:{innerHTML:t._s(t.$t("plant600",["<span class='b'>"+(t.entityRel.organization?t.entityRel.organization.name:t.entityRel.userInfo.name)+"("+t.getLanguageStr(t.entityRel.organization?"manage302":"manage320","电站管理员/用户")+")</span>","本电站由XX"]))}}),a("div",{staticClass:"fsLv3-noStyle taC mt1x"},[t._v(t._s(t.roleName))]),a("div",{staticClass:"fcLv3 mt1x"},[t._v(" "+t._s(t.getLanguageStr("plant609","以下为具体功能权限列表,具体到每个成员的功能权限由该成员的角色决定。"))+" ")])]),a("ul",t._l(t.list,function(e,i){return a("li",{key:i,staticClass:"tableSys mb1x"},[a("div",{staticClass:"w3x"},[t._v(t._s(i+1)+".")]),a("div",{staticClass:"pl05x pr05x"},[a("div",{staticClass:"flex"},[a("span",[t._v(t._s(e.text))]),t._v("  "),a("span",{staticClass:"dashBorder flex1 bdSplitLine-top"})])]),a("div",{staticClass:"w4x taC"},[2==e.isOn?a("IgIcon",{staticClass:"w2x h2x cField",attrs:{name:"yes",type:"font"}}):t._e(),0==e.isOn?a("IgIcon",{staticClass:"w2x h2x cField",attrs:{name:"close",type:"font"}}):t._e()],1)])}),0)]):t._e()])],1)},n=[],s=(a(50113),a(51629),a(74423),a(62062),a(18111),a(20116),a(7588),a(61701),a(26099),a(21699),a(23500),a(9232)),r=a(81345),o=a(25552),l=a(71757);const d={name:"PromiseList",components:{},props:{roleCode:{type:Array,default:function(){return[]}}},data:function(){return{list:[{text:(0,r.cx)("cmd183","编辑电站"),type:!0,code:"A1",isOn:0},{text:(0,r.cx)("cmd184","设置电站"),type:!0,code:"A2",isOn:0},{text:(0,r.cx)("cmd188","查看子系统/设备"),type:!0,code:"A3",isOn:0},{text:(0,r.cx)("cmd189","添加新子系统/设备"),type:!0,code:"A4",isOn:0},{text:(0,r.cx)("cmd190","编辑子系统/设备"),type:!0,code:"A5",isOn:0},{text:(0,r.cx)("cmd191","删除子系统/设备"),type:!0,code:"A6",isOn:0},{text:(0,r.cx)("cmd192","查看电站报警"),type:!0,code:"A7",isOn:0},{text:(0,r.cx)("cmd193","查看关于电站"),type:!0,code:"A8",isOn:0},{text:(0,r.cx)("manage324","查看系统布局"),type:!0,code:"A9",isOn:0},{text:(0,r.cx)("manage14","删除电站"),type:!0,code:"",isOn:0},{text:(0,r.cx)("plant606","授权电站给终端用户"),type:!0,code:"",isOn:0},{text:(0,r.cx)("plant607","授权电站给商家"),type:!0,code:"",isOn:0},{text:(0,r.cx)("plant608","授权电站给内部成员"),type:!0,code:"",isOn:2}],entityRel:null,roleName:""}},methods:{getLanguageStr:r.cx,show:function(t){var e=this;t&&(this.entityRel=t,t.roleId&&(0,o.id)(t.roleId).then(function(t){e.roleName="C端-外部管理者"==t?e.getLanguageStr("role21"):"C端-外部普通成员"==t?e.getLanguageStr("role20"):t})),this.computedCode(this.roleCode),this.$refs.Window.show(),this.$refs.Window.loadStatusAction(!1)},computedCode:function(t){var e=this.list.map(function(t){return t.code});this.list.forEach(function(a){e.includes(a.code)&&a.code&&(a.isOn=t.find(function(t){return t.code.includes(a.code)})["isOn"])})}},computed:{},mounted:function(){s.setScroll(l(this.$el).find("[scroll]"))}},c=d;a(89582);var u=a(845),h=(0,u.A)(c,i,n,!1,null,"210c320a",null);const g=h.exports},14303(t,e,a){"use strict";a.r(e),a.d(e,{default:()=>l});var i=a(31601),n=a.n(i),s=a(76314),r=a.n(s),o=r()(n());o.push([t.id,"[data-v-d8022734]:root{--primary:#048fff;--warning:#fff;--success:#fff;--error:#fff;--fail:#fff;--headBgColor:#fff;--headFontColorDef:#fff;--sideSysBgColor:#fff;--sideSysFontColor:#fff;--sideSysFontColor-sub:#fff;--sideSysFontColorAct:#fff}.DeviceDetailParam[data-v-d8022734]{left:0;width:15rem}.pa2x>div[data-v-d8022734]{margin-top:1.5rem;border-right:1px solid #e3e3e7}.pa2x>div[data-v-d8022734]:last-child{border:none}.flexBox[data-v-d8022734]{display:flex;align-items:center;justify-content:center;height:1.5rem;margin:0 auto}.flexBox>div[data-v-d8022734]{flex:1}.fontBig[data-v-d8022734]{font-size:1.25rem}.minW28x[data-v-d8022734]{min-width:14rem}.fixRight[data-v-d8022734]{right:0}.fixRight img[data-v-d8022734]{opacity:.8}",""]);const l=o},59880(t,e,a){"use strict";a.r(e),a.d(e,{default:()=>l});var i=a(31601),n=a.n(i),s=a(76314),r=a.n(s),o=r()(n());o.push([t.id,"[data-v-54594f7a]:root{--primary:#048fff;--warning:#fff;--success:#fff;--error:#fff;--fail:#fff;--headBgColor:#fff;--headFontColorDef:#fff;--sideSysBgColor:#fff;--sideSysFontColor:#fff;--sideSysFontColor-sub:#fff;--sideSysFontColorAct:#fff}[status=show] svg[data-v-54594f7a]{transform:rotate(180deg)}[status=hide] svg[data-v-54594f7a]{transform:rotate(0)}.togBtn[data-v-54594f7a]{bottom:.5rem}.rotate0[data-v-54594f7a]{transform:rotate(0)}.rotate180[data-v-54594f7a]{transform:rotate(180deg)}",""]);const l=o},62112(t,e,a){"use strict";a.r(e),a.d(e,{default:()=>l});var i=a(31601),n=a.n(i),s=a(76314),r=a.n(s),o=r()(n());
2o.push([t.id,"[data-v-9d2788c8]:root{--primary:#048fff;--warning:#fff;--success:#fff;--error:#fff;--fail:#fff;--headBgColor:#fff;--headFontColorDef:#fff;--sideSysBgColor:#fff;--sideSysFontColor:#fff;--sideSysFontColor-sub:#fff;--sideSysFontColorAct:#fff}.flow_bg[data-v-9d2788c8]{position:relative;display:inline-block;width:3rem;height:3rem;margin-right:.25rem;text-align:center;border-radius:50%}.flow_bg>.ico[data-v-9d2788c8]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.posR3[data-v-9d2788c8]{position:relative;top:-.5rem;z-index:1}",""]);const l=o},20752(t,e,a){"use strict";a.r(e),a.d(e,{default:()=>l});var i=a(31601),n=a.n(i),s=a(76314),r=a.n(s),o=r()(n());o.push([t.id,"[data-v-4bd39bd8]:root{--primary:#048fff;--warning:#fff;--success:#fff;--error:#fff;--fail:#fff;--headBgColor:#fff;--headFontColorDef:#fff;--sideSysBgColor:#fff;--sideSysFontColor:#fff;--sideSysFontColor-sub:#fff;--sideSysFontColorAct:#fff}.PowerGeneration[data-v-4bd39bd8]  .fR{display:none}",""]);const l=o},48956(t,e,a){"use strict";a.r(e),a.d(e,{default:()=>l});var i=a(31601),n=a.n(i),s=a(76314),r=a.n(s),o=r()(n());o.push([t.id,"[data-v-210c320a]:root{--primary:#048fff;--warning:#fff;--success:#fff;--error:#fff;--fail:#fff;--headBgColor:#fff;--headFontColorDef:#fff;--sideSysBgColor:#fff;--sideSysFontColor:#fff;--sideSysFontColor-sub:#fff;--sideSysFontColorAct:#fff}.transform[data-v-210c320a]{height:.6em;transform:rotateY(180deg)}.config-list li[data-v-210c320a]{height:3em;padding-left:1.5em;font-size:1.2em;line-height:3em;border-bottom:1px solid rgba(0,0,0,.1)}.stationId[data-v-210c320a]  .body{width:40%}.flex[data-v-210c320a]{display:flex;align-items:center}.flex span[data-v-210c320a]{white-space:nowrap}.flex .flex1[data-v-210c320a]{flex:1}.dashBorder[data-v-210c320a]{width:100%;height:1px;border-top-style:dashed}",""]);const l=o},4213(t,e,a){var i,n,s;(function(a,r){n=[],i=r,s="function"===typeof i?i.apply(e,n):i,void 0===s||(t.exports=s)})(0,function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function i(t,e,a){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){l(i.response,e,a)},i.onerror=function(){},i.send()}function n(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function s(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(i){var e=document.createEvent("MouseEvents");
2e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof a.g&&a.g.global===a.g?a.g:void 0,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,e,a){var o=r.URL||r.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?s(l):n(l.href)?i(t,e,a):s(l,l.target="_blank")):(l.href=o.createObjectURL(t),setTimeout(function(){o.revokeObjectURL(l.href)},4e4),setTimeout(function(){s(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,a,r){if(a=a||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,r),a);else if(n(t))i(t,a,r);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout(function(){s(o)})}}:function(t,e,a,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof t)return i(t,e,a);var s="application/octet-stream"===t.type,l=/constructor/i.test(r.HTMLElement)||r.safari,d=/CriOS\/[\d]+/.test(navigator.userAgent);if((d||s&&l||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=d?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=t:location=t,n=null},c.readAsDataURL(t)}else{var u=r.URL||r.webkitURL,h=u.createObjectURL(t);n?n.location=h:location.href=h,n=null,setTimeout(function(){u.revokeObjectURL(h)},4e4)}});r.saveAs=l.saveAs=l,t.exports=l})},41908(t,e,a){"use strict";a.d(e,{A4:()=>d,Cg:()=>p,Hq:()=>g,Ld:()=>n,Nm:()=>r,S5:()=>c,V1:()=>h,ZL:()=>l,_X:()=>f,g9:()=>m,gm:()=>o,ip:()=>s,x9:()=>u});a(28706),a(48598);var i=a(23248);function n(t){return(0,i.A)({url:"/maintain-s/operating/station/status/counting",method:"post",data:t})}function s(t,e){return(0,i.A)({url:"/maintain-s/history/power/rank",method:"post",params:t,data:e})}function r(t,e){return(0,i.A)({url:"/maintain-s/history/power/stats/month",method:"post",params:t,data:e})}function o(t,e){return(0,i.A)({url:"/maintain-s/history/power/stats/year",method:"post",params:t,data:e})}function l(t){return(0,i.A)({url:"/maintain-s/history/power/day/overview",method:"post",data:t})}function d(t,e){return(0,i.A)({url:"/maintain-s/history/power/generation-plan/year?year=".concat(t),method:"post",data:e})}function c(t,e){return(0,i.A)({url:"/maintain-s/history/power/".concat(t,"/generation-plan/year?year=").concat(e),method:"get"})}function u(t){return(0,i.A)({url:"/maintain-s/history/power/generation-plan/total",method:"post",data:t})}function h(t){return(0,i.A)({url:"/maintain-s/history/power/".concat(t,"/generation-plan/total"),method:"get"})}function g(t){return(0,i.A)({url:"/maintain-s/operating/station/generation/summary",method:"post",data:t})}function f(t,e){return(0,i.A)({url:"/maintain-s/operating/station/capacity/ranking",method:"post",params:t,data:e})}function m(t){return(0,i.A)({url:"/maintain-s/operating/station/alert/lastest/list",method:"post",data:t})}function p(t,e){return(0,i.A)({url:"/maintain-s/fast/".concat(t,"/collector/networkingInfo"),method:"get",params:{deviceSns:e?e.join(","):void 0}})}},45784(t,e,a){"use strict";a.d(e,{IB:()=>h,_3:()=>g,eC:()=>u});var i=a(52846),n=(a(76918),a(28706),a(51629),a(62062),a(44114),a(13609),a(54743),a(11745),a(38309),a(16573),a(78100),a(77936),a(23288),a(18111),a(7588),a(61701),a(26099),a(38781),a(21489),a(48140),a(81630),a(72170),a(75044),a(69539),a(31694),a(89955),a(21903),a(91134),a(33206),a(44496),a(66651),a(12887),a(19369),a(66812),a(8995),a(31575),a(36072),a(88747),a(28845),a(29423),a(57301),a(373),a(86614),a(41405),a(37467),a(44732),a(33684),a(79577),a(16632),a(34226),a(9486),a(20456),a(23500),a(4213)),s=a(67063),r=a.n(s);function o(t,e){e&&(t+=1462);var a=Date.parse(t);return(a-new Date(Date.UTC(1899,11,30)))/864e5}function l(t,e){for(var a={},i={s:{c:1e7,r:1e7},e:{c:0,r:0}},n=0;n!=t.length;++n)for(var s=0;s!=t[n].length;++s){i.s.r>n&&(i.s.r=n),i.s.c>s&&(i.s.c=s),i.e.r<n&&(i.e.r=n),i.e.c<s&&(i.e.c=s);var l={v:t[n][s]};if(null!=l.v){var d=r().utils.encode_cell({c:s,r:n});"number"===typeof l.v?l.t="n":"boolean"===typeof l.v?l.t="b":l.v instanceof Date?(l.t="n",l.z=r(
2).SSF._table[14],l.v=o(l.v)):l.t="s",a[d]=l}}return i.s.c<1e7&&(a["!ref"]=r().utils.encode_range(i)),a}function d(){if(!(this instanceof d))return new d;this.SheetNames=[],this.Sheets={}}function c(t){for(var e=new ArrayBuffer(t.length),a=new Uint8Array(e),i=0;i!=t.length;++i)a[i]=255&t.charCodeAt(i);return e}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.multiHeader,a=void 0===e?[]:e,s=t.header,o=t.data,u=t.filename,h=t.merges,g=void 0===h?[]:h,f=t.autoWidth,m=void 0===f||f,p=t.bookType,v=void 0===p?"xlsx":p,y=t.sheetName;u=u||"excel-list",o=(0,i.A)(o),o.unshift(s);for(var C=a.length-1;C>-1;C--)o.unshift(a[C]);var w=y,D=new d,S=l(o);if(g.length>0&&(S["!merges"]||(S["!merges"]=[]),g.forEach(function(t){S["!merges"].push(r().utils.decode_range(t))})),m){for(var I=o.map(function(t){return t.map(function(t){return null==t?{wch:10}:t.toString().charCodeAt(0)>255?{wch:2*t.toString().length}:{wch:t.toString().length}})}),x=I[0],_=1;_<I.length;_++)for(var L=0;L<I[_].length;L++)x[L]["wch"]<I[_][L]["wch"]&&(x[L]["wch"]=I[_][L]["wch"]);S["!cols"]=x}D.SheetNames.push(w),D.Sheets[w]=S;var b=r().write(D,{bookType:v,bookSST:!1,type:"binary"});(0,n.saveAs)(new Blob([c(b)],{type:"application/octet-stream"}),"".concat(u,".").concat(v))}function h(t,e){return e.map(function(e){return t.map(function(t){var a=t.split(",")[0];if("timestamp"!==a)return e[a]})})}function g(t){return t<10?"0"+t:t}},84895(t,e,a){"use strict";a.d(e,{A:()=>r});var i,n=a(79893),s=(i={generationPower:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("all426","光伏发电功率"),type:"generationPower",selected:!0,isBeingSelected:!0,default:!0,unit:"W",data:[]},t)},acCouplingGenPower:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("交流耦合功率","交流耦合功率"),type:"acCouplingGenPower",selected:!0,isBeingSelected:!0,default:!0,unit:"W",data:[]},t)},pvGenPower:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("PV发电功率","PV发电功率"),type:"pvGenPower",selected:!0,isBeingSelected:!0,default:!0,unit:"W",data:[]},t)},dynamoGenPower:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("发电机发电功率","发电机发电功率"),type:"dynamoGenPower",selected:!0,isBeingSelected:!0,default:!0,unit:"W",data:[]},t)},normalLoadPower:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("常规负载功率","常规负载功率"),type:"normalLoadPower",selected:!0,isBeingSelected:!0,default:!0,unit:"W",data:[]},t)}},(0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)(i,"generationPower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("all426","光伏发电功率"),type:"generationPower",selected:!0,isBeingSelected:!0,default:!0,unit:"W",data:[]},t)}),"weatherPic",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("word1470","天气"),type:"weatherPic",dataType:"weatherPic",selected:!0,isBeingSelected:!0,default:!0,unit:"",data:[]},t)}),"temperature",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return Object.assign({name:getLanguageStr("word1623","当地温度"),type:"temperature",selected:!0,isBeingSelected:!0,unit:1==String(e)?"℃":"℉",default:!0,data:[]},t)}),"irradiateIntensity",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("word1211","辐照强度"),type:"irradiateIntensity",selected:!0,isBeingSelected:!0,default:!0,unit:"W/㎡",data:[]},t)}),"generationValue",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return 2==e?Object.assign({name:getLanguageStr("all429","光伏月发电量"),unit:"kWh",type:"generationValue",selected:!0,isBeingSelected:!0,default:!0,data:[]},t):3==e?Object.assign({name:getLanguageStr("all430","光伏年发电量"),unit:"kWh",type:"generationValue",selected:!0,isBeingSelected:!0,default:!0,data:[]},t):Object.assign({name:getLanguageStr("all428","光伏日发电量"),unit:"kWh",type:"generationValue",selected:!0,isBeingSelected:!0,default:!0,data:[]},t)}),"fullPowerHoursDay",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return 2==e?Object.assign({name:getLanguageStr("word1728","当月满发小时"),unit:"h",type:"fullPowerHoursDay",selected:!0,isBeingSelected:!0,default:!0,data:[]},t):3==e?Object.assign({name:getLanguageStr("word1734","当年满发小时"),unit:"h",type:"fullPowerHoursDay",selected:!0,isBeingSelected:!0,default:!0,data:[]},t):Object.assign({name:getLanguageStr("word1882","当日满发小时"),unit:"h",type:"fullPowerHoursDay",selected:!0,isBeingSelected:!0,default:!0,data:[]},t)}),"irradiate",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return 2==e?Object.assign({name:getLanguageStr("word1729","当月辐照量"),unit:"kWh/㎡",type:"irradiate",selected:!0,isBeingSelected:!0,default:!0,data:[]},t):3==e?Object.assign({name:getLanguageStr("word1736","当年辐照量"),unit:"kWh/㎡",type:"irradiate",selected:!0,isBeingSelected:!0,default:!0,data:[]},t):Object.assign({name:getLanguageStr("word1725","当日辐照量"),unit:"kWh/㎡",type:"irradiate",selected:!0,isBeingSelected:!0,default:!0,data:[]},t)}),"theoreticalGeneration",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return 2==e?Object.assign({name:getLanguageStr("plant_detail7","当月理论发电量"),unit:"kWh",type:"theoreticalGeneration",selected:!0,isBeingSelected:!0,default:!0,onlySolarman:!0,data:[]},t):3==e?Object.assign({name:getLanguageStr("plant_detail8","当年理论发电量"),unit:"kWh",type:"theoreticalGeneration",selected:!0,isBeingSelected:!0,default:!0,onlySolarman:!0,data:[]},t):Object.assign({name:getLanguageStr("plant_detail6","当日理论发电量"),unit:"kWh",type:"theoreticalGeneration",selected:!0,isBeingSelected:!0,default:!0,onlySolarman:!0,data:[]},t)}),"pr",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return 2==e?Object.assign({name:getLanguageStr("word1730","当月PR"),unit:"%",type:"pr",selected:!0,isBeingSelected:!0,default:!0,data:[]},t):3==e?Object.assign({name:getLanguageStr("word1737","当年PR"),unit:"%",type:"pr",selected:!0,isBeingSelected:!0,default:!0,data:[]},t):Object.assign({name:getLanguageStr("word1726","当日PR"),unit:"%",type:"pr",selected:!0,isBeingSelected:!0,default:!0,data:[]},t)}),"cpr",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return 2==e?Object.assign({name:getLanguageStr("plant_detail10","当月CPR"),unit:"%",type:"cpr",selected:!0,isBeingSelected:!0,default:!0,onlySolarman:!0,data:[]},t):Object.assign({name:getLanguageStr("plant_detail9","当日CPR"),unit:"%",type:"cpr",selected:!0,isBeingSelected:!0,default:!0,onlySolarman:!0,data:[]},t)}),(0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)(i,"usePower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("word977","用电功率"),type:"usePower",selected:!0,unit:"W",default:!0,isBeingSelected:!0,data:[]},t)}),"upsPower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("all414","EPS负载功率"),type:"upsPower",selected:!0,unit:"W",default:!0,isBeingSelected:!0,data:[]},t)}),"gridPower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("word177","并网功率"),type:"gridPower",selected:!0,default:!0,isBeingSelected:!0,unit:"W",data:[]},t)}),"buyPower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("word168","购电功率"),type:"buyPower",selected:!0,default:!0,isBeingSelected:!0,unit:"W",data:[]},t)}),"useValue",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return 2==e?Object.assign({name:getLanguageStr("word528","当月用电量"),t
2ype:"useValue",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t):3==e?Object.assign({name:getLanguageStr("word529","当年用电量"),type:"useValue",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t):Object.assign({name:getLanguageStr("word527","当日用电量"),type:"useValue",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t)}),"gridValue",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return 2==e?Object.assign({name:getLanguageStr("word503","当月并网量"),type:"gridValue",selected:!0,isBeingSelected:!0,default:!0,unit:"kWh",data:[]},t):3==e?Object.assign({name:getLanguageStr("word505","当年并网量"),type:"gridValue",selected:!0,isBeingSelected:!0,default:!0,unit:"kWh",data:[]},t):Object.assign({name:getLanguageStr("word501","当日并网量"),type:"gridValue",selected:!0,isBeingSelected:!0,default:!0,unit:"kWh",data:[]},t)}),"buyValue",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return 2==e?Object.assign({name:getLanguageStr("word504","当月购电量"),type:"buyValue",selected:!0,isBeingSelected:!0,default:!0,unit:"kWh",data:[]},t):3==e?Object.assign({name:getLanguageStr("word506","当年购电量"),type:"buyValue",selected:!0,isBeingSelected:!0,default:!0,unit:"kWh",data:[]},t):Object.assign({name:getLanguageStr("word502","当日购电量"),type:"buyValue",selected:!0,isBeingSelected:!0,default:!0,unit:"kWh",data:[]},t)}),"wirePower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("word190","电网功率"),type:"wirePower",selected:!0,isBeingSelected:!0,default:!0,unit:"W",data:[]},t)}),"batterySoc",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("word1009","电池剩余容量"),type:"batterySoc",selected:!0,isBeingSelected:!0,unit:"%",default:!0,data:[]},t)}),"chargePower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("word539","电池充电功率"),type:"chargePower",selected:!0,isBeingSelected:!0,unit:"W",default:!0,data:[]},t)}),(0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)(i,"dischargePower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("word538","电池放电功率"),type:"dischargePower",selected:!0,isBeingSelected:!0,default:!0,unit:"W",data:[]},t)}),"batteryPower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("plant366","电池功率"),type:"batteryPower",selected:!0,isBeingSelected:!0,unit:"W",default:!0,data:[]},t)}),"chargeValue",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return 2==e?Object.assign({name:getLanguageStr("word550","当月充电量"),type:"chargeValue",selected:!0,isBeingSelected:!0,default:!0,unit:"kWh",data:[]},t):3==e?Object.assign({name:getLanguageStr("word552","当年充电量"),type:"chargeValue",selected:!0,isBeingSelected:!0,default:!0,unit:"kWh",data:[]},t):Object.assign({name:getLanguageStr("word548","当日充电量"),type:"chargeValue",selected:!0,isBeingSelected:!0,default:!0,unit:"kWh",data:[]},t)}),"dischargeValue",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return 2==e?Object.assign({name:getLanguageStr("word551","当月放电量"),type:"dischargeValue",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t):3==e?Object.assign({name:getLanguageStr("word553","当年放电量"),type:"dischargeValue",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t):Object.assign({name:getLanguageStr("word549","当日放电量"),type:"dischargeValue",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t)}),"acCouplingGenPower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("all410","交流耦合功率"),type:"acCouplingGenPower",selected:!0,isBeingSelected:!0,unit:"W",default:!0,data:[]},t)}),"pvGenPower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("all411","PV发电功率"),type:"pvGenPower",selected:!0,isBeingSelected:!0,unit:"W",default:!0,data:[]},t)}),"dynamoGenPower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("all412","发电机发电功率"),type:"dynamoGenPower",selected:!0,isBeingSelected:!0,unit:"W",default:!0,data:[]},t)}),"normalLoadPower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("all413","常规负载功率"),type:"normalLoadPower",selected:!0,isBeingSelected:!0,unit:"W",default:!0,data:[]},t)}),"acCouplingGen",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("plant_detail537","交流耦合发电量"),t
2ype:"acCouplingGen",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t)}),"pvGen",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("plant_detail538","PV发电量"),type:"pvGen",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t)}),(0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)(i,"dynamoGen",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("plant_detail539","发电机发电量"),type:"dynamoGen",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t)}),"normalLoad",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("plant_detail540","常规负载用电量"),type:"normalLoad",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t)}),"epsLoad",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({name:getLanguageStr("plant_detail541","EPS负载用电量"),type:"epsLoad",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t)}),"chargePilePower",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({type:"chargePilePower",selected:!0,isBeingSelected:!0,unit:"w",default:!0,data:[]},t)}),"chargePile",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({type:"chargePile",selected:!0,isBeingSelected:!0,unit:"kWh",default:!0,data:[]},t)}));const r=s},16525(t,e,a){var i=a(14303);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var n=a(99548).A;n("01d746b6",i,!0,{sourceMap:!1,shadowMode:!1})},3398(t,e,a){var i=a(59880);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var n=a(99548).A;n("d346ef4a",i,!0,{sourceMap:!1,shadowMode:!1})},56678(t,e,a){var i=a(62112);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var n=a(99548).A;n("667c6c2d",i,!0,{sourceMap:!1,shadowMode:!1})},24674(t,e,a){var i=a(20752);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var n=a(99548).A;n("4bf277e8",i,!0,{sourceMap:!1,shadowMode:!1})},89582(t,e,a){var i=a(48956);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var n=a(99548).A;n("3e35a090",i,!0,{sourceMap:!1,shadowMode:!1})},16251(){},67233(){},29800(){},11392(t,e,a){"use strict";var i=a(46518),n=a(27476),s=a(77347).f,r=a(18014),o=a(655),l=a(60511),d=a(67750),c=a(41436),u=a(96395),h=n("".slice),g=Math.min,f=c("startsWith"),m=!u&&!f&&!!function(){var t=s(String.prototype,"startsWith");return t&&!t.writable}();i({target:"String",proto:!0,forced:!m&&!f},{startsWith:function(t){var e=o(d(this));l(t);var a=o(t),i=r(g(arguments.length>1?arguments[1]:void 0,e.length));return h(e,i,i+a.length)===a}})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.