(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f0df478"],{"28d0":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:"auditStatus",fn:function(l){return["DSH"==l.row.auditStatus?t("el-tag",{staticStyle:{color:"#ffd801",border:"1px solid rgba(255, 216, 1, 0.2)"},attrs:{color:"rgba(255, 216, 1, 0.2)"}},[e._v("待审核")]):e._e(),"YTG"==l.row.auditStatus?t("el-tag",{staticStyle:{color:"#19c297",border:"1px solid rgba(25, 194, 151, 0.2)"},attrs:{color:"rgba(25, 194, 151, 0.2)"}},[e._v("已通过")]):e._e(),"YBH"==l.row.auditStatus?t("el-tag",{staticStyle:{color:"#eb5454",border:"1px solid rgba(235, 84, 84, 0.2)"},attrs:{color:"rgba(235, 84, 84, 0.2)"}},[e._v("已驳回")]):e._e()]}},{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("查 看")]),t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-s-check",disabled:"DSH"!==l.auditStatus},on:{click:function(t){return e.handleExamine(l)}}},[e._v("审 核")])]}}]),model:{value:e.form,callback:function(t){e.form=t},expression:"form"}})],1)])],1)},r=[],n=l("f0a4"),i=l("a7ba"),s=l("1192"),u=(l("9031"),l("6fbe")),o={components:{vzStatistic:s["a"],projectManagementDetail:i["a"]},computed:{...Object(n["b"])(["permission"])},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,searchLabelWidth:100,column:[{label:"项目名称",prop:"projectName",display:!1,bind:"entity.projectName",search:!0},{label:"所属行业",prop:"industry",bind:"entity.industry",display:!1,type:"select"},{label:"阶段",prop:"auditStage"},{label:"方法学",prop:"methodology",bind:"entity.methodology",searchSpan:8},{label:"状态",prop:"auditStatus",slot:!0,dicData:[{label:"已通过",value:"YTG"},{label:"待审核",value:"DSH"},{label:"已驳回",value:"YBH"}],search:!0,type:"select",props:{label:"label",value:"value"}}]},data:[{id:"1777531181776920578",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectId:"1777528110787223553",projectStageId:"1777530031849758721",auditStage:"项目注销",auditStatus:"DSH",remark:null,attachList:null,entity:{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}},{id:"1777530003852779522",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectId:"1777528110787223553",projectStageId:"1777530003735339009",auditStage:"减排量申请",auditStatus:"YTG",remark:"审核通过,无意见",attachList:null,entity:{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}},{id:"1777529945258352641",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectId:"1777529931664613378",projectStageId:"1777529931677196289",auditStage:"项目设计",auditStatus:"YTG",remark:"审核通过,无意见",attachList:null,entity:{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}},{id:"1777529860885733377",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectId:"1777528110787223553",projectStageId:"1777529617599324162",auditStage:"项目核证",auditStatus:"YTG",remark:"审核通过,无意见",attachList:null,entity:{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}},{id:"1777529536099803138",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectId:"1777528110787223553",projectStageId:"1777529444571701250",auditStage:"项目开发",auditStatus:"YTG",remark:"审核通过,无意见",attachList:null,entity:{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}},{id:"1777529387524972546",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectId:"1777528110787223553",projectStageId:"1777529253047197697",auditStage:"项目申请",auditStatus:"YTG",remark:"审核通过,无意见",attachList:null,entity:{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}},{id:"1777529161141608449",createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,projectId:"1777528110787223553",projectStageId:"1777528183331905537",auditStage:"项目审定",auditStatus:"YTG",remark:"审核通过,无意见",attachList:null,entity:{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}}],industryChart:[{name:"",value:1},{name:"能源需求",value:23},{name:"能源分配",value:30},{name:"能源产业(可再生/不可再生资源)",value:6}],statusChart:[{name:"DSH",value:5},{name:"YTG",value:52},{name:"YBH",value:3}],totalGreenElectricity:15}},mounted(){this.init()},methods:{async init(){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:"5%",top:"18%",orient:"vertical",itemWidth:8,itemHeight:8,itemGap:25,icon:"circle",formatter:function(e){var t=6;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.statusChart,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.industryChart,color:this.colorArr}]};this.stacked(t)},async handleView(e){let t=null;await Object(u["getProjectInternalAuditDetail"])({id:e.id}).then(e=>{t=e.data.data}),this.$refs.templateInfo.open(e,t,"view")},async handleExamine(e){let t=null;await Object(u["getProjectInternalAuditDetail"])({id:e.id}).then(e=>{t=e.data.data}),console.log(t,"111"),this.$refs.templateInfo.open(e,t,"add")},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(u["getProjectInternalAuditList"])(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})}}},d=o,c=(l("bf67"),l("1805")),p=Object(c["a"])(d,a,r,!1,null,"629a330c",null);t["default"]=p.exports},bf67:function(e,t,l){"use strict";l("e645")},e645:function(e,t,l){}}]);