(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6bf8874f"],{"1b4b":function(t,e,i){t.exports=i.p+"img/pfgx.3aff10c4.png"},"34c6":function(t,e,i){"use strict";i.d(e,"c",(function(){return a})),i.d(e,"b",(function(){return r})),i.d(e,"d",(function(){return o})),i.d(e,"a",(function(){return l}));const s=(new Date).getFullYear(),a=[{label:"年度",prop:"year",type:"year",valueFormat:"yyyy",fixed:"left",hide:!0,showColumn:!1},{label:"企业名称",prop:"enterpriseName",fixed:"left",width:200,search:!0,type:"select"},{label:"1季度 (1-3月)",children:[{label:s+"年 (tCO2e)",prop:"oneNowYearValue",slot:!0,width:"120"},{label:s-1+"年 (tCO2e)",prop:"oneLastYearValue",slot:!0,width:"120"},{label:"同比变化 (%)",prop:"oneRatioValue",slot:!0,width:"120"}]},{label:"2季度(1-6月)",children:[{label:s+"年 (tCO2e)",prop:"twoNowYearValue",slot:!0,width:"120"},{label:s-1+"年 (tCO2e)",prop:"twoLastYearValue",slot:!0,width:"120"},{label:"同比变化(%)",prop:"twoRatioValue",slot:!0,width:"120"}]},{label:"3季度(1-9月)",children:[{label:s+"年 (tCO2e)",prop:"threeNowYearValue",slot:!0,width:"120"},{label:s-1+"年 (tCO2e)",prop:"threeLastYearValue",slot:!0,width:"120"},{label:"同比变化(%)",prop:"threeRatioValue",slot:!0,width:"120"}]},{label:"4季度(1-12月)",children:[{label:s+"年 (tCO2e)",prop:"fourNowYearValue",slot:!0,width:"120"},{label:s-1+"年 (tCO2e)",prop:"fourLastYearValue",slot:!0,width:"120"},{label:"同比变化(%)",prop:"fourRatioValue",slot:!0,width:"120"}]}],r=[{label:"年度",prop:"year",type:"year",valueFormat:"yyyy",fixed:"left",hide:!0,showColumn:!1},{label:"企业名称",prop:"enterpriseName",fixed:"left",width:200,search:!0,type:"select"},{label:"1季度 (1-3月) (tCO2e)",prop:"oneQuarter",width:200},{label:"2季度 (4-6月)",children:[{label:"排放量 (tCO2e)",prop:"twocarbon",slot:!0,minWidth:"120"},{label:"环比变化 (%)",prop:"twomarkValue",slot:!0,minWidth:"120"}]},{label:"3季度 (7-9月)",children:[{label:"排放量 (tCO2e)",prop:"threecarbon",slot:!0,minWidth:"120"},{label:"环比变化 (%)",prop:"threemarkValue",slot:!0,minWidth:"120"}]},{label:"4季度 (10-12月)",children:[{label:"排放量 (tCO2e)",prop:"fourcarbon",slot:!0,minWidth:"120"},{label:"环比变化 (%)",prop:"fourmarkValue",slot:!0,minWidth:"120"}]}],o=function(t,e){let i=[],s=[],a=(new Date).getFullYear();const r=Array.from({length:e},(t,e)=>a-e);let o=new Map(t.map(t=>[Number(t.year),t])),l=r.map(t=>o.has(t)?o.get(t):{carbonEmissions:Array.from({length:12},()=>"0"),energyConsumption:Array.from({length:12},()=>"0"),year:t.toString()});return l.reverse().map(t=>{i=[...i,...t.carbonEmissions],s=[...s,...t.energyConsumption]}),{carbonEmissions:i,energyConsumption:s}},l=[{label:"年份",prop:"year",search:!0,type:"year",valueFormat:"yyyy",fixed:"left",searchLabelWidth:50},{label:"月份",prop:"month",fixed:"left"},{label:"行业",prop:"industry",search:!0,searchLabelWidth:50,type:"select",width:120},{label:"企业名称",prop:"enterpriseName",fixed:"left",width:200,search:!0,type:"select",searchLabelWidth:100},{label:"排放总量(tCO2)",prop:"totalEmissions",fixed:"right",width:150}]},"3c78":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"box"},[e("el-card",[e("div",{staticClass:"box-header"},[e("div",{staticClass:"header-title"},[t._v("碳排放数据")]),e("el-row",{attrs:{gutter:16}},[e("el-col",{attrs:{span:4}},[e("div",{staticClass:"header-box"},[e("div",{staticClass:"box-title"},[t._v("碳排放数据")]),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.data.carbonEmissions+" t",placement:"top"}},[e("div",{staticClass:"box-value"},[t._v(t._s(21221)+"t")])])],1)]),e("el-col",{attrs:{span:4}},[e("div",{staticClass:"header-box"},[e("div",{staticClass:"box-title"},[t._v("综合能耗数据")]),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"8921 tCe",placement:"top"}},[e("div",{staticClass:"box-value"},[t._v(t._s(11012)+"tCe")])])],1)]),e("el-col",{attrs:{span:4}},[e("div",{staticClass:"header-box"},[e("div",{staticClass:"box-title"},[t._v("产值")]),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.data.produceValue+" 万元",placement:"top"}},[e("div",{staticClass:"box-value"},[t._v(t._s(900)+"万元")])])],1)]),e("el-col",{attrs:{span:4}},[e("div",{staticClass:"header-box"},[e("div",{staticClass:"box-title"},[t._v("碳排放强度")]),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.data.carbonIntensity+" tCO2/万元",placement:"top"}},[e("div",{staticClass:"box-value"},[t._v(t._s(72)+"tCO2/万元")])])],1)]),e("el-col",{attrs:{span:4}},[e("div",{staticClass:"header-box"},[e("div",{staticClass:"box-title"},[t._v("工业增加产值")]),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"72 tCe/万元",placement:"top"}},[e("div",{staticClass:"box-value"},[t._v(t._s(672)+"tCe/万元")])])],1)]),e("el-col",{attrs:{span:4}},[e("div",{staticClass:"header-box"},[e("div",{staticClass:"box-title"},[t._v("总用水量")]),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"271 t",placement:"top"}},[e("div",{staticClass:"box-value"},[t._v(t._s(271)+"t")])])],1)])],1)],1),e("div",{staticClass:"ch-bom"},[e("el-row",{staticStyle:{"margin-bottom":"16px"},attrs:{gutter:16}},[e("el-col",{attrs:{span:12}},[e("div",{staticClass:"Charts"},[e("div",{staticClass:"df"},[e("div",{staticClass:"ChartsTitle"},[t._v("能碳数据分析")]),e("div",[e("el-dropdown",[e("span",{staticClass:"el-dropdown-link"},[t._v(" "+t._s(t.yearText)+" "),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.menus("1")}}},[t._v("近一年")]),e("el-dropdown-item",{nativeOn:{click:function(e){return t.menus("3")}}},[t._v("近三年")]),e("el-dropdown-item",{nativeOn:{click:function(e){return t.menus("5")}}},[t._v("近五年")])],1)],1)],1)]),e("div",{ref:"SurplusDeficiencyChart",staticStyle:{height:"90%"}})])]),e("el-col",{attrs:{span:12}},[e("div",{staticClass:"Charts"},[e("div",{staticClass:"df"},[e("div",{staticClass:"ChartsTitle"},[t._v("排放强度数据分析")]),e("div",[e("el-dropdown",[e("span",{staticClass:"el-dropdown-link"},[t._v(" "+t._s(t.yearTextTwo)+" "),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.menuTwo("1")}}},[t._v("近一年")]),e("el-dropdown-item",{nativeOn:{click:function(e){return t.menuTwo("3")}}},[t._v("近三年")]),e("el-dropdown-item",{nativeOn:{click:function(e){return t.menuTwo("5")}}},[t._v("近五年")])],1)],1)],1)]),e("div",{ref:"scheduleChart",staticStyle:{height:"90%"}})])])],1),e("el-row",{staticStyle:{"margin-bottom":"16px"},attrs:{gutter:16}},[e("el-col",{attrs:{span:14}},[e("div",{staticClass:"Charts"},[e("div",{staticClass:"card2-title"},[t._v("系统通知")]),t._l(t.SystemNotifications.slice(0,6),(function(i){return e("div",{key:i.id,staticClass:"card2-box"},[e("div",{staticClass:"card2-fl",on:{click:function(e){return t.NUpdates(i.link)}}},[e("div",{staticClass:"card2-circle"}),e("span",{staticClass:"card2-content"},[t._v(t._s(i.content))])]),e("div",{staticClass:"card2-time"},[t._v(t._s(i.createTime))])])}))],2)]),e("el-col",{attrs:{span:10}},[e("div",{staticClass:"Charts"},[e("div",{staticClass:"card2-title"},[t._v("快捷入口")]),e("div",[e("el-row",{attrs:{gutter:20}},t._l(t.inletList,(function(i,s){return e("el-col",{key:s,attrs:{span:6}},[e("div",{staticClass:"card2-col",on:{click:function(e){return t.handleRoute(i.path)}}},[e("img",{staticClass:"card2-image",attrs:{src:i.myImg}}),e("div",{staticClass:"card2-content"},[t._v(t._s(i.title))])])])})),1)],1)])])],1)],1)])],1)},a=[],r=(i("fcd3"),i("c168")),o=i("34c6"),l={components:{},data(){return{yearText:"近一年",yearTextTwo:"近一年",IntensityNumber:1,emissionsNumber:1,inletList:[{myImg:i("1b4b"),title:"排放贡献度",path:"/carbonEmission/carbonEmission/carbonEmissions"},{myImg:i("ed1d"),title:"能耗贡献度",path:"/carbonEmission/energy/energy"},{myImg:i("b366"),title:"碳排放强度",path:"/carbonEmission/carbonEmission/strengthCo"},{myImg:i("cce0"),title:"工业重复用水",path:"/carbonEmission/pollutant/repetitiveWater"},{myImg:i("af30"),title:"可再生能源使用",path:"/carbonEmission/renewable"}],seekAdviceFrom:[],SystemNotifications:[{id:"1765613110237802498",createUser:"1746813492465143810",createDept:"1762861991238668290",createTime:"2024-03-07 13:39:04",updateUser:"1746813492465143810",updateTime:"2024-03-07 13:39:04",status:0,isDeleted:0,tenantId:"416380",type:"通知消息",title:"排放数据填报通知,请及时填报!",content:"【2024】年度【精益化工】【2】月份排放数据未填报,请及时填报!",link:"/accounting/reports",receiverId:null,pusherId:null,orgId:"1763083003229020161",source:"通知消息",warningLevel:"1",accountEnterpriseId:"1762869596682031106"},{id:"1765613110271356929",createUser:"1746813492465143810",createDept:"1762861991238668290",createTime:"2024-03-07 13:39:04",updateUser:"1746813492465143810",updateTime:"2024-03-07 13:39:04",status:0,isDeleted:0,tenantId:"416380",type:"通知消息",title:"排放数据填报通知,请及时填报!",content:"【2024】年度【山横煤电】【2】月份排放数据未填报,请及时填报!",link:"/accounting/reports",receiverId:null,pusherId:null,orgId:"1763042979510919169",source:"通知消息",warningLevel:"1",accountEnterpriseId:"1762867586717028353"},{id:"1765265359092285442",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-03-06 14:37:13",updateUser:"1762881283053162498",updateTime:"2024-03-06 14:37:13",status:0,isDeleted:0,tenantId:"416380",type:"通知消息",title:"排放数据填报通知,请及时填报!",content:"【2024】年度【精益化工】【2】月份排放数据未填报,请及时填报!",link:"/accounting/reports",receiverId:null,pusherId:null,orgId:"1763083003229020161",source:"通知消息",warningLevel:"1",accountEnterpriseId:"1762869596682031106"}],data:{},leftTimes:[],rightTimes:[],carbonEmissionsLeft:[],energyConsumptionLeft:[],carbonEmissionsRight:[],energyConsumptionRight:[]}},mounted(){let t=(new Date).getFullYear(),e=t;for(let i=1;i<=12;i++)this.leftTimes.push(`${e}-${String(i).padStart(2,"0")}`),this.rightTimes.push(`${e}-${String(i).padStart(2,"0")}`);this.init()},methods:{async init(){let t=Object(o["d"])([{energyConsumption:["54412","23867","10","122","15446","210","11","0","0","0","0","0"],year:"2024",carbonEmissions:["33542","1040275","10","220","15451","212","11","0","0","0","0","0"]}],this.IntensityNumber);this.carbonEmissionsLeft=t.carbonEmissions,this.energyConsumptionLeft=t.energyConsumption;let e=Object(o["d"])([{energyConsumption:["54412","23867","10","122","15446","210","11","0","0","0","0","0"],year:"2024",carbonEmissions:["33542","1040275","10","220","15451","212","11","0","0","0","0","0"]}],this.emissionsNumber);this.carbonEmissionsRight=e.carbonEmissions,this.energyConsumptionRight=e.energyConsumption,this.getSurplusDeficiency(),this.getScheduleChart()},async getDataWorkbench(t){await Object(r["api_energyManageCarbonDataDesk"])(t).then(t=>{this.data=t.data.data,this.SystemNotifications=t.data.data.messageList})},menus(t){this.leftTimes=[];let e=(new Date).getFullYear(),i=e;if("1"==t){this.yearText="近一年";for(let t=1;t<=12;t++)this.leftTimes.push(`${i}-${String(t).padStart(2,"0")}`)}else if("3"==t){this.yearText="近三年";let t=e-2;for(let i=t;i<=e;i++)for(let t=1;t<=12;t++)this.leftTimes.push(`${i}-${String(t).padStart(2,"0")}`)}else{this.yearText="近五年";let t=e-4;for(let i=t;i<=e;i++)for(let t=1;t<=12;t++)this.leftTimes.push(`${i}-${String(t).padStart(2,"0")}`)}this.IntensityNumber=t,this.init()},menuTwo(t){this.rightTimes=[];let e=(new Date).getFullYear(),i=e;if("1"==t){this.yearTextTwo="近一年";for(let t=1;t<=12;t++)this.rightTimes.push(`${i}-${String(t).padStart(2,"0")}`)}else if("3"==t){this.yearTextTwo="近三年";let t=e-2;for(let i=t;i<=e;i++)for(let t=1;t<=12;t++)this.rightTimes.push(`${i}-${String(t).padStart(2,"0")}`)}else{this.yearTextTwo="近五年";let t=e-4;for(let i=t;i<=e;i++)for(let t=1;t<=12;t++)this.rightTimes.push(`${i}-${String(t).padStart(2,"0")}`)}this.emissionsNumber=t,this.init()},NUpdates(t){t&&window.open(t,"_blank")},getSurplusDeficiency(t){let e={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}},formatter:function(t){for(var e,i,s=t[0].name+"
",a=0;a",i="#19C297"):(e=" tce
",i="#2474FF"),s+='',s+=Number(t[a].value).toFixed(2)+e;return s}},legend:{top:"2%",left:"left",icon:"circle",itemWidth:8,itemHeight:8},grid:{top:"20%",right:"6%",left:"6%",bottom:"5%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:this.leftTimes}],yAxis:[{type:"value",scale:!0}],series:[{name:"能耗",type:"line",smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgb(36,116,255,0.76)"},{offset:1,color:"rgb(36,116,255,0)"}],global:!1}},itemStyle:{borderColor:"#fff",color:"#2474FF"},symbol:"circle",symbolSize:0,data:this.energyConsumptionLeft},{name:"排放",type:"line",smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgb(25, 194, 151,0.76)"},{offset:1,color:"rgb(25, 194, 151,0)"}],global:!1}},itemStyle:{borderColor:"#fff",color:"#19C297"},symbol:"circle",symbolSize:0,data:this.carbonEmissionsLeft}]};this.SurplusDeficiency(e)},SurplusDeficiency(t){var e=this.$echarts.init(this.$refs.SurplusDeficiencyChart);e.clear(),this.$nextTick(()=>{e.setOption(t),window.addEventListener("resize",()=>{e.resize()})})},getScheduleChart(){let t={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}},formatter:function(t){var e=t[0].name+"
",i="#2474FF";return e+='',e+=t[0].value+" tCO2e/万元",e}},legend:{top:"2%",left:"left",icon:"circle",itemWidth:8,itemHeight:8},grid:{top:"20%",right:"6%",left:"6%",bottom:"5%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:this.rightTimes}],yAxis:[{type:"value",scale:!0}],series:[{name:"排放",type:"line",smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgb(36,116,255,0.76)"},{offset:1,color:"rgb(36,116,255,0)"}],global:!1}},itemStyle:{borderColor:"#fff",color:"#2474FF"},symbol:"circle",symbolSize:0,data:this.carbonEmissionsRight}]};var e=this.$echarts.init(this.$refs.scheduleChart);e.clear(),this.$nextTick(()=>{e.setOption(t),window.addEventListener("resize",()=>{e.resize()})})},handleRoute(t){this.$router.push({path:t})}}},n=l,c=(i("d913"),i("1805")),d=Object(c["a"])(n,s,a,!1,null,"3ca37fde",null);e["default"]=d.exports},af30:function(t,e,i){t.exports=i.p+"img/kzs.d6806dc9.png"},b366:function(t,e,i){t.exports=i.p+"img/tpf.c737637e.png"},cce0:function(t,e,i){t.exports=i.p+"img/gycf.a23a3702.png"},d913:function(t,e,i){"use strict";i("ed04")},ed04:function(t,e,i){},ed1d:function(t,e,i){t.exports=i.p+"img/nhgx.0ca5cfd7.png"}}]);