(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-933463a6"],{2282:function(t,e,r){},"90a6":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"report-form full"},[e("div",{staticClass:"report-form-inner"},[e("div",{ref:"distribution",staticClass:"full"})])])},i=[],n=r("5530"),s=(r("14d9"),r("4e82"),r("b0c0"),r("d3b7"),r("2f62")),o=r("43c8"),u=r.n(o),c=r("6e52"),d={name:"deviceType",data:function(){return{}},components:{},computed:Object(n["a"])({},Object(s["b"])(["deviceTypes"])),methods:{getChartsOption:function(t){var e={title:{text:this.$t("reportForm.modelOverview"),bottom:"auto"},tooltip:{trigger:"item",formatter:function(t){return t.data.name+"<br/>"+t.data.value+"<br/>"+t.data.remark}},legend:{type:"scroll",orient:"vertical",right:10,top:20,bottom:20,data:t.legendData},grid:{top:5,left:5,right:5,bottom:5},series:[{type:"pie",radius:"70%",data:t.seriesData,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};return e},getSeriesData:function(){var t={},e=c["a"].deviceInfos;for(var r in e)if(Object.hasOwnProperty.call(e,r)){var a=e[r],i=a.devicetype;t[i]?t[i]+=1:t[i]=1}var n=[],s=[];for(var o in t){var u=this.getDevType(o);n.push({value:t[o],name:u.name,remark:u.remark})}return n.sort((function(t,e){return e.value-t.value})),n.forEach((function(t){s.push(t.name)})),{seriesData:n,legendData:s}},getDevType:function(t){var e=this.deviceTypes[t],r=e.typename,a="";return e&&e.remark&&(a=e.remark),{name:r,remark:a}},initCharts:function(){this.charts=u.a.init(this.$refs.distribution),this.charts.setOption(this.getChartsOption(this.getSeriesData()),!0)}},mounted:function(){this.$nextTick(this.initCharts)}},l=d,f=(r("de09"),r("2877")),p=Object(f["a"])(l,a,i,!1,null,null,null),h=p.exports;e["default"]=h},de09:function(t,e,r){"use strict";r("2282")}}]);