12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["healthLineChart"],{"317f":function(t,e,a){"use strict";a("de3f")},"5e92":function(t,e,a){"use strict";a.r(e);var n=a("f2bf"),o={class:"pageBox"};function r(t,e,a,r,c,i){var l=Object(n["resolveComponent"])("wt-chooser"),h=Object(n["resolveComponent"])("simple-line-chart");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",o,[Object(n["createVNode"])(l,{onChange:i.switchWt,wpId:t.wpId,wtId:t.wtId},null,8,["onChange","wpId","wtId"]),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.chartData,(function(t,e){return Object(n["openBlock"])(),Object(n["createBlock"])(h,{height:"100px",key:e,title:t.title,data:t.data,color:t.color,lineTitle:t.lineTitle},null,8,["title","data","color","lineTitle"])})),128))])}a("99af"),a("d3b7"),a("159b"),a("b0c0");var c=a("778c"),i=a("81f6"),l=a("8d8a"),h={setup:function(){},components:{SimpleLineChart:c["a"],WtChooser:i["a"]},data:function(){return{chartData:[]}},created:function(){this.wtId=this.$route.params.wtId,this.wpId=this.$route.params.wpId,this.requestData()},methods:{switchWt:function(t){this.$router.push("/health/health4/healthLineChart/".concat(t.wpId,"/").concat(t.wtId)),this.wtId=this.$route.params.wtId,this.wpId=this.$route.params.wpId,this.requestData()},requestData:function(){var t=this;l["a"].healthsubHsFjValueIndex({wtId:this.wtId}).then((function(e){var a=["green","yellow","purple","blue","orange"],n=[],o=[];e.data.xData.forEach((function(t){o.push(new Date(t).formatDate("hh:mm"))})),e.data.datasets.forEach((function(t,e){n.push({title:t.name,data:t.data,color:a[e],lineTitle:o})})),t.chartData=n}))}}},d=(a("317f"),a("6b0d")),u=a.n(d);const s=u()(h,[["render",r],["__scopeId","data-v-35db3a86"]]);e["default"]=s},"778c":function(t,e,a){"use strict";var n=a("f2bf"),o=["id"];function r(t,e,a,r,c,i){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"chart",id:c.id},null,8,o)}var c=a("4dd6"),i=a("aff4"),l=a("313e"),h={name:"double-line-chart",componentName:"double-line-chart",props:{width:{type:String,default:"100%"},height:{type:String,default:"50px"},title:{type:String,default:"风机"},data:{type:Array,default:function(){return[0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},color:{type:String,default:"green"},lineTitle:{type:Array,default:function(){return[]}}},data:function(){return{id:"",chart:null,xData:["00:00","00:15","00:30","00:45","01:00","01:15","01:30","01:45","02:00","02:15","02:30","02:45","03:00","03:15","03:30","03:45","04:00","04:15","04:30","04:45","05:00","05:15","05:30","05:45","06:00","06:15","06:30","06:45","07:00","07:15","07:30","07:45","08:00","08:15","08:30","08:45","09:00","09:15","09:30","09:45","10:00","10:15","10:30","10:45","11:00","11:15","11:30","11:45","12:00","12:15","12:30","12:45","13:00","13:15","13:30","13:45","14:00","14:15","14:30","14:45","15:00","15:15","15:30","15:45","16:00","16:15","16:30","16:45","17:00","17:15","17:30","17:45","18:00","18:15","18:30","18:45","19:00","19:15","19:30","19:45","20:00","20:15","20:30","20:45","21:00","21:15","21:30","21:45","22:00","22:15","22:30","22:45","23:00","23:15","23:30","23:45"]}},computed:{colorValue:function(){return i["a"].getColor(this.color)}},methods:{resize:function(){},initChart:function(){var t=l["c"](this.$el),e={title:{text:this.title,textStyle:{color:"#ffffffcc",fontSize:14},left:16,top:0},tooltip:{trigger:"axis",backgroundColor:"rgba(0,0,0,0.4)",borderColor:i["a"].getColor("gray"),textStyle:{color:"#fff",fontSize:c["a"].vh(16)}},grid:{top:40,left:16,right:16,bottom:32},xAxis:[{type:"category",data:this.xData,axisLine:{show:!1,lineStyle:{color:i["a"].getColor("gray")}},axisLabel:{show:!0,margin:16,interval:7},axisTick:{show:!1,lineStyle:{color:i["a"].getColor("gray")}}}],yAxis:[{type:"value",splitNumber:1,min:0,max:1,axisLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:i["a"].getColor("gray")}}}],series:[{type:"line",data:this.data,showAllSymbol:!0,symbol:"circle",symbolSize:10,lineStyle:{normal:{color:this.colorValue,width:1}},label:{show:!1},itemStyle:{color:this.colorValue,shadowColor:this.colorValue,shadowBlur:4}}]};t.clear(),t.setOption(e),this.resize=function(){t.resize()},window.addEventListener("resize",this.resize)}},created:function(){var t=this;this.xData=this.lineTitle,this.$nextTick((function(){t.id="pie-chart-"+c["a"].newGUID()}))},mounted:function(){var t=this;this.xData=this.lineTitle,this.$nextTick((function(){t.$el.style.width=t.width,t.$el.style.height=t.height,t.initChart()}))},updated:function(){var t=this;this.xData=this.lineTitle,this.$nextTick((function(){t.initChart()}))},unmounted:function(){window.removeEventListener("resize",this.resize)}},d=(a("c752"),a("6b0d")),u=a.n(d);const s=u()(h,[["render",r]]);e["a"]=s},"81f6":function(t,e,a){"use strict";a("b0c0");var n=a("f2bf"),o={class:"query mg-b-8"},r={class:"query-items"},c={class:"query-item"},i=Object(n["createElementVNode"])("div",{class:"lable"},"风场:",-1),l={class:"search-input"},h={class:"query-item"},d=Object(n["createElementVNode"])("div",{class:"lable"},"风机:",-1),u={class:"search-input"};function s(t,e,a,s,p,b){var f=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",o,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",c,[i,Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(m,{modelValue:a.wpId,"onUpdate:modelValue":e[0]||(e[0]=function(t){return a.wpId=t}),clearable:"",placeholder:"请选择风场","popper-class":"select",onChange:b.getWtList},{default:Object(n["withCtx"])((function(){return[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(p.wpList,(function(t){return Object(n["openBlock"])(),Object(n["createBlock"])(f,{key:t.id,label:t.name,value:t.id},null,8,["label","value"])})),128))]})),_:1},8,["modelValue","onChange"])])]),Object(n["createElementVNode"])("div",h,[d,Object(n["createElementVNode"])("div",u,[Object(n["createVNode"])(m,{modelValue:a.wtId,"onUpdate:modelValue":e[1]||(e[1]=function(t){return a.wtId=t}),clearable:"",placeholder:"请选择风机","popper-class":"select",onChange:b.wtChange},{default:Object(n["withCtx"])((function(){return[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(p.wtList,(function(t){return Object(n["openBlock"])(),Object(n["createBlock"])(f,{key:t.id,label:t.name,value:t.id},null,8,["label","value"])})),128))]})),_:1},8,["modelValue","onChange"])])])])])}var p=a("8d8a"),b={props:{wpId:{type:String,default:"GJY_FDC"},wtId:{type:String,default:"GJY01_GC"}},emits:{},data:function(){return{wpList:[],wtList:[]}},created:function(){this.getWpList(),this.getWtList()},methods:{getWpList:function(){var t=this;p["a"].powercompareWindfarmAjax().then((function(e){t.wpList=e.data}))},getWtList:function(){var t=this;p["a"].powercompareWindturbineAjax({wpId:this.wpId}).then((function(e){t.wtList=e.data}))},wtChange:function(){this.$emit("change",{wtId:this.wtId,wpId:this.wpId})}}},f=a("6b0d"),m=a.n(f);const w=m()(b,[["render",s]]);e["a"]=w},"8d8a":function(t,e,a){"use strict";a("99af");var n=a("f46b"),o=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"".concat(t.url),method:"get"})},r=function(t,e){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"".concat(t,"?rid=").concat(e.rid),method:"post",data:e})},c=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"recommen/findAllChartjz?wpId=".concat(t.wpId,"&type=").concat(t.type),method:"get"})},i=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"recommen/recommenConfirmedList",method:"get"})},l=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"powercompare/windturbineAjax?wpId=".concat(t.wpId),method:"get"})},h=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"recommen/unfinishedList?wpId=".concat(t.wpId,"&wtId=").concat(t.wtId,"&beginDate=").concat(t.beginDate,"&endDate=").concat(t.endDate),method:"get"})},d=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"recommen/findMainTrack?rid=".concat(t.rid),method:"get"})},u=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"recommen/unfinishedList?wpId=".concat(t.wpId,"&wtId=").concat(t.wtId,"&beginDate=").concat(t.beginDate,"&endDate=").concat(t.endDate),method:"get"})},s=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/findAllMap",method:"get"})},p=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"/health/countWpwarn?type=".concat(t.type),method:"get"})},b=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"/health/countStop?type=".concat(t.type),method:"get"})},f=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"/health/countWpOrProStatus?type=".concat(t.type),method:"get"})},m=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"/health/findWpOrProStatusForHistory?type=".concat(t.type,"&status=").concat(t.status),method:"get"})},w=function(){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"/health/findHealthMatrixMap",method:"get"})},g=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"powercompare/windfarmAjax",method:"get"})},j=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"/health/windTurbineHealthList?wpId=".concat(t.wpId),method:"get"})},O=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/hsFjValueIndex?wtId=".concat(t.wtId),method:"get"})},I=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/gadaytop5?wtId=".concat(t.wtId),method:"get"})},y=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/queryStopTop10?wtId=".concat(t.wtId),method:"get"})},L=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/getWtMttrandMtbfByBj?wtId=".concat(t.wtId),method:"get"})},v=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/findPowerChar?wtId=".concat(t.wtId),method:"get"})},C=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/getWeatherRealDay5Info?wpId=".concat(t.wpId),method:"get"})},x=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/findWtHisValueForBj?wtId=".concat(t.wtId),method:"get"})},k=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"healthreport/healthReport?wtid=".concat(t.wtid,"&date=").concat(t.date),method:"get"})};e["a"]={requestRecommen:o,recommen:r,findAllChartjz:c,recommenRecommenConfirmedList:i,powercompareWindturbineAjax:l,recommenUnfinishedList:h,recommenFindMainTrack:d,recommenFinishedList:u,healthmainFindAllMap:s,healthoperationCountWpwarn:p,healthoperationCountStop:b,healthoperationCountWpOrProStatus:f,healthoperationFindWpOrProStatusForHistory:m,healthmainFindHealthMatrixMap:w,powercompareWindfarmAjax:g,wtHealthListWindTurbineHealthList:j,healthsubHsFjValueIndex:O,healthsubGadaytop5:I,healthsubQueryStopTop10:y,healthsubGetWtMttrandMtbfByBj:L,healthsubFindPowerChar:v,healthsubGetWeatherRealDay5Info:C,healthsubFindWtHisValueForBj:x,healthreportHealthReport:k}},9527:function(t,e,a){},c752:function(t,e,a){"use strict";a("9527")},de3f:function(t,e,a){}}]);
- //# sourceMappingURL=healthLineChart.d46917e2.js.map
|