(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b0dde7a"],{"40d7":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"box"},[t("el-card",{staticClass:"box-main"},[t("div",{staticClass:"box-header"},[t("el-row",{attrs:{gutter:16}},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"box_two chart"},[t("div",{staticClass:"header-title"},[e._v("总项目数量")]),t("div",{staticClass:"titledf"},[t("div",{staticClass:"text-wrapper"},[t("div",{staticClass:"bg"},[t("span",{staticClass:"text"},[e._v(e._s(e.totalGreenElectricity))]),t("span",{staticClass:"util"},[e._v("单位:个")])])])])])]),t("el-col",{attrs:{span:8}},[t("div",{ref:"shureferer",staticClass:"chart"})]),t("el-col",{attrs:{span:8}},[t("div",{ref:"referer",staticClass:"chart"})])],1)],1),t("div",[t("avue-crud",{ref:"crud",attrs:{option:e.option,data:e.data,page:e.page},on:{"update:page":function(t){e.page=t},"search-change":e.searchChange,"search-reset":e.searchReset,"current-change":e.currentChange,"size-change":e.sizeChange,"refresh-change":e.refreshChange},scopedSlots:e._u([{key:"menu",fn:function({row:l}){return[t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-view"},on:{click:function(t){return e.handleView(l)}}},[e._v("查 看")])]}}])})],1)])],1)},n=[],i=l("a7ba"),r=l("1192"),s=(l("9031"),l("6fbe")),u={components:{vzStatistic:r["a"],projectManagementDetail:i["a"]},data(){return{colorArr:[],form:{},query:{},loading:!1,page:{size:10,current:1,total:0},option:{height:"auto",calcHeight:80,tip:!1,searchShow:!0,searchMenuSpan:6,align:"left",headerAlign:"left",viewBtn:!1,addBtn:!1,editBtn:!1,delBtn:!1,dialogType:"drawer",dialogClickModal:!1,column:[{label:"项目名称",prop:"projectName",display:!1,search:!0,bind:"emissionReductionProjects.projectName"},{label:"所属行业",prop:"industry",search:!0,type:"select",bind:"emissionReductionProjects.industry",display:!1},{label:"方法学",prop:"methodology",bind:"emissionReductionProjects.methodology",searchSpan:8},{label:"阶段",prop:"auditStage",bind:"auditStage"}]},data:[{id:"1777529974677200897",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:0,tenantId:null,projectId:"1777529931664613378",auditStage:"项目设计",auditStatus:"YTG",remark:null,attachList:null,emissionReductionProjects:{id:"1777529931664613378",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectName:"10",industry:"能源分配",methodology:"并网光热发电",methodologyVersion:null,projectStatus:null},projectName:null,industry:null},{id:"1777528183378042881",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:0,tenantId:null,projectId:"1777528110787223553",auditStage:"减排量申请",auditStatus:"YTG",remark:null,attachList:null,emissionReductionProjects:{id:"1777528110787223553",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectName:"项目一",industry:"能源需求",methodology:"并网光热发电",methodologyVersion:null,projectStatus:null},projectName:null,industry:null},{id:"1777522474011807745",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:0,tenantId:null,projectId:"1777522092657299457",auditStage:"项目设计",auditStatus:"YBH",remark:null,attachList:null,emissionReductionProjects:{id:"1777522092657299457",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectName:"212121",industry:"能源分配",methodology:"并网光热发电",methodologyVersion:null,projectStatus:null},projectName:null,industry:null},{id:"1776880755180253186",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:0,tenantId:null,projectId:"1776880731188834306",auditStage:"减排量申请",auditStatus:"YTG",remark:null,attachList:null,emissionReductionProjects:{id:"1776880731188834306",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectName:"xxxx",industry:"能源需求",methodology:"并网光热发电",methodologyVersion:null,projectStatus:null},projectName:null,industry:null},{id:"1776871719823159298",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:0,tenantId:null,projectId:"1776871647039401986",auditStage:"项目核证",auditStatus:"YTG",remark:null,attachList:null,emissionReductionProjects:{id:"1776871647039401986",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectName:"yyy",industry:"能源分配",methodology:"并网光热发电",methodologyVersion:null,projectStatus:null},projectName:null,industry:null},{id:"1775095239069896706",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:0,tenantId:null,projectId:"1775095214734544897",auditStage:"项目注销",auditStatus:"YTG",remark:null,attachList:null,emissionReductionProjects:{id:"1775095214734544897",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectName:"项目一",industry:"能源分配",methodology:"并网光热发电",methodologyVersion:null,projectStatus:null},projectName:null,industry:null},{id:"1775082226770219010",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:0,tenantId:null,projectId:"1775082187100491778",auditStage:"项目核证",auditStatus:"YTG",remark:null,attachList:null,emissionReductionProjects:{id:"1775082187100491778",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectName:"444",industry:"能源产业(可再生/不可再生资源)",methodology:"并网光热发电",methodologyVersion:null,projectStatus:null},projectName:null,industry:null},{id:"1774680308432449538",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:0,tenantId:null,projectId:"1774679891187281921",auditStage:"项目设计",auditStatus:"YBH",remark:null,attachList:null,emissionReductionProjects:{id:"1774679891187281921",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectName:"7821",industry:"能源需求",methodology:"并网光热发电",methodologyVersion:null,projectStatus:null},projectName:null,industry:null}],chartList:[{name:"能源需求",value:5},{name:"能源分配",value:8},{name:"能源产业(可再生/不可再生资源)",value:1}],auditStageChart:[{name:"项目核证",value:2},{name:"项目注销",value:2},{name:"项目审定",value:2},{name:"项目设计",value:4},{name:"减排量申请",value:4}],totalGreenElectricity:14}},mounted(){this.init()},methods:{async init(){this.$nextTick(()=>{this.getPie(),this.getCurve()})},search(){},getPie(){this.optionPie={title:{text:"项目状态分类",left:"0%",top:"0%",textStyle:{fontSize:16}},tooltip:{trigger:"item",formatter:function(e){var t=e.name+"
",l=e.color;return t+='',t+=e.value+" 个",t+='
'+e.percent+"%",t}},grid:{top:"25%",right:"6%",left:"5%",bottom:"5%",containLabel:!0},legend:{right:"8%",top:"18%",orient:"vertical",itemWidth:8,itemHeight:8,itemGap:25,icon:"circle"},series:[{type:"pie",radius:["35%","60%"],center:["40%","50%"],avoidLabelOverlap:!0,minAngle:5,itemStyle:{borderRadius:3,borderColor:"#fff",borderWidth:2},label:{show:!1},labelLine:{show:!0,lineStyle:{color:"#999999"},length:3},data:this.auditStageChart,color:this.colorArr}]},this.referer(this.optionPie)},getCurve(e){let t={title:{text:"项目行业分类",left:"0%",top:"0%",textStyle:{fontSize:16}},tooltip:{trigger:"item",formatter:function(e){var t=e.name+"
",l=e.color;return t+='',t+=e.value+" 个",t+='
'+e.percent+"%",t}},grid:{top:"25%",right:"6%",left:"5%",bottom:"5%",containLabel:!0},legend:{right:"8%",top:"18%",orient:"vertical",itemWidth:8,itemHeight:8,itemGap:25,icon:"circle",formatter:function(e){var t=8;return e.length>t?e.substring(0,t)+"...":e}},series:[{type:"pie",radius:["35%","60%"],center:["40%","50%"],avoidLabelOverlap:!0,minAngle:5,itemStyle:{borderRadius:3,borderColor:"#fff",borderWidth:2},label:{show:!1},labelLine:{show:!0,lineStyle:{color:"#999999"},length:3},data:this.chartList,color:this.colorArr}]};this.stacked(t)},async handleView(e){e.flag="view";let t=null,l=null;await Object(s["getProjectManageMentDetail"])({id:e.id}).then(e=>{200==e.data.code&&(t=e.data.data)}),await Object(s["getByIdApprovalProcess"])({id:e.id}).then(e=>{console.log(e),200==e.data.code&&(l=e.data.data)}),this.$refs.templateInfo.open(null,t,"view",l)},searchReset(e){let t=(new Date).getFullYear();this.getList(this.page),this.getPie(t),this.getCurve(t)},searchChange(e,t){this.page.current=1,this.getList(this.page,e),this.getPie(e.ccerYear),this.getCurve(e.ccerYear),t()},currentChange(e){this.page.current=e,this.getList(this.page)},sizeChange(e){this.page.size=e,this.getList()},refreshChange(){this.getList()},stacked(e){var t=this.$echarts.init(this.$refs.shureferer);t.clear(),this.$nextTick(()=>{t.setOption(e),window.addEventListener("resize",()=>{t.resize()})})},referer(e){var t=this.$echarts.init(this.$refs.referer);t.clear(),this.$nextTick(()=>{t.setOption(e),window.addEventListener("resize",()=>{t.resize()})})},getList(e,t){this.loading=!0;let l={current:e.current,size:e.size};this.data=[],Object(s["getProjectManageMentList"])(Object.assign(l,t)).then(e=>{const t=e.data.data;this.page.total=t?t.total:0,this.data=t.records,this.loading=!1}).catch(e=>{this.loading=!1})}}},o=u,d=(l("fb4e"),l("1805")),c=Object(d["a"])(o,a,n,!1,null,"8bfe2418",null);t["default"]=c.exports},a865:function(e,t,l){},fb4e:function(e,t,l){"use strict";l("a865")}}]);