webpackJsonp([27],{"+TeL":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("zxxV"),n={props:{patientCount:{type:Object,default:{burnTotal:0,chestTotal:0,strokeTotal:0,traumaTotal:0}}},data:function(){return{chart:null,total:0}},watch:{patientCount:function(t){t&&this.init()}},mounted:function(){this.init()},methods:{init:function(){var t=this,e=this.patientCount,a=e.burnTotal,n=e.chestTotal,o=e.strokeTotal,r=e.traumaTotal;this.total=a+n+o+r;var s=[{value:n,name:"胸痛"},{value:o,name:"卒中"},{value:r,name:"创伤"},{value:a,name:"烧伤"}],l=this.chart||i.a(this.$refs.chart),c={tooltip:{trigger:"item"},legend:{orient:"vertical",left:"50%",top:"middle",itemGap:72,itemWidth:24,itemHeight:24,formatter:function(e){var a=s.find(function(t){return t.name==e}),i=0;return 0!==a.value&&(i=parseInt(a.value/t.total*100)),"{a|"+e+"}{b|"+i+"%}{x|"+a.value+"人}"},textStyle:{padding:[0,20,0,0],rich:{a:{color:"rgba(255, 255, 255, 0.6)",fontSize:40,width:180,padding:[0,0,0,10]},b:{color:"#FFFFFF",fontSize:40,width:120},x:{color:"#FFFFFF",fontSize:40,width:200}}}},color:["#FF3178","#00C9FF","#FFA400","#7A52FF"],series:[{name:"访问来源",type:"pie",clockwise:!1,radius:["60%","85%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},center:["25%","50%"],labelLine:{show:!1},data:s,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};l.setOption(c),this.chart=l}}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"main"},[e("div",{staticClass:"total"},[e("span",[this._v("总人数")]),this._v(" "),e("p",[this._v(this._s(this.total)+"人 ")])]),this._v(" "),e("div",{ref:"chart",staticClass:"chart"})])},staticRenderFns:[]};var r=a("C7Lr")(n,o,!1,function(t){a("icDH")},"data-v-ff6be43a",null);e.default=r.exports},icDH:function(t,e){}});
//# sourceMappingURL=27.d527182e49786def406f.1630633662604.js.map