(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b5fc4"],{"1adb":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e._self._c;return t("div",[t("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[e._v("首页")]),t("el-breadcrumb-item",[e._v("碳资产管理")]),t("el-breadcrumb-item",[e._v("碳资产登记")])],1),t("el-form",{attrs:{model:e.form,"label-width":"70px"}},[t("el-card",{staticClass:"box-card",staticStyle:{height:"80px"}},[t("el-row",{staticClass:"row-bg",attrs:{gutter:20,type:"flex",justify:"center"}},[t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"年度:"}},[t("el-date-picker",{attrs:{size:"mini",format:"yyyy-MM-dd",type:"date",placeholder:"请选择查询年度"},model:{value:e.form.date,callback:function(t){e.$set(e.form,"date",t)},expression:"form.date"}})],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"类别:"}},[t("el-select",{attrs:{size:"mini",placeholder:"请选择类别"},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.propertys,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"数量:"}},[t("el-input",{attrs:{size:"mini",placeholder:"请输入查询数量"},model:{value:e.form.number,callback:function(t){e.$set(e.form,"number",t)},expression:"form.number"}})],1)],1),t("el-col",{staticStyle:{margin:"5px"},attrs:{span:4}},[t("el-divider",{attrs:{direction:"vertical"}}),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.getPropertyList}},[e._v("查询")]),t("el-button",{attrs:{size:"mini"},on:{click:e.add}},[e._v("新增")])],1)],1)],1)],1),t("el-card",{staticClass:"box-heard"},[t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"资产登记列表",name:"first"}},[t("alltitle",{attrs:{msg:"碳资产登记列表"}}),t("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{border:"",stripe:!0,data:e.tableData}},[e._l(e.colums,(function(a,l){return[a.template?e._e():t("el-table-column",{key:a.k,attrs:{align:"center",label:a.label,prop:a.prop,width:a.width,"column-key":a.columnKey,filters:a.filters,formatter:a.format,type:a.type,"filter-method":a.filterMethod}}),"actionBar"==a.prop?t("el-table-column",{key:l,attrs:{align:"center",label:a.label,prop:a.prop,width:a.width},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.remove(a.row)}}},[e._v("删除")]),t("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.toEdit(a.row)}}},[e._v("编辑")])]}}],null,!0)}):e._e()]}))],2),t("el-pagination",{staticClass:"postop",staticStyle:{float:"right"},attrs:{"current-page":e.currentPage4,"page-sizes":[10,30,50,100],"page-size":1,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.length},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),t("el-tab-pane",{attrs:{label:"图形展示",name:"second"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:12}},[t("el-card",[t("carbonPie",{key:e.type,staticStyle:{"margin-top":"20px"},attrs:{option:e.optionList,width:600,height:300}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-card",[t("carbonPie",{key:e.type,staticStyle:{"margin-top":"20px"},attrs:{option:e.optionList1,width:600,height:300}})],1)],1),t("el-col",{staticStyle:{"margin-top":"20px"},attrs:{span:12}},[t("el-card",[t("carbonPie",{key:e.type,staticStyle:{"margin-top":"20px"},attrs:{option:e.optionList2,width:600,height:300}})],1)],1),t("el-col",{staticStyle:{"margin-top":"20px"},attrs:{span:12}},[t("el-card",[t("carbonPie",{key:e.type,staticStyle:{"margin-top":"20px"},attrs:{option:e.optionList3,width:600,height:300}})],1)],1)],1)],1)],1)],1),t("newadd",{ref:"add",attrs:{dialogVisible:e.dialogVisibled}})],1)},r=[],i=function(){var e=this,t=e._self._c;return t("div",[t("alldialog",{ref:"allDialog",attrs:{title:"新增碳资产"}},[t("el-card",[t("el-form",{attrs:{model:e.form,"label-width":"120px"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"登记日期:"}},[t("el-date-picker",{staticStyle:{width:"50%"},attrs:{size:"mini",format:"yyyy-MM-dd",type:"date",placeholder:"请选择日期"},model:{value:e.form.date,callback:function(t){e.$set(e.form,"date",t)},expression:"form.date"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"类别:"}},[t("el-select",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请选择类别"},model:{value:e.form.types,callback:function(t){e.$set(e.form,"types",t)},expression:"form.types"}},e._l(e.propertys,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"数量:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入数量"},model:{value:e.form.number,callback:function(t){e.$set(e.form,"number",t)},expression:"form.number"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"单价:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入单价"},model:{value:e.form.price,callback:function(t){e.$set(e.form,"price",t)},expression:"form.price"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"碳排放年度:"}},[t("el-date-picker",{staticStyle:{width:"50%"},attrs:{size:"mini",format:"yyyy",type:"year",placeholder:"请选择碳排放年度"},model:{value:e.form.date,callback:function(t){e.$set(e.form,"date",t)},expression:"form.date"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"详情描述:"}},[t("el-input",{staticStyle:{width:"80%"},attrs:{type:"textarea",rows:"2",size:"mini",placeholder:"请输入详情描述"},model:{value:e.form.detile,callback:function(t){e.$set(e.form,"detile",t)},expression:"form.detile"}})],1)],1)],1)],1)],1)],1)],1)},o=[],s={data(){return{visible:!1,form:{types:""},propertys:[{value:"1",label:"配额-注销"},{value:"2",label:"CCER-注销"},{value:"3",label:"今年分配配额"},{value:"4",label:"碳交易-购入"},{value:"5",label:"碳交易-售出"},{value:"6",label:"CCER-售出"},{value:"7",label:"CCER-购入"},{value:"8",label:"CCER-售出"},{value:"9",label:"配额-履约"},{value:"10",label:"CCER-履约"},{value:"11",label:"碳中和"}]}},methods:{show(e){this.$refs.allDialog.showDialog(),e&&(this.form=e)}}},n=s,p=a("1805"),c=Object(p["a"])(n,i,o,!1,null,"4f933dbf",null),d=c.exports,m=a("dd22"),u={components:{newadd:d,pdf:m["a"]},data(){return{url:"../../../assets/text/A01-中国化工生产企业温室气体排放核算方法与报告指南.pdf",currentPage4:1,activeName:"first",dialogVisibled:!1,propertys:[{value:"1",label:"配额-注销"},{value:"2",label:"CCER-注销"},{value:"3",label:"今年分配配额"},{value:"4",label:"碳交易-购入"},{value:"5",label:"碳交易-售出"},{value:"6",label:"CCER-售出"},{value:"7",label:"CCER-购入"},{value:"8",label:"CCER-售出"},{value:"9",label:"配额-履约"},{value:"10",label:"CCER-履约"},{value:"11",label:"碳中和"}],colums:[{width:"100px",type:"index",label:"序号"},{width:"160px",prop:"date",label:"年度"},{width:"190px",prop:"types",label:"类别"},{prop:"details",label:"详情"},{width:"160px",prop:"price",label:"单价(元)"},{width:"160px",prop:"number",label:"数量(吨)"},{width:"160px",prop:"totalPrice",label:"总价(元)"},{prop:"actionBar",label:"操作",template:!0,width:"140px"}],tableData:[{date:"2021",types:"配额-注销",details:"--",number:"865",price:"36",totalPrice:"31140",id:"123"},{date:"2021",types:"CCER-履约",details:"--",number:"12534",price:"40",totalPrice:"501360",id:"124"},{date:"2021",types:"CCER-购入",details:"--",number:"1300",price:"48",totalPrice:"62400",id:"125"},{date:"2019",types:"碳交易-售出",details:"--",number:"268",price:"38",totalPrice:"10184",id:"126"},{date:"2019",types:"今年分配配额",details:"--",number:"1500",price:"42",totalPrice:"63000",id:"127"}],form:{},optionList:{title:{text:"年度碳资产持有情况",left:"center"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["CCER-履约","今年分配配额","CCER-购入","配额-注销","碳交易-售出"],axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value"}],series:[{name:"持有量(吨)",type:"bar",barWidth:"60%",data:[12534,1500,1300,865,268]}]},optionList1:{title:{text:"年度碳资产分布情况",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"碳资产持有量(吨)",type:"pie",radius:"50%",data:[{value:865,name:"配额-注销"},{value:12534,name:"CCER-履约"},{value:1300,name:"CCER-购入"},{value:268,name:"碳交易-售出"},{value:1500,name:"今年分配配额"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},optionList2:{title:{text:"年度碳资产总价",left:"center"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["CCER-履约","今年分配配额","CCER-购入","配额-注销","碳交易-售出"],axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value"}],series:[{name:"持有量(吨)",type:"bar",barWidth:"60%",data:[501360,63e3,62400,31140,10184]}]},optionList3:{title:{text:"年度碳资产总价分布情况",left:"center"},tooltip:{trigger:"item",top:30},legend:{orient:"vertical",left:"left",top:20},series:[{name:"碳资产持有量(吨)",type:"pie",radius:"50%",data:[{value:31140,name:"配额-注销"},{value:501360,name:"CCER-履约"},{value:62400,name:"CCER-购入"},{value:10184,name:"碳交易-售出"},{value:63e3,name:"今年分配配额"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}}},methods:{toEdit(e){this.$refs["add"].show(e)},getPropertyList(){},add(e){this.$refs["add"].show(e)},handleSizeChange(e){console.log(`每页 ${e} 条`)},handleCurrentChange(e){console.log("当前页: "+e)}}},b=u,f=Object(p["a"])(b,l,r,!1,null,"1ebb4214",null);t["default"]=f.exports}}]);