(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b2b39"],{"24de":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("basic-container",[t("avue-crud",{ref:"crud",attrs:{"table-loading":e.loading,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,"selection-change":e.selectionChange},scopedSlots:e._u([{key:"dataStatus",fn:function(a){return[t("div",{staticClass:"moon"},["已通过"==a.row.dataStatus?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()],1)]}},{key:"menu",fn:function({row:a}){return[t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-view"},on:{click:function(t){return e.handleDetail(a)}}},[e._v("查 看")])]}}])},[t("template",{slot:"menuLeft"},[t("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-upload2"},on:{click:e.handleExport}},[e._v("导 出")])],1)],2),t("cus-drawe",{attrs:{visible:e.visible,size:"80%",buttons:e.buttonList,title:"管理详情"},on:{handleBeforeClose:e.handleBeforeClose,buttonClick:e.buttonClick}},[t("ExamineDetail",{ref:"examineDetail",attrs:{detailId:e.detailId,isExamine:e.isExamine}})],1)],1)},i=[],s=(a("aada"),a("1287"),a("2fb4"),a("5c2f")),r=a("882a"),o={components:{ExamineDetail:s["a"]},props:[],data(){return{loading:!1,query:{},option:{height:"auto",calcHeight:30,align:"left",addBtn:!1,editBtn:!1,delBtn:!1,searchMenuSpan:6,selection:!0,tip:!1,column:[{label:"年份",prop:"year",width:100,search:!0,type:"year",searchLabelWidth:50,valueFormat:"yyyy",fixed:"left"},{label:"月份",prop:"month",fixed:"left"},{label:"行业",prop:"industry",search:!0,type:"select",dicFormatter:e=>e.data[0].children,width:120},{label:"企业名称",prop:"enterpriseName",fixed:"left",width:200,search:!0,type:"select"},{label:"碳排放值(tCO2)",prop:"carbonEmissions",width:150},{label:"能源消费(tCe)",prop:"energyConsumption",width:150},{label:"企业产值(万元)",prop:"produceValue",width:150},{label:"排放强度(tCO2/万元)",prop:"carbonIntensity",width:150},{label:"状态",prop:"dataStatus",slot:!0}]},data:[{id:"1763042979510919169",createUser:"1762881630190538753",createDept:"1762867586717028353",createTime:"2024-02-29 11:26:17",updateUser:"1746813492465143810",updateTime:"2024-02-29 14:47:14",status:1,isDeleted:0,tenantId:"416380",enterpriseName:"啸莱能源有限公司",year:"2024",month:"2",carbonEmissions:"11542",industry:"发电行业",includeCarbonClassification:"中国发电企业",includeCarbonMarkets:"热电联产",energyConsumption:"325",industrialWastewaterGeneration:"125",industrialSolidWasteGeneration:"452",industrialRepeatedWaterConsumption:"626",totalIndustrialWaterConsumption:"123",blueWaterConsumption:"665",greenWaterConsumption:"225",greyWaterConsumption:"112",industrialSolidWasteUtilization:"225",produceValue:"154352",dataStatus:"已通过",remark:"审核通过",carbonIntensity:"0.0748",energyConsumptionIntensity:"0.0021",accountEnterpriseId:"1762867586717028353",attaFlag:!0},{id:"1763083003229020161",createUser:"1762881919673012226",createDept:"1762869596682031106",createTime:"2024-02-29 14:05:19",updateUser:"1762881283053162498",updateTime:"2024-03-05 18:23:37",status:1,isDeleted:0,tenantId:"416380",enterpriseName:"鹰电能源有限公司",year:"2024",month:"2",carbonEmissions:"983321",industry:"发电行业",includeCarbonClassification:"中国发电企业",includeCarbonMarkets:"热电联产",energyConsumption:"12000",industrialWastewaterGeneration:"100",industrialSolidWasteGeneration:"100",industrialRepeatedWaterConsumption:"100",totalIndustrialWaterConsumption:"100",blueWaterConsumption:"50",greenWaterConsumption:"20",greyWaterConsumption:"30",industrialSolidWasteUtilization:"100",produceValue:"100000",dataStatus:"已通过",remark:"通过",carbonIntensity:"9.8332",energyConsumptionIntensity:"0.1200",accountEnterpriseId:"1762869596682031106",attaFlag:!1},{id:"1763087304206811137",createUser:"1762881630190538753",createDept:"1762867586717028353",createTime:"2024-02-29 14:22:25",updateUser:"1746813492465143810",updateTime:"2024-02-29 14:46:45",status:1,isDeleted:0,tenantId:"416380",enterpriseName:"圣莱能源有限公司",year:"2023",month:"2",carbonEmissions:"355",industry:"发电行业",includeCarbonClassification:"中国发电企业",includeCarbonMarkets:"热电联产",energyConsumption:"102",industrialWastewaterGeneration:"213",industrialSolidWasteGeneration:"122",industrialRepeatedWaterConsumption:"142",totalIndustrialWaterConsumption:"25",blueWaterConsumption:"12",greenWaterConsumption:"25",greyWaterConsumption:"41",industrialSolidWasteUtilization:"25",produceValue:"4411",dataStatus:"已通过",remark:"审核通过",carbonIntensity:"0.0805",energyConsumptionIntensity:"0.0231",accountEnterpriseId:"1762867586717028353",attaFlag:!1}],page:{total:0,currentPage:1,pageSize:10},ids:[],buttonList:[{type:"",icon:"el-icon-circle-close",label:"取消",btnName:"cancel"}],isExamine:!1,visible:!1,detailId:""}},watch:{},created(){},methods:{getList(){return new Promise(e=>{let t={current:this.page.currentPage,size:this.page.pageSize,dataStatus:"YTG",...this.query};this.loading=!0,Object(r["getDataManage"])(t).then(t=>{if(200===t.data.code){const a=t.data.data;this.page.total=a.total,this.data=a.records,this.loading=!1,e()}})})},selectionChange(e){e.length>0&&(this.ids=e.map(e=>e.id))},handleExport(){if(0!==this.ids.length){const e=this.$loading({lock:!0,text:"正在导出文件,请稍等。",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(r["exportDataManage"])(this.ids).then(t=>{e.close();const a=t.data,n=new Blob([a],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),i="导出文件.xlsx";if("download"in document.createElement("a")){const e=document.createElement("a");e.download=i,e.style.display="none",e.href=URL.createObjectURL(n),document.body.appendChild(e),e.click(),URL.revokeObjectURL(e.href),document.body.removeChild(e)}else navigator.msSaveBlob(n,i)})}else this.$message.error("请选择导出的数据")},handleDetail(e){this.visible=!0,this.detailId=e.id},handleBeforeClose(){this.visible=!1},buttonClick(e){"cancel"===e&&this.$confirm("确认关闭?").then(e=>{this.handleBeforeClose()}).catch(e=>{})},searchReset(){this.query={},this.getList()},searchChange(e,t){console.log(e,"params"),this.query=e,this.page.current=1,this.getList(),t()},currentChange(e){this.page.current=e,this.getList()},sizeChange(e){this.page.size=e,this.getList()},refreshChange(){this.page={pageSize:10,currentPage:1,total:0},this.getList()}}},l=o,d=a("1805"),c=Object(d["a"])(l,n,i,!1,null,"d3f7cb1e",null);t["default"]=c.exports}}]);