chunk-d7c8040e.c0e0aaae.js 19 KB

1
  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=[],n=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)},s=[],o=a("57f2"),l=a.n(o),c=(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 l.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=c,u=a("2877"),p=Object(u["a"])(d,n,s,!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={};e=0==a.data.length||null==a.data?{title:{text:"暂无数据",x:"center",y:"center",textStyle:{fontSize:14,fontWeight:"normal"}}}:{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={};if(0==a.data.length||null==a.data)e={title:{text:"暂无数据",x:"center",y:"center",textStyle:{fontSize:14,fontWeight:"normal"}}},t.setOption(e);else{let i=a.data.map(t=>t.name),r=Math.max(...a.data.map(t=>Number(t.value))),n=a.data.map(t=>Number(t.value)==r?{value:t.value,itemStyle:{color:"gold"},label:{show:!0,position:"top"}}:t.value);e={tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},xAxis:{type:"category",data:i},yAxis:{type:"value"},series:[{data:n,type:"bar"}]},t.setOption(e)}}},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={};0==a.data.length||null==a.data?(e={title:{text:"暂无数据",x:"center",y:"center",textStyle:{fontSize:14,fontWeight:"normal"}}},t.setOption(e)):(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=[],n={};if(null==a.data.highScoreList&&null==a.data.lowScoreList)n={title:{text:"暂无数据",x:"center",y:"center",textStyle:{fontSize:14,fontWeight:"normal"}}},t.setOption(n);else{a.data.highScoreList.map(t=>{i.push(t.name),r.push(t.value)});let s=[],o=[];a.data.lowScoreList.map(t=>{s.push(t.name),o.push(t.value)}),n={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:o}]},t.setOption(n)}}},async getPolling(){let t=x.init(this.$refs.synthesizeChartsRefs);this.pollingChart=t;let e={type:4};const a=await this.$Api.indexGetMap.statisticsHomeBodyData(e);if(200==a.code)if(this.fatherData=a.data.filter(t=>t.name==this.searchTypeName),this.fatherData.length>0)this.sonList=this.fatherData[0].childList.filter(t=>0!=t.value),this.sonList.length>0&&(this.granSonList=this.sonList[0].childList.filter(t=>0!=t.value)),this.makeCharts();else{let t={title:{text:"暂无数据",x:"center",y:"center",textStyle:{fontSize:14,fontWeight:"normal"}}};this.pollingChart.setOption(t)}},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,S=(a("1e8c"),Object(u["a"])(V,i,r,!1,null,null,null));e["default"]=S.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(n,s){i=s,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,n){for(var s=0,o=["webkit","moz","ms","o"],l=0;l<o.length&&!window.requestAnimationFrame;++l)window.requestAnimationFrame=window[o[l]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[o[l]+"CancelAnimationFrame"]||window[o[l]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var a=(new Date).getTime(),i=Math.max(0,16-(a-s)),r=window.setTimeout((function(){t(a+i)}),i);return s=a+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)});var c=this;for(var d in c.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:null,formattingFn:null},n)n.hasOwnProperty(d)&&(c.options[d]=n[d]);""===c.options.separator&&(c.options.useGrouping=!1),c.options.prefix||(c.options.prefix=""),c.options.suffix||(c.options.suffix=""),c.d="string"==typeof t?document.getElementById(t):t,c.startVal=Number(e),c.endVal=Number(a),c.countDown=c.startVal>c.endVal,c.frameVal=c.startVal,c.decimals=Math.max(0,i||0),c.dec=Math.pow(10,c.decimals),c.duration=1e3*Number(r)||2e3,c.formatNumber=function(t){var e,a,i,r;if(t=t.toFixed(c.decimals),t+="",e=t.split("."),a=e[0],i=e.length>1?c.options.decimal+e[1]:"",r=/(\d+)(\d{3})/,c.options.useGrouping)for(;r.test(a);)a=a.replace(r,"$1"+c.options.separator+"$2");return c.options.prefix+a+i+c.options.suffix},c.easeOutExpo=function(t,e,a,i){return a*(1-Math.pow(2,-10*t/i))*1024/1023+e},c.easingFn=c.options.easingFn?c.options.easingFn:c.easeOutExpo,c.formattingFn=c.options.formattingFn?c.options.formattingFn:c.formatNumber,c.version=function(){return"1.7.1"},c.printValue=function(t){var e=c.formattingFn(t);"INPUT"===c.d.tagName?this.d.value=e:"text"===c.d.tagName||"tspan"===c.d.tagName?this.d.textContent=e:this.d.innerHTML=e},c.count=function(t){c.startTime||(c.startTime=t),c.timestamp=t;var e=t-c.startTime;c.remaining=c.duration-e,c.options.useEasing?c.countDown?c.frameVal=c.startVal-c.easingFn(e,0,c.startVal-c.endVal,c.duration):c.frameVal=c.easingFn(e,c.startVal,c.endVal-c.startVal,c.duration):c.countDown?c.frameVal=c.startVal-(c.startVal-c.endVal)*(e/c.duration):c.frameVal=c.startVal+(c.endVal-c.startVal)*(e/c.duration),c.countDown?c.frameVal=c.frameVal<c.endVal?c.endVal:c.frameVal:c.frameVal=c.frameVal>c.endVal?c.endVal:c.frameVal,c.frameVal=Math.round(c.frameVal*c.dec)/c.dec,c.printValue(c.frameVal),e<c.duration?c.rAF=requestAnimationFrame(c.count):c.callback&&c.callback()},c.start=function(t){return c.callback=t,c.rAF=requestAnimationFrame(c.count),!1},c.pauseResume=function(){c.paused?(c.paused=!1,delete c.startTime,c.duration=c.remaining,c.startVal=c.frameVal,requestAnimationFrame(c.count)):(c.paused=!0,cancelAnimationFrame(c.rAF))},c.reset=function(){c.paused=!1,delete c.startTime,c.startVal=e,cancelAnimationFrame(c.rAF),c.printValue(c.startVal)},c.update=function(t){cancelAnimationFrame(c.rAF),c.paused=!1,delete c.startTime,c.startVal=c.frameVal,c.endVal=Number(t),c.countDown=c.startVal>c.endVal,c.rAF=requestAnimationFrame(c.count)},c.printValue(c.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}}]);