(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2566bd1a"],{"0096":function(t,e,i){t.exports=i.p+"img/carbonBoundary_device.23abde6f.png"},"14b1":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("basic-container",[e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:12}},[e("div",{staticClass:"col-left"},[e("div",{staticClass:"col-left-top"},[e("div",{staticClass:"line"}),e("div",[e("div",{staticClass:"col-left-top-title"},[t._v("总企业数量")]),e("div",{staticClass:"col-left-top-num"},[t._v(" "+t._s(25)+" ")])])]),e("el-row",{attrs:{gutter:16}},t._l(t.enterpriseData.enterpriseTypeMap,(function(i,a){return e("el-col",{key:a,attrs:{span:8}},[e("div",{staticClass:"item-box"},[e("div",{staticClass:"item-box-title"},[t._v(" "+t._s(i.name)+" ")]),e("div",{staticClass:"num"},[t._v(t._s(i.value))])])])})),1)],1)]),e("el-col",{attrs:{span:12}},[e("div",{staticClass:"col-right"},[e("div",{staticClass:"col-left-top"},[e("div",{staticClass:"line"}),e("div",[e("div",{staticClass:"col-left-top-title"},[t._v("总设备数量")]),e("div",{staticClass:"col-left-top-num"},[t._v(" "+t._s(78)+" ")])])]),e("el-row",{attrs:{gutter:16}},t._l(t.facilityData.facilityTypeMap,(function(i,a){return e("el-col",{key:a,attrs:{span:8}},[e("div",{staticClass:"item-box"},[e("div",{staticClass:"item-box-title"},[t._v(" "+t._s(i.name)+" ")]),e("div",{staticClass:"num"},[t._v(t._s(i.value))])])])})),1)],1)])],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:8}},[e("div",{ref:"referer",staticClass:"header-col"})]),e("el-col",{attrs:{span:8}},[e("div",{ref:"shureferer",staticClass:"header-col"})]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"header-col"},[e("div",{staticClass:"card-title"},[t._v("快捷入口")]),e("div",[e("el-row",{attrs:{gutter:20}},t._l(t.inletList,(function(i,a){return e("el-col",{key:a,attrs:{span:6}},[e("div",{staticClass:"card-col",on:{click:function(e){return t.handleRoute(i.path)}}},[e("img",{staticClass:"card-image",attrs:{src:i.myImg}}),e("div",{staticClass:"card-content"},[t._v(t._s(i.title))])])])})),1)],1)])])],1)],1)},r=[],s=(i("fcd3"),i("bc57")),o=i("9031"),l=i("f0a4"),n={data(){return{colorArr:[],colorArrTwo:[],optionTypePie:null,optionStatePie:null,enterpriseData:{enterpriseTypeMap:[]},facilityData:{},stagingData:{},inletList:[{myImg:i("54f9"),title:"组织架构管理",path:"/company/dept"},{myImg:i("0096"),title:"用能设备管理",path:""}]}},computed:{...Object(l["b"])(["companyInfo"])},async mounted(){this.colorArrTwo=Object(o["b"])(),this.getDeviceTypeDistribution()},methods:{async getWorkBenchesWorkDetailFn(){await Object(s["getWorkBenchesWorkDetail"])().then(t=>{let{enterpriseData:e,facilityData:i}=t.data.data;this.enterpriseData=e,console.log(this.enterpriseData),this.facilityData=i,this.stagingData=t.data.data,this.facilityData.facilityTypeMap=this.facilityData.facilityTypeMap.map(t=>(t.name=t.name+"设备数量",t))})},getDeviceTypeDistribution(){this.optionTypePie={title:{text:"设备类型分布",left:"left",top:"0",textStyle:{fontSize:16,fontFamily:"PingFangSC",color:"#1b1b1b"}},tooltip:{trigger:"item",formatter:function(t){var e=t.name+"
",i=t.color;return e+='',e+=t.value+"个",e+='
'+t.percent+"%",e}},grid:{left:"10%",right:"60%"},legend:{type:"scroll",orient:"vertical",right:"0",top:"0"},series:[{type:"pie",radius:["35%","70%"],center:["40%","50%"],avoidLabelOverlap:!0,minAngle:10,itemStyle:{borderRadius:3,borderColor:"#fff",borderWidth:2},label:{show:!1},data:[{name:"发电机组",value:1},{name:"汽轮机",value:1},{name:"1",value:2},{name:"类型二",value:1},{name:"燃煤锅炉",value:1},{name:"锅炉辅机",value:1}],color:this.colorArrTwo}]},this.optionStatePie={title:{text:"设备状态分布",left:"left",top:"0",textStyle:{fontSize:16,fontFamily:"PingFangSC",color:"#1b1b1b"}},tooltip:{trigger:"item",formatter:function(t){var e=t.name+"
",i=t.color;return e+='',e+=t.value+"个",e+='
'+t.percent+"%",e}},grid:{left:"10%",right:"60%"},legend:{type:"scroll",orient:"vertical",right:"0",top:"0"},series:[{type:"pie",radius:["35%","70%"],center:["40%","50%"],avoidLabelOverlap:!0,minAngle:10,itemStyle:{borderRadius:3,borderColor:"#fff",borderWidth:2},label:{show:!1},data:[{name:"运行",value:"86.00"},{name:"维修",value:"14.00"}],color:this.colorArr}]},this.optionsPiesTwo(),this.optionsPiesThree()},optionsPiesTwo(){let t;t=this.$echarts.init(this.$refs.referer),t.clear(),this.$nextTick(()=>{t.setOption(this.optionTypePie),window.addEventListener("resize",()=>{t.resize()})})},optionsPiesThree(){let t;t=this.$echarts.init(this.$refs.shureferer),t.clear(),this.$nextTick(()=>{t.setOption(this.optionStatePie),window.addEventListener("resize",()=>{t.resize()})})},handleRoute(t){console.log(t,"path"),this.$router.push({path:t})}}},c=n,p=(i("2239"),i("1805")),d=Object(p["a"])(c,a,r,!1,null,"7bee15bf",null);e["default"]=d.exports},"1b55":function(t,e,i){},2239:function(t,e,i){"use strict";i("1b55")},"54f9":function(t,e,i){t.exports=i.p+"img/carbonBoundary_framework.6ec7ccba.png"},9031:function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return r}));const a=()=>{const t=["#2474FF","#FFA200","#1C3FFF","#BD1CFF","#1CD4FF","#19C297","#EB5454","#19C25F","#24BDFF","#FF4D01","#EB5486","#19B4C2","#242BFF","#FFF701","#EB54B9","#1927C2","#6624FF","#34FF01","#A054EB"];return t},r=()=>{const t=["#19C297","#FFA200","#2474FF","#EB5454","#C7C7C7","#9F54EB","#42E5E3"];return t}}}]);