'+t.name+'
消耗金额: ¥'+t.value.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2})+'
占比: '+t.percent.toFixed(2)+"%
"}},legend:{show:!1},series:[{name:"品项分类",type:"pie",radius:["35%","70%"],center:["50%","50%"],avoidLabelOverlap:!0,minAngle:5,itemStyle:{borderRadius:6,borderColor:"#fff",borderWidth:3},label:{show:!0,position:"outside",formatter:function(t){var e=t.percent||0;return e<5?"":t.name+"\n"+e.toFixed(1)+"%"},fontSize:13,color:"#606266",fontWeight:500,distanceToLabelLine:12},labelLine:{show:!0,length:20,length2:15,lineStyle:{color:"#DCDFE6",width:1,type:"solid"},smooth:.2},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold",color:"#303133"},itemStyle:{shadowBlur:15,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.2)",borderWidth:4},scale:!0,scaleSize:8},data:n}]};i.setOption(r),this.categoryChart=i,this.$nextTick((function(){setTimeout((function(){t.categoryChart&&t.categoryChart.resize()}),300)})),this._categoryChartResizeHandler&&window.removeEventListener("resize",this._categoryChartResizeHandler);var l=function(){t.categoryChart&&t.categoryChart.resize()};window.addEventListener("resize",l),this._categoryChartResizeHandler=l}else console.error("Failed to initialize categoryChart")}else this.$nextTick((function(){setTimeout((function(){t.renderCategoryChart()}),100)}))}else console.warn("categoryChart ref not found")},renderDailyChart:function(){var t=this,e=this.$refs.dailyChart;if(e){this.dailyChart&&(this.dailyChart.dispose(),this.dailyChart=null),e&&(e.style.width="100%",e.style.minWidth="0",e.style.display="block",e.style.boxSizing="border-box");var a=e.parentElement;if(a&&(a.style.width="100%",a.style.minWidth="0",a.style.boxSizing="border-box"),!this.dailyData||0===this.dailyData.length){var i=o["init"](e);return i.setOption({title:{text:"暂无数据",left:"center",top:"middle",textStyle:{color:"#909399",fontSize:14}}}),void(this.dailyChart=i)}if(0!==e.offsetWidth&&0!==e.offsetHeight){var s=o["init"](e);if(s){var n={tooltip:{trigger:"axis",axisPointer:{type:"cross"},formatter:function(t){var e=t[0].name+"