chunk-1efd118f.6f25751b.js 9.3 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1efd118f"],{"0e8d":function(t,e,a){"use strict";a("b7a9")},"2af9":function(t,e,a){"use strict";a.r(e);var n=a("f2bf"),o={class:"health-6"},c={class:"header-info mg-b-16"},r={class:"selections"},i={class:"svg-icon svg-icon-sm"},u=Object(n["createElementVNode"])("span",null,"风场",-1),h={class:"svg-icon svg-icon-sm"},s=Object(n["createElementVNode"])("span",null,"项目",-1),l={class:"mg-b-16"},d={class:"mg-b-16 curStyle"},p={class:"selections"};function b(t,e,a,b,m,f){var j=Object(n["resolveComponent"])("svg-icon"),O=Object(n["resolveComponent"])("dual-pie-chart"),g=Object(n["resolveComponent"])("panel"),w=Object(n["resolveComponent"])("Col"),v=Object(n["resolveComponent"])("row"),L=Object(n["resolveComponent"])("bar-line-chart"),C=Object(n["resolveComponent"])("MultipleLineChart");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",o,[Object(n["createElementVNode"])("div",c,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["item",{active:"1"===m.type}]),onClick:e[0]||(e[0]=function(t){return f.tabSelect("1")})},[Object(n["createElementVNode"])("i",i,[Object(n["createVNode"])(j,{svgid:"svg-wind-site"})]),u],2),Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["item",{active:"2"===m.type}]),onClick:e[1]||(e[1]=function(t){return f.tabSelect("2")})},[Object(n["createElementVNode"])("i",h,[Object(n["createVNode"])(j,{svgid:"svg-h-project"})]),s],2)]),Object(n["createCommentVNode"])("",!0)]),Object(n["createVNode"])(v,{type:"flex",class:"mg-b-16"},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(w,{span:12},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(g,{title:"报警统计图",showLine:!1},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(O,{innerData:m.healPieData,outerData:m.healPieData,height:"230px"},null,8,["innerData","outerData"])]})),_:1})]})),_:1}),Object(n["createVNode"])(w,{span:12},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(g,{title:"故障统计图",showLine:!1},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(O,{innerData:m.stopPieData,outerData:m.stopPieData,height:"230px"},null,8,["innerData","outerData"])]})),_:1})]})),_:1})]})),_:1}),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{title:"健康状态占比",showLine:!1},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(L,{bardata:m.barData,lineData:[],height:"230px",pageSize:6},null,8,["bardata"])]})),_:1})]),Object(n["createElementVNode"])("div",d,[Object(n["createVNode"])(g,{title:"健康趋势",showLine:!1},{default:Object(n["withCtx"])((function(){return[Object(n["createVNode"])(C,{list:m.statusData,units:[""],height:"230px"},null,8,["list"])]})),_:1}),Object(n["createElementVNode"])("div",p,[Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["item",{green:"1"===m.status}]),onClick:e[2]||(e[2]=function(t){return f.changeStatus("1")})}," 良好 ",2),Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["item",{green:"2"===m.status}]),onClick:e[3]||(e[3]=function(t){return f.changeStatus("2")})}," 注意 ",2)])])])}a("d3b7"),a("159b"),a("b0c0");var m=a("d939"),f=a("2a66"),j=a("4059"),O=a("4f20"),g=a("7757"),w=a("aa49"),v=a("6471"),L=a("8d8a"),C={setup:function(){},components:{SvgIcon:w["a"],Panel:v["a"],MultipleLineChart:f["a"],BarLineChart:m["a"],Row:g["a"],Col:O["a"],DualPieChart:j["a"]},data:function(){return{type:"2",status:"1",healPieData:[],stopPieData:[],statusData:[],barData:{area:[],legend:[],data:[]}}},created:function(){this.requestData()},methods:{requestData:function(){this.getWpwarn(),this.getStop(),this.getWpOrProStatus(),this.getStatus()},getWpwarn:function(){var t=this;L["a"].healthoperationCountWpwarn({type:this.type}).then((function(e){var a=[];e.data.forEach((function(t){a.push({value:t.value,unit:"次",name:t.name})})),t.healPieData=a}))},getStop:function(){var t=this;L["a"].healthoperationCountStop({type:this.type}).then((function(e){var a=[];e.data.forEach((function(t){a.push({value:t.value,unit:"次",name:t.name})})),t.stopPieData=a}))},getWpOrProStatus:function(){var t=this;L["a"].healthoperationCountWpOrProStatus({type:this.type}).then((function(e){for(var a={area:e.data.name,legend:["良好数量","正常数量","注意数量","严重数量"],data:[]},n=e.data.name.length,o=0;o<n;o++)a.data.push([]);for(var c=0;c<n;c++)a.data[c].push(e.data.lhList[c]),a.data[c].push(e.data.hgList[c]),a.data[c].push(e.data.zyList[c]),a.data[c].push(e.data.yzList[c]);t.barData=a}))},getStatus:function(){var t=this;L["a"].healthoperationFindWpOrProStatusForHistory({type:this.type,status:this.status}).then((function(e){var a=[],n=e.data.time;for(var o in e.data)"name"!==o&&"time"!==o&&function(){var t=e.data[o],c={title:e.data.name[0][o],smooth:!0,value:[]};n.forEach((function(e,a){c.value.push({text:e,value:t[a]})})),a.push(c)}();t.statusData=a}))},tabSelect:function(t){this.type=t,this.requestData()},changeStatus:function(t){this.status=t,this.getStatus()}}},y=(a("0e8d"),a("6b0d")),D=a.n(y);const I=D()(C,[["render",b]]);e["default"]=I},"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"})},c=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})},r=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"})},u=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"})},s=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"recommen/findMainTrack?rid=".concat(t.rid),method:"get"})},l=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:"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"})},m=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"/health/countWpOrProStatus?type=".concat(t.type),method:"get"})},f=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"})},j=function(){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"/health/findHealthMatrixMap",method:"get"})},O=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"powercompare/windfarmAjax",method:"get"})},g=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"/health/windTurbineHealthList?wpId=".concat(t.wpId),method:"get"})},w=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/hsFjValueIndex?wtId=".concat(t.wtId),method:"get"})},v=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/gadaytop5?wtId=".concat(t.wtId),method:"get"})},L=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/queryStopTop10?wtId=".concat(t.wtId),method:"get"})},C=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/getWtMttrandMtbfByBj?wtId=".concat(t.wtId),method:"get"})},y=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/findPowerChar?wtId=".concat(t.wtId),method:"get"})},D=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/getWeatherRealDay5Info?wpId=".concat(t.wpId),method:"get"})},I=function(t){return Object(n["a"])({baseURL:"http://10.81.3.155:8170",url:"health/findWtHisValueForBj?wtId=".concat(t.wtId),method:"get"})},R=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:c,findAllChartjz:r,recommenRecommenConfirmedList:i,powercompareWindturbineAjax:u,recommenUnfinishedList:h,recommenFindMainTrack:s,recommenFinishedList:l,healthmainFindAllMap:d,healthoperationCountWpwarn:p,healthoperationCountStop:b,healthoperationCountWpOrProStatus:m,healthoperationFindWpOrProStatusForHistory:f,healthmainFindHealthMatrixMap:j,powercompareWindfarmAjax:O,wtHealthListWindTurbineHealthList:g,healthsubHsFjValueIndex:w,healthsubGadaytop5:v,healthsubQueryStopTop10:L,healthsubGetWtMttrandMtbfByBj:C,healthsubFindPowerChar:y,healthsubGetWeatherRealDay5Info:D,healthsubFindWtHisValueForBj:I,healthreportHealthReport:R}},b7a9:function(t,e,a){}}]);
  2. //# sourceMappingURL=chunk-1efd118f.6f25751b.js.map