report-ui/dist/static/js/chunk-1146.862015da.js

1 line
126 KiB
JavaScript
Raw Normal View History

2023-04-14 15:55:36 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1146"],{"0DEJ":function(t,e,i){},"16mM":function(t,e,i){"use strict";var o=i("MTDE");i.n(o).a},"1BXT":function(t,e,i){"use strict";var o=i("lxq7");i.n(o).a},"1JnI":function(t,e,i){"use strict";var o=i("P2sY"),s=i.n(o),n={name:"WidgetBarlinechart",components:{},props:{value:Object,ispreview:Boolean},data:function(){return{options:{color:[],grid:{},title:{text:"",textStyle:{color:"#fff"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c}%"},legend:{textStyle:{color:"#fff"}},xAxis:[{type:"category",data:[],axisLabel:{show:!1,textStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"",min:0,max:250,interval:50,axisLabel:{show:!0,textStyle:{color:"#fff"}}},{type:"value",name:"",min:0,max:25,interval:5,axisLabel:{show:!0,textStyle:{color:"#fff"}}}],series:[{name:"",type:"bar",yAxisIndex:0,data:[],itemStyle:{barBorderRadius:null}},{name:"",type:"line",yAxisIndex:1,data:[],itemStyle:{}}]},optionsStyle:{},optionsData:{},optionsCollapse:{},optionsSetup:{}}},computed:{styleObj:function(){return{position:this.ispreview?"absolute":"static",width:this.optionsStyle.width+"px",height:this.optionsStyle.height+"px",left:this.optionsStyle.left+"px",top:this.optionsStyle.top+"px",background:this.optionsSetup.background}}},watch:{value:{handler:function(t){this.optionsStyle=t.position,this.optionsData=t.data,this.optionsCollapse=t.collapse,this.optionsSetup=t.setup,this.editorOptions()},deep:!0}},created:function(){this.optionsStyle=this.value.position,this.optionsData=this.value.data,this.optionsCollapse=this.value.collapse,this.optionsSetup=this.value.setup,this.editorOptions()},methods:{editorOptions:function(){this.setOptionsTitle(),this.setOptionsX(),this.setOptionsY(),this.setOptionsLine(),this.setOptionsBar(),this.setOptionsTooltip(),this.setOptionsData(),this.setOptionsMargin(),this.setOptionsLegend(),this.setOptionsColor()},setOptionsTitle:function(){var t=this.optionsSetup,e={};e.text=t.titleText,e.show=t.isNoTitle,e.left=t.textAlign,e.textStyle={color:t.textColor,fontSize:t.textFontSize,fontWeight:t.textFontWeight},e.subtext=t.subText,e.subtextStyle={color:t.subTextColor,fontWeight:t.subTextFontWeight,fontSize:t.subTextFontSize},this.options.title=e},setOptionsX:function(){var t=this.optionsSetup,e={type:"category",show:t.hideX,name:t.xName,nameTextStyle:{color:t.nameColorX,fontSize:t.nameFontSizeX},nameRotate:t.textAngle,inverse:t.reversalX,axisLabel:{show:!0,interval:t.textInterval,rotate:t.textAngle,textStyle:{color:t.Xcolor,fontSize:t.fontSizeX}},axisLine:{show:!0,lineStyle:{color:t.lineColorX}},splitLine:{show:t.isShowSplitLineX,lineStyle:{color:t.splitLineColorX}}};this.options.xAxis=e},setOptionsY:function(){var t=this.optionsSetup,e=[{type:"value",splitNumber:t.splitNumberLeft,show:t.isShowYLeft,name:t.textNameYLeft,nameTextStyle:{color:t.nameColorYLeft,fontSize:t.namefontSizeYLeft},inverse:t.reversalY,axisLabel:{show:!0,textStyle:{color:t.colorY,fontSize:t.fontSizeY}},axisLine:{show:!0,lineStyle:{color:t.lineColorY}},splitLine:{show:!1}},{type:"value",splitNumber:t.splitNumberRight,show:t.isShowYRight,name:t.textNameYRight,nameTextStyle:{color:t.nameColorYRight,fontSize:t.namefontSizeYRight},inverse:t.reversalY,axisLabel:{show:!0,textStyle:{color:t.colorY,fontSize:t.fontSizeY}},axisLine:{show:!0,lineStyle:{color:t.lineColorY}},splitLine:{show:!1}}];this.options.yAxis=e},setOptionsLine:function(){var t=this.optionsSetup,e=this.options.series;for(var i in e)"line"==e[i].type&&(e[i].showSymbol=t.markPoint,e[i].symbolSize=t.pointSize,e[i].smooth=t.smoothCurve,t.area?e[i].areaStyle={opacity:t.areaThickness/100}:e[i].areaStyle={opacity:0},e[i].lineStyle={width:t.lineWidth},e[i].itemStyle.borderRadius=t.radius,e[i].label={show:t.isShowLine,position:"top",distance:t.distanceLine,fontSize:t.fontSizeLine,color:t.subTextColorLine,fontWeight:t.fontWeightLine});this.options.series=e},setOptionsBar:function(){var t=this.optionsSetup,e=this.options.series;for(var i in e)"bar"==e[i].type&&(e[i].label={show:t.isShowBar,position:"top",distance:t.distanceBar,fontSize:t.fontSizeBa