(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41681968"],{1484:function(t,e,i){t.exports=i.p+"img/TotalEnterprise.60e3c65d.png"},"235e":function(t,e,i){t.exports=i.p+"img/Performed.d0371ba8.png"},"53a1":function(t,e,i){t.exports=i.p+"img/InternalAdjustment.50a6d05f.png"},7880:function(t,e,i){t.exports=i.p+"img/NonPerformance.f9560817.png"},"7dad":function(t,e,i){},8136:function(t,e,i){t.exports=i.p+"img/PerformanceAnalysis.71cfedd2.png"},"8e8b":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t._self._c;return e("basic-container",[e("el-row",{staticClass:"mb-6",attrs:{gutter:16}},[e("el-col",{attrs:{span:15}},[e("div",{staticClass:"bc"},[e("div",{staticClass:"bc-Title"},[t._v("集团履约总体情况")]),e("el-row",{staticClass:"card1-row",attrs:{gutter:16}},[e("el-col",{attrs:{span:8}},[e("div",{staticClass:"card1-box"},[e("div",{staticClass:"card1-box-content"},[e("div",[t._v("总企业数")]),e("div",{staticClass:"card1-box-num"},[t._v(" "+t._s(t.promiseCollect.totalEnterprise||0)+" ")])])])]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"card1-box"},[e("div",{staticClass:"card1-box-content"},[e("div",[t._v("已履约企业")]),e("div",{staticClass:"card1-box-num"},[t._v(" "+t._s(t.promiseCollect.alreadyPromiseEnterprise||0)+" ")])])])]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"card1-box"},[e("div",{staticClass:"card1-box-content"},[e("div",[t._v("未履约企业")]),e("div",{staticClass:"card1-box-num"},[t._v(" "+t._s(t.promiseCollect.notPromiseEnterprise||0)+" ")])])])])],1)],1)]),e("el-col",{attrs:{span:9}},[e("div",{staticClass:"charts-reportbox"},[e("div",{ref:"report",staticClass:"card1-report"})])])],1),e("el-row",{attrs:{gutter:16}},[e("el-col",{attrs:{span:8}},[e("div",{ref:"profitLoss",staticClass:"charts-box"})]),e("el-col",{attrs:{span:8}},[e("div",{ref:"Performance",staticClass:"charts-box"})]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"charts-box"},[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:8}},[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)},r=[],a=(i("fcd3"),i("6aac"),i("9031"),{components:{},props:[],data(){return{colorArr:[],myImg1:i("1484"),myImg2:i("235e"),myImg3:i("7880"),inletList:[{myImg:i("53a1"),title:"内部调剂",path:"/carbonCompliance/InternalAdjustment"},{myImg:i("eecf"),title:"履约通知",path:"/carbonCompliance/performanceNotice"},{myImg:i("8136"),title:"履约分析",path:"/carbonCompliance/performanceAnalysis"}],promiseRate:[],deficitAnalysis:[],promiseCollect:{},promiseAnalysis:[]}},computed:{},watch:{},mounted(){this.init()},methods:{init(){this.getData()},getData(){const t={promiseCollect:{notPromiseEnterprise:6,alreadyPromiseEnterprise:3,totalEnterprise:9},deficitAnalysis:[{name:"精益化工",value:"899016667.00"},{name:"山横煤电",value:"899913482.00"}],promiseRate:[{name:"未履约",value:1},{name:"已履约",value:3}],promiseAnalysis:[{carbonEmissions:"983333",name:"精益化工",countryValue:"900000000.00"},{carbonEmissions:"86518",name:"山横煤电",countryValue:"900000000.00"}],promiseCostAnalysis:[{name:"精益化工",value:"821097360.08"},{name:"山横煤电",value:"893057795.68"}]};t&&(t.promiseRate&&(this.promiseRate=t.promiseRate),t.deficitAnalysis&&(this.deficitAnalysis=t.deficitAnalysis),t.promiseCollect&&(this.promiseCollect=t.promiseCollect),t.promiseAnalysis&&(this.promiseAnalysis=t.promiseAnalysis)),this.getReport(),this.getPerformance(),this.getProfitLoss()},getReport(){let t={title:{text:"履约总体进度",left:"left",top:"0",textStyle:{fontSize:16}},tooltip:{trigger:"item",formatter:function(t){var e=t.name+"
",i=t.color;return e+='',e+=t.value+" 吨",e+='
'+t.percent+"%",e}},grid:{left:"5%",right:"60%"},legend:{right:"20",top:"15%",width:200,itemWidth:10,itemHeight:10,itemGap:40,icon:"circle",textStyle:{fontSize:14},formatter:function(t){var e=6;return t.length>e?t.substring(0,e)+"...":t}},series:[{type:"pie",radius:["35%","60%"],center:["25%","50%"],avoidLabelOverlap:!0,minAngle:10,itemStyle:{borderRadius:3,borderColor:"#fff",borderWidth:2},label:{show:!1},data:this.promiseRate||[],color:this.colorArr}]};var e=this.$echarts.init(this.$refs.report);e.clear(),this.$nextTick(()=>{e.setOption(t),window.addEventListener("resize",()=>{e.resize()})})},getPerformance(){let t=[],e=[],i=[];this.promiseAnalysis.forEach(s=>{t.push(s.name),e.push(s.carbonEmissions),i.push(s.countryValue)});let s={title:{text:"履约分析",subtext:"单位:吨",left:"left",top:"0%",textStyle:{fontSize:16}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},axisLine:{show:!0,lineStyle:{color:"#4F4F4F"}},axisTick:{show:!1},grid:{top:"25%",right:"0%",left:"0%",bottom:"0%",containLabel:!0},series:[{name:"排放值",type:"bar",barWidth:"8",itemStyle:{barBorderRadius:[6,6,0,0],color:"#2474FF"},data:e},{name:"国家下发配额",type:"bar",barWidth:"8",itemStyle:{barBorderRadius:[6,6,0,0],color:"#B1CCFC"},data:i}],xAxis:{type:"category",data:t,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(t,e){const i=2;return t.length>i?t.substring(0,i)+"...":t}}},yAxis:{type:"value",data:[],splitLine:{show:!0,lineStyle:{type:"dashed"}}},legend:{left:"right"}};var r=this.$echarts.init(this.$refs.Performance);r.clear(),this.$nextTick(()=>{r.setOption(s),window.addEventListener("resize",()=>{r.resize()})})},getProfitLoss(){let t=[],e=[];this.deficitAnalysis.forEach(i=>{t.push(i.name),e.push(i.value)});let i={title:{text:"盈缺分析",subtext:"单位:吨",left:"left",top:"0%",textStyle:{fontSize:16}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"25%",right:"0%",left:"0%",bottom:"0%",containLabel:!0},xAxis:{type:"category",data:t,axisLabel:{formatter:function(t,e){const i=2;return t.length>i?t.substring(0,i)+"...":t}}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},yAxis:{type:"value"},series:[{data:e,type:"bar",barWidth:"20",itemStyle:{color:function(t){return t.value>=0?"#2474FF":"#19C297"}}}]};var s=this.$echarts.init(this.$refs.profitLoss);s.clear(),this.$nextTick(()=>{s.setOption(i),window.addEventListener("resize",()=>{s.resize()})})},handleRoute(t){this.$router.push({path:t})}}}),o=a,n=(i("a04a"),i("1805")),l=Object(n["a"])(o,s,r,!1,null,"7139c28c",null);e["default"]=l.exports},9031:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r}));const s=()=>{const t=["#2474FF","#FFA200","#1C3FFF","#BD1CFF","#1CD4FF","#19C297","#EB5454","#19C25F","#24BDFF","#FF4D01","#EB5486","#19B4C2","#242BFF","#FFF701","#EB54B9","#1927C2","#6624FF","#34FF01","#A054EB"];return t},r=()=>{const t=["#19C297","#FFA200","#2474FF","#EB5454","#C7C7C7","#9F54EB","#42E5E3"];return t}},a04a:function(t,e,i){"use strict";i("7dad")},eecf:function(t,e,i){t.exports=i.p+"img/PerformanceNotice.c723d531.png"}}]);