1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d7c8040e"],{"023d":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".count-to-wrapper .content-outer{display:inline-block}.count-to-wrapper .content-outer .count-to-unit-text{font-style:normal}",""]),t.exports=e},"0a0d":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"enterprise-comment"},[a("div",{staticClass:"enterprise-header-box"},t._l(t.inforCardData,(function(e,i){return a("Card",{key:i,staticClass:"ent-card",style:i==t.inforCardData.length-1?"margin-right:0":"",attrs:{bordered:!1,shadow:!0}},[a("div",{staticClass:"ent-card-demo"},[a("div",{staticClass:"ent-card-left",style:{background:e.color}},[a("Icon",{staticClass:"ent-cl-icon",attrs:{type:e.icon,size:32}})],1),a("div",{staticClass:"ent-card-right"},[a("count-to",{attrs:{end:e.count,"count-class":"count-style"}}),a("p",[t._v(t._s(e.title)+"("+t._s(e.unit)+") "),e.remark?a("Poptip",{attrs:{trigger:"hover",title:"提示信息",content:e.remark}},[a("i",{staticClass:"el-icon-question"})]):t._e()],1)],1)])])})),1),a("IndexCharts")],1)},r=[],s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"count-to-wrapper"},[t._t("left"),a("p",{staticClass:"content-outer"},[a("span",{class:["count-to-count-text",t.countClass],attrs:{id:t.counterId}},[t._v(t._s(t.init))]),a("i",{class:["count-to-unit-text",t.unitClass]},[t._v(t._s(t.unitText))])]),t._t("right")],2)},n=[],o=a("57f2"),c=a.n(o),l=(a("85dc"),{name:"CountTo",props:{init:{type:Number,default:0},startVal:{type:Number,default:0},end:{type:Number,required:!0},decimals:{type:Number,default:0},decimal:{type:String,default:"."},duration:{type:Number,default:2},delay:{type:Number,default:0},uneasing:{type:Boolean,default:!1},usegroup:{type:Boolean,default:!1},separator:{type:String,default:","},simplify:{type:Boolean,default:!1},unit:{type:Array,default(){return[[3,"K+"],[6,"M+"],[9,"B+"]]}},countClass:{type:String,default:""},unitClass:{type:String,default:""}},data(){return{counter:null,unitText:""}},computed:{counterId(){return"count_to_"+this._uid}},methods:{getHandleVal(t,e){return{endVal:parseInt(t/Math.pow(10,this.unit[e-1][0])),unitText:this.unit[e-1][1]}},transformValue(t){let e=this.unit.length,a={endVal:0,unitText:""};if(t<Math.pow(10,this.unit[0][0]))a.endVal=t;else for(let i=1;i<e;i++)t>=Math.pow(10,this.unit[i-1][0])&&t<Math.pow(10,this.unit[i][0])&&(a=this.getHandleVal(t,i));return t>Math.pow(10,this.unit[e-1][0])&&(a=this.getHandleVal(t,e)),a},getValue(t){let e=0;if(this.simplify){let{endVal:a,unitText:i}=this.transformValue(t);this.unitText=i,e=a}else e=t;return e}},mounted(){this.$nextTick(()=>{let t=this.getValue(this.end);this.counter=new c.a(this.counterId,this.startVal,t,this.decimals,this.duration,{useEasing:!this.uneasing,useGrouping:this.useGroup,separator:this.separator,decimal:this.decimal}),setTimeout(()=>{this.counter.error||this.counter.start()},this.delay)})},watch:{end(t){let e=this.getValue(t);this.counter.update(e)}}}),d=l,u=a("2877"),p=Object(u["a"])(d,s,n,!1,null,null,null),h=p.exports,m=h,f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"EnergyConsumption"},[a("div",{staticClass:"enterprise-center-box"},[a("div",{staticClass:"ecb-col"},[a("Card",{staticClass:"ecb-center-card",attrs:{shadow:!0}},[a("div",{staticClass:"water-box"},[a("h3",{staticClass:"SolidWaste-h3"},[t._v(" 专家年龄分布 ")]),a("div",{ref:"activeUserChartsRefs",staticClass:"water-charts"})])])],1),a("div",{staticClass:"ecb-col",staticStyle:{margin:"0 10px"}},[a("Card",{staticClass:"ecb-center-card",attrs:{shadow:!0}},[a("div",{staticClass:"water-box"},[a("h3",{staticClass:"SolidWaste-h3"},[t._v(" 项目类型分布 "),a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeType},model:{value:t.searchType,callback:function(e){t.searchType=e},expression:"searchType"}},t._l(t.options,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("div",{ref:"synthesizeChartsRefs",staticClass:"water-charts"})])])],1),a("div",{staticClass:"ecb-col"},[a("Card",{staticClass:"ecb-center-card",attrs:{shadow:!0}},[a("div",{staticClass:"water-box"},[a("h3",{staticClass:"SolidWaste-h3"},[t._v(" 专家综合评分分布"),a("Poptip",{attrs:{title:"提示信息",trigger:"hover",content:"展示专家平均分人数分布信息"}},[a("i",{staticClass:"el-icon-question"})])],1),a("div",{ref:"naturalGasChartsRefs",staticClass:"water-charts"})])])],1)]),a("div",{staticClass:"enterprise-footer-box"},[a("div",{staticClass:"ecb-col2"},[a("Card",{staticClass:"ecb-center-card",attrs:{shadow:!0}},[a("div",{staticClass:"water-box"},[a("h3",{staticClass:"SolidWaste-h3"},[t._v(" 综合评分排行榜前十位 ")]),a("div",{ref:"electricChartsRefs",staticClass:"water-charts"})])])],1),a("div",{staticClass:"ecb-col",staticStyle:{margin:"0 0px 0 10px"}},[a("Card",{staticClass:"ecb-center-card",attrs:{shadow:!0}},[a("div",{staticClass:"water-box"},[a("h3",{staticClass:"SolidWaste-h3"},[t._v(" 专家抽取次数排行榜前十位"),a("Poptip",{attrs:{placement:"top-start",title:"提示信息",trigger:"hover",content:"展示系统前十位抽取次数最多的专家"}},[a("i",{staticClass:"el-icon-question"})])],1),a("div",{ref:"coalChartsRefs",staticClass:"water-charts"})])])],1)])])},g=[];const x=a("313e");var b={name:"EnergyConsumption",data(){return{options:[{value:"1",label:"政策咨询类"},{value:"2",label:"监测技术类"}],searchType:"1",searchTypeName:"政策咨询类",fatherData:[],sonList:[],granSonList:[]}},mounted(){this.getPolling(),this.getElectricChartsRefs(),this.getNaturalGasChartsRefs(),this.getCoalChartsRefs(),this.getDoctorAge();let t=this;window.addEventListener("resize",(function(){t.resizeTimer&&clearTimeout(t.resizeTimer),t.resizeTimer=setTimeout((function(){t.pollingChart.resize(),t.naturalGasCharts.resize(),t.electricCharts.resize(),t.coalCharts.resize(),t.activeCharts.resize()}),100)}))},methods:{changeType(t){this.searchTypeName=1==this.searchType?"政策咨询类":"监测技术类",this.getPolling()},async getDoctorAge(){let t=x.init(this.$refs.activeUserChartsRefs);this.activeCharts=t;let e={type:1};const a=await this.$Api.indexGetMap.statisticsHomeBodyData(e);if("200"===a.code){let e={tooltip:{trigger:"item"},color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],series:[{name:"专家年龄",type:"pie",radius:"70%",label:{textStyle:{fontSize:13},formatter:function(t){let e=t.name.split(" ")[0],a=t.value;return`${e}岁:{a|${a}}人`},rich:{a:{color:"#CE4C4C",fontSize:13,fontWeight:"bold"}}},data:a.data,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};t.setOption(e)}},async queryByNotice(){let t={offset:1,limit:500,isGroup:!0,groupColumn:"id,name"};const e=await this.$Api.indexGetMap.queryByNotice(t);"200"===e.code&&(this.noticeTableData=e.data.records)},async getCoalChartsRefs(){let t=x.init(this.$refs.coalChartsRefs);this.coalCharts=t;let e={type:3};const a=await this.$Api.indexGetMap.statisticsHomeBodyData(e);if(200==a.code){let e=a.data.map(t=>t.name),i=Math.max(...a.data.map(t=>Number(t.value))),r=a.data.map(t=>Number(t.value)==i?{value:t.value,itemStyle:{color:"gold"},label:{show:!0,position:"top"}}:t.value),s={tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},xAxis:{type:"category",data:e},yAxis:{type:"value"},series:[{data:r,type:"bar"}]};t.setOption(s)}},async getNaturalGasChartsRefs(){let t=x.init(this.$refs.naturalGasChartsRefs);this.naturalGasCharts=t;let e={type:2};const a=await this.$Api.indexGetMap.statisticsHomeBodyData(e);if(200==a.code){let e={tooltip:{trigger:"item"},color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],series:[{name:"专家评分",type:"pie",radius:"70%",label:{textStyle:{fontSize:13},formatter:function(t){let e=t.name.split(" ")[0],a=t.value;return`平均分为${e}分:{a|${a}}人`},rich:{a:{color:"#CE4C4C",fontSize:13,fontWeight:"bold"}}},data:a.data,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};t.setOption(e)}},async getElectricChartsRefs(){let t=x.init(this.$refs.electricChartsRefs);this.electricCharts=t;const e=["#5470C6","#EE6666"],a=await this.$Api.indexGetMap.statisticsExpertHighAndLowScoreData();if(200==a.code){let i=[],r=[];a.data.highScoreList.map(t=>{i.push(t.name),r.push(t.value)});let s=[],n=[];a.data.lowScoreList.map(t=>{s.push(t.name),n.push(t.value)});let o={color:e,tooltip:{trigger:"none",axisPointer:{type:"cross"}},legend:{},grid:{top:70,bottom:50},xAxis:[{type:"category",axisTick:{alignWithLabel:!0},axisLine:{onZero:!1,lineStyle:{color:e[1]}},axisPointer:{label:{formatter:function(t){return"低分数 "+t.value+(t.seriesData.length?":"+t.seriesData[0].data:"")}}},data:s},{type:"category",axisTick:{alignWithLabel:!0},axisLine:{onZero:!1,lineStyle:{color:e[0]}},axisPointer:{label:{formatter:function(t){return"高分数 "+t.value+(t.seriesData.length?":"+t.seriesData[0].data:"")}}},data:i}],yAxis:[{type:"value"}],series:[{name:"最高分排行",type:"line",xAxisIndex:1,smooth:!0,emphasis:{focus:"series"},data:r},{name:"最低分排行",type:"line",smooth:!0,emphasis:{focus:"series"},data:n}]};t.setOption(o)}},async getPolling(){let t=x.init(this.$refs.synthesizeChartsRefs);this.pollingChart=t;let e={type:4};const a=await this.$Api.indexGetMap.statisticsHomeBodyData(e);200==a.code&&(this.fatherData=a.data.filter(t=>t.name==this.searchTypeName),console.log(this.fatherData),this.sonList=this.fatherData[0].childList.filter(t=>0!=t.value),this.granSonList=this.sonList[0].childList.filter(t=>0!=t.value),this.makeCharts())},makeCharts(t){t={tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],series:[{name:"一级目录",type:"pie",selectedMode:"single",radius:["85%","90%"],data:this.sonList},{name:"二级目录",type:"pie",radius:["30%","80%"],label:{normal:{position:"inside",align:"right",fontSize:10,color:"#FFEFE0"}},data:this.granSonList},{name:"项目类型",type:"pie",radius:["0%","25%"],label:{normal:{position:"center",fontSize:12,color:"#80F0E3"}},data:[{value:this.fatherData[0].value,name:this.searchTypeName}]}]};let e=this;this.pollingChart.setOption(t),this.pollingChart.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:0}),this.pollingChart.on("click",(function(t){0==t.seriesIndex&&(e.granSonList=e.sonList.filter(e=>0!=e.value&&e.name==t.name)[0].childList.filter(t=>0!=t.value),e.makeCharts())}))}}},y=b,C=(a("7196"),Object(u["a"])(y,f,g,!1,null,null,null)),w=C.exports,v={name:"Index",components:{CountTo:m,IndexCharts:w},data(){return{inforCardData:[{title:"专家总人数",unit:"位",icon:"md-people",count:0,color:"#2d8cf0",remark:"状态为‘审核通过’的专家"},{title:"高级职称专家",unit:"位",icon:"md-person",count:0,color:"#19be6b"},{title:"中级职称专家",unit:"位",icon:"md-person",count:0,color:"#ff9900"},{title:"其他专家",unit:"位",icon:"md-person",count:0,color:"#ed3f14",remark:"初级职称或者没有职称的专家"},{title:"女性专家",unit:"位",icon:"md-female",count:0,color:"#E46CBB"}],headerData:{}}},mounted(){this.getHeaderData()},methods:{async getHeaderData(){const t=await this.$Api.indexGetMap.statisticsExpertHead();"200"===t.code&&(this.inforCardData[0].count=t.data.expertTotal,this.inforCardData[1].count=t.data.expertSeniorTotal,this.inforCardData[2].count=t.data.expertIntermediateTotal,this.inforCardData[3].count=t.data.expertOtherTotal,this.inforCardData[4].count=t.data.expertFemaleTotal)}}},V=v,T=(a("1e8c"),Object(u["a"])(V,i,r,!1,null,null,null));e["default"]=T.exports},"1e8c":function(t,e,a){"use strict";var i=a("3322"),r=a.n(i);r.a},3322:function(t,e,a){var i=a("81ca");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("a656016c",i,!0,{sourceMap:!1,shadowMode:!1})},"57f2":function(t,e,a){var i,r;!function(s,n){i=n,r="function"===typeof i?i.call(e,a,e,t):i,void 0===r||(t.exports=r)}(0,(function(t,e,a){var i=function(t,e,a,i,r,s){for(var n=0,o=["webkit","moz","ms","o"],c=0;c<o.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[o[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[o[c]+"CancelAnimationFrame"]||window[o[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var a=(new Date).getTime(),i=Math.max(0,16-(a-n)),r=window.setTimeout((function(){t(a+i)}),i);return n=a+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)});var l=this;for(var d in l.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:null,formattingFn:null},s)s.hasOwnProperty(d)&&(l.options[d]=s[d]);""===l.options.separator&&(l.options.useGrouping=!1),l.options.prefix||(l.options.prefix=""),l.options.suffix||(l.options.suffix=""),l.d="string"==typeof t?document.getElementById(t):t,l.startVal=Number(e),l.endVal=Number(a),l.countDown=l.startVal>l.endVal,l.frameVal=l.startVal,l.decimals=Math.max(0,i||0),l.dec=Math.pow(10,l.decimals),l.duration=1e3*Number(r)||2e3,l.formatNumber=function(t){var e,a,i,r;if(t=t.toFixed(l.decimals),t+="",e=t.split("."),a=e[0],i=e.length>1?l.options.decimal+e[1]:"",r=/(\d+)(\d{3})/,l.options.useGrouping)for(;r.test(a);)a=a.replace(r,"$1"+l.options.separator+"$2");return l.options.prefix+a+i+l.options.suffix},l.easeOutExpo=function(t,e,a,i){return a*(1-Math.pow(2,-10*t/i))*1024/1023+e},l.easingFn=l.options.easingFn?l.options.easingFn:l.easeOutExpo,l.formattingFn=l.options.formattingFn?l.options.formattingFn:l.formatNumber,l.version=function(){return"1.7.1"},l.printValue=function(t){var e=l.formattingFn(t);"INPUT"===l.d.tagName?this.d.value=e:"text"===l.d.tagName||"tspan"===l.d.tagName?this.d.textContent=e:this.d.innerHTML=e},l.count=function(t){l.startTime||(l.startTime=t),l.timestamp=t;var e=t-l.startTime;l.remaining=l.duration-e,l.options.useEasing?l.countDown?l.frameVal=l.startVal-l.easingFn(e,0,l.startVal-l.endVal,l.duration):l.frameVal=l.easingFn(e,l.startVal,l.endVal-l.startVal,l.duration):l.countDown?l.frameVal=l.startVal-(l.startVal-l.endVal)*(e/l.duration):l.frameVal=l.startVal+(l.endVal-l.startVal)*(e/l.duration),l.countDown?l.frameVal=l.frameVal<l.endVal?l.endVal:l.frameVal:l.frameVal=l.frameVal>l.endVal?l.endVal:l.frameVal,l.frameVal=Math.round(l.frameVal*l.dec)/l.dec,l.printValue(l.frameVal),e<l.duration?l.rAF=requestAnimationFrame(l.count):l.callback&&l.callback()},l.start=function(t){return l.callback=t,l.rAF=requestAnimationFrame(l.count),!1},l.pauseResume=function(){l.paused?(l.paused=!1,delete l.startTime,l.duration=l.remaining,l.startVal=l.frameVal,requestAnimationFrame(l.count)):(l.paused=!0,cancelAnimationFrame(l.rAF))},l.reset=function(){l.paused=!1,delete l.startTime,l.startVal=e,cancelAnimationFrame(l.rAF),l.printValue(l.startVal)},l.update=function(t){cancelAnimationFrame(l.rAF),l.paused=!1,delete l.startTime,l.startVal=l.frameVal,l.endVal=Number(t),l.countDown=l.startVal>l.endVal,l.rAF=requestAnimationFrame(l.count)},l.printValue(l.startVal)};return i}))},7196:function(t,e,a){"use strict";var i=a("7695"),r=a.n(i);r.a},7695:function(t,e,a){var i=a("b053");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("10ded356",i,!0,{sourceMap:!1,shadowMode:!1})},"81ca":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".enterprise-comment{width:100%}.enterprise-comment .enterprise-header-box{width:100%;display:flex;justify-content:space-between;flex-wrap:wrap}.enterprise-comment .enterprise-header-box .ent-card{width:calc(20% - 15px);margin-right:18px;overflow:hidden}.enterprise-comment .enterprise-header-box .ent-card .ivu-card-body{padding:0}.enterprise-comment .enterprise-header-box .ent-card .ivu-card-body .ent-card-demo{display:flex;justify-content:flex-start;flex-wrap:wrap}.enterprise-comment .enterprise-header-box .ent-card .ivu-card-body .ent-card-demo .ent-card-left{width:30%;height:90px}.enterprise-comment .enterprise-header-box .ent-card .ivu-card-body .ent-card-demo .ent-card-left .ent-cl-icon{color:#fff;line-height:60px;margin-top:14px}.enterprise-comment .enterprise-header-box .ent-card .ivu-card-body .ent-card-demo .ent-card-right{width:70%;height:90px}.enterprise-comment .enterprise-header-box .ent-card .ivu-card-body .ent-card-demo .ent-card-right .count-style{font-size:36px}.enterprise-comment .SolidWaste-footer-box .custom-footer-card .bottom-tce-box .tce-charts{width:100%;height:336px}",""]),t.exports=e},"85dc":function(t,e,a){var i=a("023d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("5b5cb04b",i,!0,{sourceMap:!1,shadowMode:!1})},b053:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".SolidWaste-h3{font-size:16px;font-weight:400}.EnergyConsumption{width:100%}.EnergyConsumption .enterprise-center-box{width:100%;margin-top:10px;display:flex;justify-content:flex-start}.EnergyConsumption .enterprise-center-box .ecb-col{width:calc(33.333% - 5px)}.EnergyConsumption .enterprise-center-box .ecb-col .ecb-center-card .water-box .SolidWaste-h3{margin:0 0 10px;height:30px;line-height:30px}.EnergyConsumption .enterprise-center-box .ecb-col .ecb-center-card .water-box .SolidWaste-h3 .SolidWaste-h3-DatePicker{width:180px;margin-right:4px}.EnergyConsumption .enterprise-center-box .ecb-col .ecb-center-card .water-box .water-charts{width:100%;height:calc(40vh - 100px)}.EnergyConsumption .enterprise-footer-box{width:100%;margin-top:10px;display:flex;justify-content:flex-start}.EnergyConsumption .enterprise-footer-box .ecb-col{width:calc(33.333% - 5px)}.EnergyConsumption .enterprise-footer-box .ecb-col .ecb-center-card .water-box .SolidWaste-h3{margin:0 0 10px;height:30px;line-height:30px}.EnergyConsumption .enterprise-footer-box .ecb-col .ecb-center-card .water-box .SolidWaste-h3 .SolidWaste-h3-DatePicker{width:180px;margin-right:4px}.EnergyConsumption .enterprise-footer-box .ecb-col .ecb-center-card .water-box .water-charts{width:100%;height:calc(40vh - 100px)}.EnergyConsumption .enterprise-footer-box .ecb-col2{width:66.666%}.EnergyConsumption .enterprise-footer-box .ecb-col2 .ecb-center-card .water-box .SolidWaste-h3{margin:0 0 10px;height:30px;line-height:30px}.EnergyConsumption .enterprise-footer-box .ecb-col2 .ecb-center-card .water-box .SolidWaste-h3 .SolidWaste-h3-DatePicker{width:180px;margin-right:4px}.EnergyConsumption .enterprise-footer-box .ecb-col2 .ecb-center-card .water-box .water-charts{width:100%;height:calc(40vh - 100px)}",""]),t.exports=e}}]);
|