(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-98096be8"],{"2cff":function(o,n,i){},"43a0":function(o,n,i){"use strict";i("2cff")},5530:function(o,n,i){o.exports=i.p+"img/greenElectricity.1e43b86e.png"},6400:function(o,n,i){o.exports=i.p+"img/AssetAnalysis.b5f5a4db.png"},"6cf2":function(o,n,i){"use strict";i.r(n);var e=function(){var o=this,n=o._self._c;return n("basic-container",[n("el-row",{staticClass:"mb-6",attrs:{gutter:16}},[n("el-col",{attrs:{span:15}},[n("div",{staticClass:"bc"},[n("el-row",{staticClass:"card1-row",attrs:{gutter:16}},[n("el-col",{attrs:{span:8}},[n("div",{staticClass:"card1-box"},[n("div",{staticClass:"card1-box-content"},[n("div",{staticClass:"card1-box-tltie"},[o._v("集团总资产")]),n("div",{staticClass:"card1-box-num"},[n("div",{staticClass:"card1-box-value"},[o._v(" "+o._s(o.totalSum>1e4?(o.totalSum/1e4).toFixed(2):o.totalSum)+" ")]),o.totalSum>1e4?n("div",{staticClass:"card1-box-unit"},[o._v(" 万吨 ")]):n("div",{staticClass:"card1-box-unit"},[o._v("吨")])])])])]),n("el-col",{attrs:{span:8}},[n("div",{staticClass:"card1-box"},[n("div",{staticClass:"card1-box-content"},[n("div",{staticClass:"card1-box-tltie"},[o._v("集团配额数量")]),n("div",{staticClass:"card1-box-num"},[n("div",{staticClass:"card1-box-value"},[o._v(" "+o._s(o.quotaTotal>1e4?(o.quotaTotal/1e4).toFixed(2):o.quotaTotal)+" ")]),o.quotaTotal>1e4?n("div",{staticClass:"card1-box-unit"},[o._v(" 万吨 ")]):n("div",{staticClass:"card1-box-unit"},[o._v("吨")])])])])]),n("el-col",{attrs:{span:8}},[n("div",{staticClass:"card1-box"},[n("div",{staticClass:"card1-box-content"},[n("div",{staticClass:"card1-box-tltie"},[o._v("集团CCER数量")]),n("div",{staticClass:"card1-box-num"},[n("div",{staticClass:"card1-box-value"},[o._v(" "+o._s(o.ccerTotal>1e4?(o.ccerTotal/1e4).toFixed(2):o.ccerTotal)+" ")]),o.ccerTotal>1e4?n("div",{staticClass:"card1-box-unit"},[o._v(" 万吨 ")]):n("div",{staticClass:"card1-box-unit"},[o._v("吨")])])])])])],1)],1)]),n("el-col",{attrs:{span:9}},[n("div",{staticClass:"charts-reportbox"},[n("div",{ref:"report",staticClass:"card1-report"})])])],1),n("el-row",{attrs:{gutter:16}},[n("el-col",{attrs:{span:8}},[n("div",{ref:"Performance",staticClass:"charts-box"})]),n("el-col",{attrs:{span:8}},[n("div",{ref:"profitLoss",staticClass:"charts-box"})]),n("el-col",{attrs:{span:8}},[n("div",{staticClass:"charts-box"},[n("div",{staticClass:"card2-title"},[o._v("快捷入口")]),n("div",[n("el-row",{attrs:{gutter:20}},o._l(o.inletList,(function(i,e){return n("el-col",{key:e,attrs:{span:8}},[n("div",{staticClass:"card2-col",on:{click:function(n){return o.handleRoute(i.path)}}},[n("img",{staticClass:"card2-image",attrs:{src:i.myImg}}),n("div",{staticClass:"card2-content"},[o._v(o._s(i.title))])])])})),1)],1)])])],1)],1)},t=[],c=(i("fcd3"),i("2466"),i("9031"),i("2f3b"),function(){var o=this,n=o._self._c;return n("basic-container",[n("avue-crud",{ref:"crud",attrs:{option:o.option,"table-loading":o.loading,data:o.data,permission:o.permissionList,"before-open":o.beforeOpen,"before-close":o.beforeClose},on:{"row-del":o.rowDel,"row-update":o.rowUpdate,"row-save":o.rowSave,"search-change":o.searchChange,"search-reset":o.searchReset,"selection-change":o.selectionChange,"current-change":o.currentChange,"size-change":o.sizeChange,"refresh-change":o.refreshChange,"on-load":o.onLoad,"tree-load":o.treeLoad},scopedSlots:o._u([{key:"menu",fn:function({row:i}){return[o.permission.data_scope_setting?n("el-button",{staticStyle:{border:"0","background-color":"transparent !important"},attrs:{type:"text",icon:"el-icon-setting",size:"small",plain:""},on:{click:function(n){return n.stopPropagation(),o.handleDataScope(i)}}},[o._v("权限配置 ")]):o._e()]}},{key:"source",fn:function({row:o}){return[n("div",{staticStyle:{"text-align":"center"}},[n("i",{class:o.source})])]}}]),model:{value:o.form,callback:function(n){o.form=n},expression:"form"}}),n("el-drawer",{attrs:{title:`[${o.scopeMenuName}] 数据权限配置`,visible:o.drawerVisible,direction:o.direction,"append-to-body":"","before-close":o.handleDrawerClose,size:"1000px"},on:{"update:visible":function(n){o.drawerVisible=n}}},[n("basic-container",[n("avue-crud",{ref:"crudScope",attrs:{option:o.optionScope,data:o.dataScope,page:o.pageScope,"table-loading":o.scopeLoading,"before-open":o.beforeOpenScope},on:{"row-del":o.rowDelScope,"row-update":o.rowUpdateScope,"row-save":o.rowSaveScope,"search-change":o.searchChangeScope,"search-reset":o.searchResetScope,"selection-change":o.selectionChangeScope,"current-change":o.currentChangeScope,"size-change":o.sizeChangeScope,"on-load":o.onLoadScope},scopedSlots:o._u([{key:"scopeType",fn:function({row:i}){return[n("el-tag",[o._v(o._s(i.scopeTypeName))])]}}]),model:{value:o.formScope,callback:function(n){o.formScope=n},expression:"formScope"}},[n("template",{slot:"menuLeft"},[n("el-button",{attrs:{type:"danger",size:"small",icon:"el-icon-delete",plain:""},on:{click:o.handleDeleteScope}},[o._v("删 除 ")])],1)],2)],1)],1)],1)}),a=[],s=i("a6dc"),r=i("7e26"),l=i("f0a4"),u=[{label:"通用图标",list:["iconfont iconicon_roundadd","iconfont iconicon_compile","iconfont iconicon_glass","iconfont iconicon_roundclose","iconfont iconicon_roundreduce","iconfont iconicon_delete","iconfont iconicon_shakehands","iconfont iconicon_task_done","iconfont iconicon_voipphone","iconfont iconicon_safety","iconfont iconicon_work","iconfont iconicon_study","iconfont iconicon_task","iconfont iconicon_subordinate","iconfont iconicon_star","iconfont iconicon_setting","iconfont iconicon_sms","iconfont iconicon_share","iconfont iconicon_secret","iconfont iconicon_scan_namecard","iconfont iconicon_principal","iconfont iconicon_group","iconfont iconicon_send","iconfont iconicon_scan","iconfont iconicon_search","iconfont iconicon_refresh","iconfont iconicon_savememo","iconfont iconicon_QRcode","iconfont iconicon_im_keyboard","iconfont iconicon_redpacket","iconfont iconicon_photo","iconfont iconicon_qq","iconfont iconicon_wechat","iconfont iconicon_phone","iconfont iconicon_namecard","iconfont iconicon_notice","iconfont iconicon_next_arrow","iconfont iconicon_left","iconfont iconicon_more","iconfont iconicon_details","iconfont iconicon_message","iconfont iconicon_mobilephone","iconfont iconicon_im_voice","iconfont iconicon_GPS","iconfont iconicon_ding","iconfont iconicon_exchange","iconfont iconicon_cspace","iconfont iconicon_doc","iconfont iconicon_dispose","iconfont iconicon_discovery","iconfont iconicon_community_line","iconfont iconicon_cloud_history","iconfont iconicon_coinpurse_line","iconfont iconicon_airplay","iconfont iconicon_at","iconfont iconicon_addressbook","iconfont iconicon_boss","iconfont iconicon_addperson","iconfont iconicon_affiliations_li","iconfont iconicon_addmessage","iconfont iconicon_addresslist","iconfont iconicon_add","iconfont icongithub","iconfont icongitee2"]},{label:"系统图标",list:["iconfont icon-zhongyingwen","iconfont icon-caidan","iconfont icon-rizhi1","iconfont icon-zhuti","iconfont icon-suoping","iconfont icon-bug","iconfont icon-qq1","iconfont icon-weixin1","iconfont icon-shouji","iconfont icon-mima","iconfont icon-yonghu","iconfont icon-yanzhengma","iconfont icon-canshu","iconfont icon-dongtai","iconfont icon-iconset0265","iconfont icon-shujuzhanshi2","iconfont icon-tuichuquanping","iconfont icon-rizhi","iconfont icon-cuowutishitubiao","iconfont icon-debug","iconfont icon-iconset0216","iconfont icon-quanxian","iconfont icon-quanxian","iconfont icon-shuaxin","iconfont icon-bofangqi-suoping","iconfont icon-quanping","iconfont icon-navicon","iconfont icon-biaodan","iconfont icon-liuliangyunpingtaitubiao08","iconfont icon-caidanguanli","iconfont icon-cuowu","iconfont icon-wxbgongju","iconfont icon-tuichu","iconfont icon-daohanglanmoshi02","iconfont icon-changyonglogo27","iconfont icon-biaoge","iconfont icon-baidu1","iconfont icon-tubiao","iconfont icon-souhu","iconfont icon-msnui-360","iconfont icon-iframe","iconfont icon-huanyingye"]},{label:"自定义图标",list:["vziconfont icon-jiantouxiangshang","vziconfont icon-jiantouxiangxia","vziconfont icon-zhuanti","vziconfont icon-zuhu","vziconfont icon-jiekouzhongxin","vziconfont icon-tongyong2x","vziconfont icon-book","vziconfont icon-gangweiguanli","vziconfont icon-shenjirizhi","vziconfont icon-tongyongbeifenxitong","vziconfont icon-APIjiekouguanli","vziconfont icon-shujuzidian","vziconfont icon-menu_yh_sjqx","vziconfont icon-yangshi_icon_tongyong_qr","vziconfont icon-tongyongshezhi","vziconfont icon-mingdan-copy","vziconfont icon-a-ziyuan501","vziconfont icon-eryanghuatan","vziconfont icon-zuzhijigouguanli","vziconfont icon-shangchuancuowurizhi","vziconfont icon-guanlianfujian","vziconfont icon-dayin","vziconfont icon-tubiao02","vziconfont icon-tubiao03","vziconfont icon-tubiao04","vziconfont icon-tubiao05","vziconfont icon-tubiao14","vziconfont icon-tubiao207","vziconfont icon-tubiao103","vziconfont icon-tubiao104","vziconfont icon-tubiao106","vziconfont icon-tubiao114","vziconfont icon-rizhiguanli","vziconfont icon-yuncunchu","vziconfont icon-yidongyunkongzhitaiicon45","vziconfont icon-fuwuzhishi","vziconfont icon-tongyongleiiobaojingshuru","vziconfont icon-tongyongleijiankongquyu","vziconfont icon-tongyongleiyonghunv","vziconfont icon-tongyongleizhongdianjianshiyuan","vziconfont icon-tongyongleishipinzhegai","vziconfont icon-tongyongleishitulixian","vziconfont icon-tongyongleitianjiashitu","vziconfont icon-tongyongleixunchadian","vziconfont icon-tongyongleiyonghunan","vziconfont icon-xitong","vziconfont icon-shebeiguanli","vziconfont icon-baogao","vziconfont icon-wenhao","vziconfont icon-shenheguanli","vziconfont icon-navicon-tysz","vziconfont icon-jinghuapaifang","vziconfont icon-weiwangguanicon-defuben-","vziconfont icon-cunchu","vziconfont icon-yonghuguanli","vziconfont icon-nengyuanxiaohao","vziconfont icon-tongyong-daochutubiao","vziconfont icon-tongyong-lianxikefutubiao","vziconfont icon-xitongcanshupeizhiicon-","vziconfont icon-tongyongjisuanfuwuqi","vziconfont icon-wenjiancunchu","vziconfont icon-zhuanxierizhi","vziconfont icon-rizhi","vziconfont icon-ziyuanxiaohao","vziconfont icon-refresh-tongyong","vziconfont icon-bianji-tongyong","vziconfont icon-mima-tongyong","vziconfont icon-tianjia-tongyong-","vziconfont icon-tianjia-tongyong-1","vziconfont icon-danwei","vziconfont icon-gengduo_-tongyong","vziconfont icon-gengduo_-tongyong1","vziconfont icon-shi-tongyong","vziconfont icon-biaozhunmeipaifang","vziconfont icon-biaozhuntanpaifang","vziconfont icon-nenghaodanyuan","vziconfont icon-quanxianguanli","vziconfont icon-zhishiku","vziconfont icon-xitong-","vziconfont icon-tongyong","vziconfont icon-zidian","vziconfont icon-tongyongshebei","vziconfont icon-xwtubiaoku-03","vziconfont icon-xwtubiaoku-12","vziconfont icon-xwtubiaoku-08","vziconfont icon-xwtubiaoku-17","vziconfont icon-jisuangongshi","vziconfont icon-tianbao","vziconfont icon-yinzi","vztimes vzsdapingkeshihua","vztimes vzschanpintanzuji2","vztimes vzstanhesuanguanli","vztimes vzsshuangtanjiashicang","vztimes vzsshujuguanli","vztimes vzszhiliangkongzhijihua","vztimes vzsjichuzhicheng","vztimes vzsyanfagongju","vztimes vzsshenjiguanli","vztimes vzstanjiaoyiguanli","vztimes vzsnengtanzhihuiyunpingtai","vztimes vzsquanxianguanli","vztimes vzsjiancejihua","vztimes vzsyujingguanli","vztimes vzsxitongguanli","vztimes vzsziyuanguanli","vztimes vzszhishiku","vztimes vzstanzichanguanli","vztimes vzsyinzikuguanli","vztimes vzstanbiaoqian","iconvz vzicon-bangzhu","iconvz vzicon-yujing","iconvz vzicon-cc","iconvz vzicon-zichan","iconvz vzicon-lvyue--","iconvz vzicon-erji-peieguanli","iconvz vzicon-fenxi","iconvz vzicon-jihua","iconvz vzicon-yujing1","iconvz vzicon-quanbueduzichan","iconvz vzicon-MROxitong-eduguanli","iconvz vzicon-huanbaozhuangxiu","iconvz vzicon-cc1","iconvz vzicon-jihuarenwu","iconvz vzicon-zichanchuzhishenqing-120","iconvz vzicon-zichan1","vztimes vzstanbianjie"]}],d=i("d9a3"),p={data(){return{form:{},selectionList:[],query:{},loading:!0,parentId:0,page:{pageSize:10,currentPage:1,total:0},drawerVisible:!1,direction:"rtl",scopeMenuId:0,scopeMenuCode:"",scopeMenuName:"菜单",scopeLoading:!1,menu:!0,watchMode:!0,option:{lazy:!0,tip:!1,simplePage:!0,searchShow:!0,searchMenuSpan:6,dialogWidth:"60%",tree:!0,border:!0,index:!0,selection:!0,viewBtn:!1,editBtn:!1,addBtn:!1,delBtn:!1,menuWidth:150,dialogClickModal:!1,column:[{label:"菜单名称",prop:"name",search:!0,rules:[{required:!0,message:"请输入菜单名称",trigger:"blur"}]},{label:"路由地址",prop:"path",rules:[{required:!0,message:"请输入路由地址",trigger:"blur"}]},{label:"上级菜单",prop:"parentId",type:"tree",dicUrl:"/api/blade-system/menu/tree",hide:!0,props:{label:"title"},rules:[{required:!1,message:"请选择上级菜单",trigger:"click"}]},{label:"菜单图标",prop:"source",type:"icon",slot:!0,width:80,iconList:u,rules:[{required:!0,message:"请输入菜单图标",trigger:"click"}]},{label:"菜单编号",prop:"code",search:!0,rules:[{required:!0,message:"请输入菜单编号",trigger:"blur"}]},{label:"菜单类型",prop:"category",type:"radio",dicData:[{label:"菜单",value:1},{label:"按钮",value:2}],hide:!0,rules:[{required:!0,message:"请选择菜单类型",trigger:"blur"}]},{label:"菜单别名",prop:"alias",rules:[{required:!0,message:"请输入菜单别名",trigger:"blur"}]},{label:"按钮功能",prop:"action",type:"radio",dicData:[{label:"工具栏",value:0},{label:"操作栏",value:1},{label:"工具操作栏",value:2}],hide:!0,rules:[{required:!0,message:"请选择按钮功能",trigger:"blur"}]},{label:"菜单排序",prop:"sort",type:"number",width:80,rules:[{required:!0,message:"请输入菜单排序",trigger:"blur"}]},{label:"新窗口",prop:"isOpen",type:"radio",dicData:[{label:"否",value:0},{label:"是",value:1}],hide:!0},{label:"菜单备注",prop:"remark",type:"textarea",span:24,minRows:6,hide:!0}]},data:[],formScope:{},selectionListScope:[],pageScope:{pageSize:10,currentPage:1,total:0},optionScope:{tip:!1,searchShow:!0,searchMenuSpan:6,border:!0,index:!0,viewBtn:!0,selection:!0,menuWidth:200,dialogWidth:900,dialogClickModal:!1,column:[{label:"权限名称",prop:"scopeName",search:!0,value:"",rules:[{required:!0,message:"请输入数据权限名称",trigger:"blur"}]},{label:"权限编号",prop:"resourceCode",search:!0,width:100,rules:[{required:!0,message:"请输入数据权限编号",trigger:"blur"}]},{label:"权限字段",prop:"scopeColumn",width:130,rules:[{required:!0,message:"请输入数据权限编号",trigger:"blur"}]},{label:"规则类型",type:"select",dicUrl:"/api/blade-system/dict/dictionary?code=data_scope_type",props:{label:"dictValue",value:"dictKey"},dataType:"number",slot:!0,width:140,prop:"scopeType",rules:[{required:!0,message:"请输入通知类型",trigger:"blur"}]},{label:"可见字段",prop:"scopeField",span:24,hide:!0,value:"*",rules:[{required:!0,message:"请输入数据权限可见的字段",trigger:"blur"}]},{label:"权限类名",prop:"scopeClass",span:24,hide:!0,rules:[{required:!0,message:"请输入MybatisMapper对应方法的完整类名路径",trigger:"blur"}]},{label:"规则值",prop:"scopeValue",span:24,minRows:5,type:"textarea",display:!0,hide:!0},{label:"备注",prop:"remark",span:24,hide:!0}]},dataScope:[]}},watch:{"formScope.scopeType"(){this.initScope()}},computed:{...Object(l["b"])(["permission"]),permissionList(){return{addBtn:this.vaildData(this.permission.menu_add,!1),viewBtn:this.vaildData(this.permission.menu_view,!1),delBtn:this.vaildData(this.permission.menu_delete,!1),editBtn:this.vaildData(this.permission.menu_edit,!1)}},ids(){let o=[];return this.selectionList.forEach(n=>{o.push(n.id)}),o.join(",")},scopeIds(){let o=[];return this.selectionListScope.forEach(n=>{o.push(n.id)}),o.join(",")}},methods:{initScope(){const o=d["a"].toInt(this.formScope.scopeType),n=this.watchMode;let i="-",e="暂无";1===o?(i="-",e="全部可见"):2===o?(i="create_user",e="本人可见"):3===o?(i="create_dept",e="所在机构可见"):4===o?(i="create_dept",e="所在机构可见及子级可见"):5===o&&(i="",e="自定义"),this.$refs.crudScope.option.column.filter(t=>{n&&("scopeName"===t.prop&&(this.formScope.scopeName=`${this.scopeMenuName} [${e}]`),"resourceCode"===t.prop&&(this.formScope.resourceCode=this.scopeMenuCode),"scopeColumn"===t.prop&&(this.formScope.scopeColumn=i)),"scopeValue"===t.prop&&(t.display=5===o)})},rowSave(o,n,i){Object(s["add"])(o).then(()=>{this.onLoad(this.page),this.$message({type:"success",message:"操作成功!"}),n()},o=>{window.console.log(o),i()})},rowUpdate(o,n,i,e){Object(s["update"])(o).then(()=>{this.onLoad(this.page),this.$message({type:"success",message:"操作成功!"}),i()},o=>{window.console.log(o),e()})},rowDel(o){this.$confirm("确定将选择数据删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>Object(s["remove"])(o.id)).then(()=>{this.onLoad(this.page),this.$message({type:"success",message:"操作成功!"})})},searchReset(){this.query={},this.parentId=0,this.onLoad(this.page)},searchChange(o,n){this.query=o,this.parentId="",this.page.currentPage=1,this.onLoad(this.page,o),n()},selectionChange(o){this.selectionList=o},selectionClear(){this.selectionList=[],this.$refs.crud.toggleSelection()},handleDelete(){0!==this.selectionList.length?this.$confirm("确定将选择数据删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>Object(s["remove"])(this.ids)).then(()=>{this.onLoad(this.page),this.$message({type:"success",message:"操作成功!"}),this.$refs.crud.toggleSelection()}):this.$message.warning("请选择至少一条数据")},beforeOpen(o,n){["edit","view"].includes(n)&&Object(s["getMenu"])(this.form.id).then(o=>{this.form=o.data.data}),o()},beforeClose(o){this.formScope={},o()},currentChange(o){this.page.currentPage=o},sizeChange(o){this.page.pageSize=o},refreshChange(){this.onLoad(this.page,this.query)},onLoad(o,n={}){this.loading=!0,Object(s["getLazyMenuList"])(this.parentId,Object.assign(n,this.query)).then(o=>{this.data=o.data.data,this.loading=!1,this.selectionClear()})},treeLoad(o,n,i){const e=o.id;Object(s["getLazyMenuList"])(e).then(o=>{i(o.data.data)})},handleDataScope(o){this.drawerVisible=!0,this.scopeMenuId=o.id,this.scopeMenuCode=o.code,this.scopeMenuName=o.name,this.onLoadScope(this.pageScope)},handleDrawerClose(o){o()},rowSaveScope(o,n,i){o={...o,menuId:this.scopeMenuId},Object(r["addDataScope"])(o).then(()=>{this.onLoadScope(this.pageScope),this.$message({type:"success",message:"操作成功!"}),n()},o=>{window.console.log(o),i()})},rowUpdateScope(o,n,i,e){o={...o,menuId:this.scopeMenuId},Object(r["updateDataScope"])(o).then(()=>{this.onLoadScope(this.pageScope),this.$message({type:"success",message:"操作成功!"}),i()},o=>{window.console.log(o),e()})},rowDelScope(o){this.$confirm("确定将选择数据删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>Object(r["removeDataScope"])(o.id)).then(()=>{this.onLoadScope(this.pageScope),this.$message({type:"success",message:"操作成功!"})})},handleDeleteScope(){0!==this.selectionListScope.length?this.$confirm("确定将选择数据删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>Object(r["removeDataScope"])(this.scopeIds)).then(()=>{this.onLoadScope(this.pageScope),this.$message({type:"success",message:"操作成功!"}),this.$refs.crudScope.toggleSelection()}):this.$message.warning("请选择至少一条数据")},beforeOpenScope(o,n){["add"].includes(n)&&(this.watchMode=!0,this.initScope()),["edit","view"].includes(n)&&(this.watchMode=!1,Object(r["getMenuDataScope"])(this.formScope.id).then(o=>{this.formScope=o.data.data})),o()},searchResetScope(){this.onLoadScope(this.pageScope)},searchChangeScope(o,n){this.onLoadScope(this.pageScope,o),n()},selectionChangeScope(o){this.selectionListScope=o},currentChangeScope(o){this.pageScope.currentPage=o},sizeChangeScope(o){this.pageScope.pageSize=o},onLoadScope(o,n={}){this.scopeLoading=!0;const i={...n,menuId:this.scopeMenuId};Object(r["getListDataScope"])(o.currentPage,o.pageSize,Object.assign(i,this.query)).then(o=>{const n=o.data.data;this.pageScope.total=n.total,this.dataScope=n.records,this.selectionListScope=[],this.scopeLoading=!1})}}},h=p,g=i("1805"),f=Object(g["a"])(h,c,a,!1,null,null,null),m=(f.exports,{components:{},props:[],data(){return{colorArr:[],myImg1:i("71d0"),myImg2:i("8d39"),myImg3:i("7447"),inletList:[{myImg:i("ed8b"),title:"配额管理",path:"/carbonAsset/quota"},{myImg:i("f6b5"),title:"CCER管理",path:"/carbonAsset/ccer"},{myImg:i("5530"),title:"绿电管理",path:"/carbonAsset/greenElectricity"},{myImg:i("d4a1"),title:"绿证管理",path:"/carbonAsset/greenCertificate"},{myImg:i("6400"),title:"资产分析",path:"/carbonAsset/analysis"}],totalData:{},piearr:[],ccerData:[{id:"1607297995118735361",parentId:"1607296866188259330",code:"vztimes_ccer",dictKey:"ccer_buy",dictValue:"CCER-购入",sort:1,remark:"add",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607299385643757569",parentId:"1607296866188259330",code:"vztimes_ccer",dictKey:"ccer_cell",dictValue:"CCER-注销",sort:2,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607299510025842689",parentId:"1607296866188259330",code:"vztimes_ccer",dictKey:"ccer_for",dictValue:"CCER-履约",sort:3,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607299609883832321",parentId:"1607296866188259330",code:"vztimes_ccer",dictKey:"ccer_sell",dictValue:"CCER-售出",sort:4,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607294764548354050",parentId:"1607294362578841602",code:"vztimes_quota",dictKey:"quota_year",dictValue:"国家分配配额",sort:1,remark:"add",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607294990063497217",parentId:"1607294362578841602",code:"vztimes_quota",dictKey:"quota_buy",dictValue:"配额-购入",sort:2,remark:"add",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607296088870481921",parentId:"1607294362578841602",code:"vztimes_quota",dictKey:"quota_cell",dictValue:"配额-注销",sort:3,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607296451249958914",parentId:"1607294362578841602",code:"vztimes_quota",dictKey:"quota_for",dictValue:"配额-履约",sort:4,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607296670935019521",parentId:"1607294362578841602",code:"vztimes_quota",dictKey:"quota_sell",dictValue:"配额-售出",sort:5,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1}],totalSum:0,quotaTotal:0,ccerTotal:0,ccerRatio:[],countryEmission:[],ccerProportion:[],ccerChart:[]}},computed:{},watch:{},mounted(){this.init()},methods:{init(){this.getData()},getReport(){this.piearr=this.ccerChart;let o={title:{text:"资产趋势",left:"left",top:"0",textStyle:{fontSize:16}},tooltip:{trigger:"item",formatter:function(o){var n=o.name+"
",i=o.color;return n+=''+o.percent+"%",n}},grid:{left:"5%",right:"60%"},legend:{type:"scroll",orient:"vertical",right:"1%",width:200,itemGap:10,icon:"circle",textStyle:{fontSize:14}},series:[{type:"pie",radius:["35%","60%"],center:["20%","50%"],avoidLabelOverlap:!0,minAngle:10,itemStyle:{borderRadius:3,borderColor:"#fff",borderWidth:2},label:{show:!1},data:this.piearr,color:this.colorArr}]};var n=this.$echarts.init(this.$refs.report);n.clear(),this.$nextTick(()=>{n.setOption(o),window.addEventListener("resize",()=>{n.resize()})})},getPerformance(){let o=[],n=[],i=[];this.countryEmission.forEach(e=>{o.push(e.emissionQuota),n.push(e.countryQuota),i.push(e.name)});let e={title:{text:"配额资产趋势",left:"left",top:"0%",textStyle:{fontSize:16}},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}},formatter:function(o){for(var n,i,e=o[0].name+"
",t=0;t",i="#2474FF"):(n=" t
",i="#B1CCFC"),e+='',e+=Number(o[t].value).toFixed(2)+n;return e}},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,6,6],color:"#2474FF"},data:o},{name:"国家下发配额",type:"bar",barWidth:"8",itemStyle:{barBorderRadius:[6,6,6,6],color:"#B1CCFC"},data:n}],xAxis:{type:"category",data:i,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(o,n){const i=2;return o.length>i?o.substring(0,i)+"...":o}}},yAxis:{type:"value",data:[],splitLine:{show:!0,lineStyle:{type:"dashed"}}},legend:{left:"left",top:"25"}};var t=this.$echarts.init(this.$refs.Performance);t.clear(),this.$nextTick(()=>{t.setOption(e),window.addEventListener("resize",()=>{t.resize()})})},getProfitLoss(){let o=[],n=[];this.ccerChart.forEach(i=>{o.push(i.value),n.push(i.name)});let i={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:o}],xAxis:{type:"category",data:n,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(o,n){const i=2;return o.length>i?o.substring(0,i)+"...":o}}},yAxis:{type:"value",data:[],splitLine:{show:!0,lineStyle:{type:"dashed"}}}};var e=this.$echarts.init(this.$refs.profitLoss);e.clear(),this.$nextTick(()=>{e.setOption(i),window.addEventListener("resize",()=>{e.resize()})})},getData(){const o={totalSum:"900136727.00",countryEmission:[{name:"精益化工",countryQuota:"900000000.00",emissionQuota:"-899999359.00"},{name:"山横煤电",countryQuota:"900000000.00",emissionQuota:"122200.00"}],ccerTotal:"13886.00",ccerChart:[{name:"ccer_cell",value:"46214.00"},{name:"ccer_sell",value:"11128.00"},{name:"ccer_buy",value:"60228.00"},{name:"quota_for",value:"98500.00"},{name:"quota_cell",value:"100.00"},{name:"quota_sell",value:"20229.00"},{name:"quota_buy",value:"22670.00"},{name:"quota_year",value:"18000.00"}],quotaTotal:"900122841.00"};this.totalSum=o.totalSum,this.quotaTotal=o.quotaTotal,this.ccerTotal=o.ccerTotal,this.ccerChart=o.ccerChart,this.countryEmission=o.countryEmission,this.ccerChart=this.ccerChart.map(o=>{let n=this.ccerData.find(n=>n.dictKey==o.name);return o.name=n.dictValue,o.value=o.value,o}),this.getReport(),this.getPerformance(),this.getProfitLoss()},handleRoute(o){this.$router.push({path:o})}}}),v=m,z=(i("43a0"),Object(g["a"])(v,e,t,!1,null,"0d4b606a",null));n["default"]=z.exports},"71d0":function(o,n,i){o.exports=i.p+"img/total.bc8030a0.png"},7447:function(o,n,i){o.exports=i.p+"img/totalCcerNum.210c1120.png"},"8d39":function(o,n,i){o.exports=i.p+"img/quota.efd6aae5.png"},9031:function(o,n,i){"use strict";i.d(n,"a",(function(){return e})),i.d(n,"b",(function(){return t}));const e=()=>{const o=["#2474FF","#FFA200","#1C3FFF","#BD1CFF","#1CD4FF","#19C297","#EB5454","#19C25F","#24BDFF","#FF4D01","#EB5486","#19B4C2","#242BFF","#FFF701","#EB54B9","#1927C2","#6624FF","#34FF01","#A054EB"];return o},t=()=>{const o=["#19C297","#FFA200","#2474FF","#EB5454","#C7C7C7","#9F54EB","#42E5E3"];return o}},d4a1:function(o,n,i){o.exports=i.p+"img/greenCertificate.5b828f65.png"},d9a3:function(o,n,i){"use strict";i.d(n,"a",(function(){return e}));class e{static notEmpty(o){return!this.isEmpty(o)}static isUndefined(o){return null===o||"undefined"===typeof o}static isEmpty(o){return null===o||"undefined"===typeof o||"string"===typeof o&&""===o&&"undefined"!==o}static toInt(o,n){if(this.isEmpty(o))return void 0===n?-1:n;const i=parseInt(o,0);return Number.isNaN(i)?void 0===n?-1:n:i}static toFormData(o){const n=new FormData;return Object.keys(o).forEach(i=>{n.append(i,Array.isArray(o[i])?o[i].join(","):o[i])}),n}static format(o,n="YYYY-MM-DD HH:mm:ss"){return o?o.format(n):null}static join(o){return o?o.join(","):""}static split(o){return o?String(o).split(","):""}static toStr(o){return"undefined"===typeof o||null===o?"":o}}},ed8b:function(o,n,i){o.exports=i.p+"img/QuotaManagement.f26a798a.png"},f6b5:function(o,n,i){o.exports=i.p+"img/CCER.32dff3bb.png"}}]);