1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09b939f2"],{"972f":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{style:{padding:"0 0 32px 32px"}},[e("v-chart",{attrs:{forceFit:!0,height:300,data:t.chartData,scale:t.scale}},[e("v-coord",{attrs:{type:"polar",startAngle:-202.5,endAngle:22.5,radius:.75}}),e("v-axis",{attrs:{dataKey:"value",zIndex:2,line:null,label:t.axisLabel,subTickCount:4,subTickLine:t.axisSubTickLine,tickLine:t.axisTickLine,grid:null}}),e("v-axis",{attrs:{dataKey:"1",show:!1}}),e("v-series",{attrs:{gemo:"point",position:"value*1",shape:"pointer",color:"#1890FF",active:!1}}),e("v-guide",{attrs:{type:"arc",zIndex:0,top:!1,start:t.arcGuide1Start,end:t.arcGuide1End,vStyle:t.arcGuide1Style}}),e("v-guide",{attrs:{type:"arc",zIndex:1,start:t.arcGuide2Start,end:t.getArcGuide2End,vStyle:t.arcGuide2Style}}),e("v-guide",{attrs:{type:"html",position:t.htmlGuidePosition,html:t.getHtmlGuideHtml()}})],1)],1)},r=[],n=a("3654");Object(n["b"])("point","pointer",{draw:function(t,e){var a=t.points[0];a=this.parsePoint(a);var i=this.parsePoint({x:0,y:0});return e.addShape("line",{attrs:{x1:i.x,y1:i.y,x2:a.x,y2:a.y+15,stroke:t.color,lineWidth:5,lineCap:"round"}}),e.addShape("circle",{attrs:{x:i.x,y:i.y,r:9.75,stroke:t.color,lineWidth:4.5,fill:"#fff"}})}});var s=[{dataKey:"value",min:0,max:9,tickInterval:1,nice:!1}],c=[{value:7}],l={name:"DashChartDemo",props:{datasource:{type:Number,default:7},title:{type:String,default:""}},created:function(){this.datasource?this.chartData=[{value:this.datasource}]:this.chartData=c,this.getChartData()},watch:{datasource:function(t){this.chartData=[{value:t}],this.getChartData()}},methods:{getChartData:function(){this.chartData&&this.chartData.length>0?this.abcd=10*this.chartData[0].value:this.abcd=70},getHtmlGuideHtml:function(){return'<div style="width: 300px;text-align: center;">\n<p style="font-size: 14px;color: #545454;margin: 0;">'+this.title+'</p>\n<p style="font-size: 36px;color: #545454;margin: 0;">'+this.abcd+"%</p>\n</div>"},getArcGuide2End:function(){return[this.chartData[0].value,.945]}},data:function(){return{chartData:[],height:400,scale:s,abcd:70,axisLabel:{offset:-16,textStyle:{fontSize:18,textAlign:"center",textBaseline:"middle"}},axisSubTickLine:{length:-8,stroke:"#fff",strokeOpacity:1},axisTickLine:{length:-17,stroke:"#fff",strokeOpacity:1},arcGuide1Start:[0,.945],arcGuide1End:[9,.945],arcGuide1Style:{stroke:"#CBCBCB",lineWidth:18},arcGuide2Start:[0,.945],arcGuide2Style:{stroke:"#1890FF",lineWidth:18},htmlGuidePosition:["50%","100%"],htmlGuideHtml:'\n <div style="width: 300px;text-align: center;">\n <p style="font-size: 14px;color: #545454;margin: 0;">'.concat(this.title,'</p>\n <p style="font-size: 36px;color: #545454;margin: 0;">').concat(this.abcd,"%</p>\n </div>\n ")}}},o=l,d=a("2877"),u=Object(d["a"])(o,i,r,!1,null,null,null);e["default"]=u.exports},a3fd:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{title:"磁盘监控"}},[e("a-row",[t.diskInfo&&t.diskInfo.length>0?t._l(t.diskInfo,(function(t,a){return e("a-col",{key:"diskInfo"+a,attrs:{span:8}},[e("dash-chart-demo",{attrs:{title:t.name,datasource:t.restPPT}})],1)})):t._e()],2)],1)},r=[],n=a("0fea"),s=a("972f"),c=a("290c"),l={name:"DiskMonitoring",components:{ARow:c["a"],DashChartDemo:s["default"]},data:function(){return{description:"磁盘监控",diskInfo:[],url:{queryDiskInfo:"actuator/redis/queryDiskInfo"}}},created:function(){var t=this;Object(n["c"])(this.url.queryDiskInfo).then((function(e){if(e.success){for(var a=0;a<e.result.length;a++)e.result[a].restPPT=e.result[a].restPPT/10;t.diskInfo=e.result}}))}},o=l,d=a("2877"),u=Object(d["a"])(o,i,r,!1,null,"0b779f37",null);e["default"]=u.exports}}]);
|