You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
35 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04a68adf"],{"0931":function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"h-flex flex-column"},[e("div",{staticClass:"h-flex flex-row-reverse"},[e("div",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.$emit("closeStokes")}}},[e("el-button",{staticStyle:{"font-size":"20px","margin-right":"6px"},attrs:{type:"text",icon:"el-icon-circle-close"}})],1)]),e("div",{staticClass:"h-flex flex-column flex-1"},[e("div",{staticClass:"white pa-3 stroke-box flex-1",attrs:{id:"numBox"}},[t.parameters.parameters.longNums||t.parameters.parameters.shortNums?e("div",{staticClass:"list-box"},[e("div",{staticStyle:{height:"100%",width:"100%"},attrs:{id:"numbers"}})]):e("el-empty",{attrs:{description:"暂无数据"}})],1),e("div",{staticClass:"white pa-3 stroke-box flex-1",attrs:{id:"numSpeed"}},[t.parameters.parameters.quickNums||t.parameters.parameters.slowNums?e("div",{staticClass:"list-box"},[e("div",{staticStyle:{height:"100%",width:"100%"},attrs:{id:"speed"}})]):e("el-empty",{attrs:{description:"暂无数据"}})],1)])])},i=[],r=(a("14d9"),a("313e")),n=a("2f62"),l={name:"AgeStatistics",props:{value:{type:Number,default:144}},data(){return{ZXT:{grid:{top:"18%",left:"3%",right:"3%",bottom:"4%",containLabel:!0},legend:{top:"0%",itemHeight:12,itemWidth:20,icon:"roundRect",textStyle:{fontSize:14,color:"#fff"}},tooltip:{trigger:"axis",axisPointer:{type:"line"},formatter:function(t){let e=t[0].name;for(var a=0,s=t.length;a<s;a++)e+=`<br/><span style="background:${t[a].color};width:12px;display:inline-block;height:12px;border-radius:50%;margin-right:5px;"></span>`+t[a].seriesName+" : "+t[a].value+"个";return e}},xAxis:[{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Thu","Fri","Sat","Sun"],axisLabel:{color:"#fff",fontSize:12}}],yAxis:{scale:!0,type:"value",minInterval:1,name:"单位( 个 )",nameTextStyle:{color:"#fff"},position:"left",splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(164,218,255,0.3)"}},axisLabel:{color:"#fff",fontSize:12}},series:[{name:"≤60 min",type:"line",color:"#00D1A1",areaStyle:{opacity:.8,color:new r["b"].LinearGradient(0,0,0,1,[{offset:0,color:"#00D1A1"},{offset:1,color:"#E5F5E8"}])},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"≤90 min",type:"line",color:"#0E82D2",areaStyle:{opacity:.8,color:new r["b"].LinearGradient(0,0,0,1,[{offset:0,color:"#0E82D2"},{offset:1,color:"#0B215D"}])},emphasis:{focus:"series"},data:[20,32,10,34,90,30,21]}]},scanData:{},scanData1:{}}},computed:Object(n["e"])("ht",["parameters"]),watch:{parameters:{deep:!0,handler(t){this.drawNumCharts(),this.drawSpeedCharts()}}},mounted(){this.drawNumCharts(),this.drawSpeedCharts()},methods:{toMm(t){const e=this.value?this.value:144,a=window.screen.height;return(e/a*t).toFixed(2)},getScanData(){this.$nextTick(()=>{var t=r["c"](document.getElementById("numbers"),null);t.setOption(this.scanData,!0),t.resize(),window.onresize=t.resize})},drawNumCharts(t){const e=document.getElementById("numbers"),a=document.getElementById("numBox");a.style.height=a.offsetHeight-20+"px",e.style.width=a.offsetWidth-20+"px",e.style.height=a.offsetHeight-50+"px";const{parameters:s}=this,i=[],r=[];for(let l=0;l<s.parameters.lineParameterList.length;l++){let t=`${l+1}`;i.push(t);const e=s.parameters.lineParameterList[l];let a={value:this.toMm(e.length),itemStyle:{color:0===e.lengthStatus?"#DEB9EC":"#B9CEED"}};r.push(a)}let n={tooltip:{trigger:"axis"},xAxis:{type:"category",data:i,axisPointer:{type:"shadow"}},yAxis:{type:"value"},grid:{left:"16%",top:"40px",bottom:"40px",right:"40px"},series:[{data:r,type:"bar"}]};this.scanData=n,this.getScanData()},getScanData1(){this.$nextTick(()=>{var t=r["c"](document.getElementById("numSpeed"),null);t.setOption(this.scanData1,!0),t.resize(),window.onresize=t.resize})},drawSpeedCharts(t){const e=document.getElementById("numSpeed"),a=document.getElementById("speed");e.style.height=e.offsetHeight-20+"px",a.style.width=e.offsetWidth-20+"px",a.style.height=e.offsetHeight-