healthAssessmentDetailed.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. export default {
  2. data(){
  3. return {
  4. tjdiv:'',
  5. tableDataAll:[],
  6. fdjtable:[],
  7. clxtable:[],
  8. zktable:[],
  9. bjtable:[],
  10. wtid:'',
  11. textData:'',
  12. recorddate:'',
  13. qxpclChart:'',
  14. qxpclData:[],
  15. qxpcljzzData:[],
  16. xqxpcldata:[],
  17. fdlChart:[],
  18. clxChart:[],
  19. bjChart:[],
  20. zkChart:[],
  21. fdlData:[],
  22. clxData:[],
  23. bjData:[],
  24. zkData:[],
  25. xfdldata:[],
  26. xclxdata:[],
  27. xbjdata:[],
  28. xzkdata:[],
  29. //推荐检修风速
  30. windspeed:'',
  31. //结论
  32. conclusion:'',
  33. //高频
  34. highfrequency:'',
  35. //中频
  36. intermediatefrequency:'',
  37. //低频
  38. lowfrequency:'',
  39. //推荐工具器
  40. tools:'',
  41. //平均消缺时长
  42. mainhour:'',
  43. //推荐检修方法
  44. mainmethod:'',
  45. //推荐检修日期
  46. maindate:'',
  47. //报告出具时间
  48. bgcjdate:'',
  49. //风机
  50. wtName:'',
  51. //评级操作
  52. djpgjb:'',
  53. //推荐处理方法
  54. approach:'',
  55. // 推荐检修理由
  56. mainreason:'',
  57. //echart数值大小
  58. max:'',
  59. }
  60. },
  61. created(){
  62. this.getData();
  63. this.KeyparameterData();
  64. },
  65. methods:{
  66. headStyle() {
  67. return "text-align:center"
  68. },
  69. KeyparameterData(){
  70. this.fdjtable.push({name:'发电机轴A温度',edz:'76',yxfw:'0-95',qz:'0.035'});
  71. this.fdjtable.push({name:'发电机轴B温度',edz:'76',yxfw:'0-95',qz:'0.035'});
  72. this.fdjtable.push({name:'发电机U相绕组温度',edz:'120',yxfw:'0-150',qz:'0.038'});
  73. this.fdjtable.push({name:'发电机V相绕组温度',edz:'120',yxfw:'0-150',qz:'0.427'});
  74. this.fdjtable.push({name:'发电机W相绕组温度',edz:'120',yxfw:'0-150',qz:'0.465'});
  75. this.fdjtable.push({name:'发电机冷却风',edz:'56',yxfw:'0-70',qz:'0'});
  76. this.clxtable.push({name:'齿轮箱输入轴1油温',edz:'76',yxfw:'0-95',qz:'0.0114'});
  77. this.clxtable.push({name:'齿轮箱输入轴2油温',edz:'76',yxfw:'0-95',qz:'0.4537'});
  78. this.clxtable.push({name:'齿轮箱入口油温',edz:'64',yxfw:'0-80',qz:'0.0218'});
  79. this.clxtable.push({name:'齿轮箱油温',edz:'31',yxfw:'10-14-76-80',qz:'0.5131'});
  80. this.bjtable.push({name:'变浆电容器温度1',edz:'52',yxfw:'0-65',qz:'0.0069'});
  81. this.bjtable.push({name:'变浆电容器温度2',edz:'52',yxfw:'0-65',qz:'0.0069'});
  82. this.bjtable.push({name:'变浆电容器温度3',edz:'52',yxfw:'0-65',qz:'0.0069'});
  83. this.bjtable.push({name:'变浆电容电压1',edz:'58',yxfw:'53-56-60-63',qz:'0.2724'});
  84. this.bjtable.push({name:'变浆电容电压2',edz:'58',yxfw:'53-56-60-63',qz:'0.2724'});
  85. this.bjtable.push({name:'变浆电容电压3',edz:'58',yxfw:'53-56-60-63',qz:'0.2724'});
  86. this.bjtable.push({name:'变浆电流器温度1',edz:'60',yxfw:'0-75',qz:'0.0128'});
  87. this.bjtable.push({name:'变浆电流器温度2',edz:'60',yxfw:'0-75',qz:'0.0128'});
  88. this.bjtable.push({name:'变浆电流器温度3',edz:'60',yxfw:'0-75',qz:'0.0128'});
  89. this.bjtable.push({name:'电机温度1',edz:'110',yxfw:'0-135',qz:'0.0083'});
  90. this.bjtable.push({name:'电机温度2',edz:'110',yxfw:'0-135',qz:'0.0083'});
  91. this.bjtable.push({name:'电机温度3',edz:'110',yxfw:'0-135',qz:'0.0083'});
  92. this.bjtable.push({name:'变浆控制柜温度1',edz:'52',yxfw:'0-65',qz:'0.0033'});
  93. this.bjtable.push({name:'变浆控制柜温度2',edz:'52',yxfw:'0-65',qz:'0.0033'});
  94. this.bjtable.push({name:'变浆控制柜温度3',edz:'52',yxfw:'0-65',qz:'0.0033'});
  95. this.zktable.push({name:'塔底柜温度',edz:'40',yxfw:'0-50',qz:'0.75'});
  96. this.zktable.push({name:'塔顶机舱柜温度',edz:'60',yxfw:'0-75',qz:'0.25'});
  97. },
  98. changeTableSort(column){
  99. this.orderByColumn = column.prop;
  100. if(column.order == "descending"){
  101. this.isAsc = 'desc';
  102. }else if(column.order == "ascending"){
  103. this.isAsc = "asc";
  104. }
  105. },
  106. getData(){
  107. this.qxpclData = [];
  108. this.qxpcljzzData = [];
  109. this.fdlData = [];
  110. this.wtid = this.$route.query.data.wtid;
  111. this.recorddate = this.$route.query.recorddate;
  112. console.log(this.recorddate)
  113. var healthForm = new URLSearchParams();
  114. healthForm.append('wtId',this.wtid);
  115. healthForm.append('recorddate',this.recorddate);
  116. this.API.post('/report/healthReport',healthForm).then((res) =>{
  117. console.log(res.data)
  118. this.qxpclChart = res.data.sub;
  119. if(res.data.main.gztop3name == '健康指标未达到推荐级别,故不在推荐范围之内'){
  120. this.tjdiv = false;
  121. }else{
  122. this.tjdiv = true;
  123. }
  124. for(let i=0;i<this.qxpclChart.length;i++){
  125. this.djpgjb = this.qxpclChart[0].djpgjb;
  126. this.qxpclData.push(this.qxpclChart[i].qxpcl);
  127. this.qxpcljzzData.push(this.qxpclChart[i].qxpcljzz);
  128. let datechart = new Date(this.qxpclChart[i].recodedate);
  129. this.xqxpcldata.push(this.BASE.getBzDate(datechart, 0));
  130. this.$nextTick(function() {
  131. this.getChartDataImport('chartHistogram')
  132. })
  133. }
  134. this.conclusion = res.data.main.gztop3name;
  135. this.highfrequency = res.data.main.top1type;
  136. this.intermediatefrequency = res.data.main.top2type;
  137. this.lowfrequency = res.data.main.top3type;
  138. this.windspeed = res.data.main.speed;
  139. this.tools = res.data.main.tools;
  140. this.mainhour = res.data.main.mainhour;
  141. this.mainmethod = res.data.main.mainmethod;
  142. this.maindate = res.data.main.maindate;
  143. let date = new Date(this.maindate);
  144. this.maindate = this.BASE.getBzDate(date, 0);
  145. this.bgcjdate = res.data.main.recodedate;
  146. let datebg = new Date(this.bgcjdate);
  147. this.bgcjdate = this.BASE.getBzDate(datebg, 0);
  148. this.approach = res.data.main.approach;
  149. this.mainreason = res.data.main.mainreason;
  150. })
  151. var healthFormCharts = new URLSearchParams();
  152. healthFormCharts.append('wtId',this.wtid);
  153. healthFormCharts.append('partId','fdj');
  154. healthFormCharts.append('recorddate',this.recorddate);
  155. this.API.post('/report/healthReportChart',healthFormCharts).then((res) =>{
  156. this.fdlChart = res.data;
  157. for(let i=0;i<this.fdlChart.length;i++){
  158. this.fdlData.push(this.fdlChart[i].value);
  159. let datefdlchart = new Date(this.fdlChart[i].recorddate);
  160. this.xfdldata.push(this.BASE.getBzDate(datefdlchart, 0));
  161. this.$nextTick(function() {
  162. this.getChartDataImport2('chartHistogram2')
  163. })
  164. }
  165. })
  166. var gearboxCharts = new URLSearchParams();
  167. gearboxCharts.append('wtId',this.wtid);
  168. gearboxCharts.append('partId','clx');
  169. gearboxCharts.append('recorddate',this.recorddate);
  170. this.API.post('/report/healthReportChart',gearboxCharts).then((res) =>{
  171. this.clxChart = res.data;
  172. for(let i=0;i<this.clxChart.length;i++){
  173. this.clxData.push(this.clxChart[i].value);
  174. let dateclxchart = new Date(this.clxChart[i].recorddate);
  175. this.xclxdata.push(this.BASE.getBzDate(dateclxchart, 0));
  176. this.$nextTick(function() {
  177. this.getChartDataImport3('chartHistogram3')
  178. })
  179. }
  180. })
  181. var PitchCharts = new URLSearchParams();
  182. PitchCharts.append('wtId',this.wtid);
  183. PitchCharts.append('partId','bj');
  184. PitchCharts.append('recorddate',this.recorddate);
  185. this.API.post('/report/healthReportChart',PitchCharts).then((res) =>{
  186. this.bjChart = res.data;
  187. for(let i=0;i<this.bjChart.length;i++){
  188. this.bjData.push(this.bjChart[i].value);
  189. let datebjchart = new Date(this.bjChart[i].recorddate);
  190. this.xbjdata.push(this.BASE.getBzDate(datebjchart, 0));
  191. this.$nextTick(function() {
  192. this.getChartDataImport4('chartHistogram4')
  193. })
  194. }
  195. })
  196. var mastercontrolCharts = new URLSearchParams();
  197. mastercontrolCharts.append('wtId',this.wtid);
  198. mastercontrolCharts.append('partId','zk');
  199. mastercontrolCharts.append('recorddate',this.recorddate);
  200. this.API.post('/report/healthReportChart',mastercontrolCharts).then((res) =>{
  201. this.zkChart = res.data;
  202. console.log(this.zkChart)
  203. for(let i=0;i<this.zkChart.length;i++){
  204. this.wtName = this.zkChart[0].wtname;
  205. this.zkData.push(this.zkChart[i].value);
  206. let datezkchart = new Date(this.zkChart[i].recorddate);
  207. this.xzkdata.push(this.BASE.getBzDate(datezkchart, 0))
  208. this.$nextTick(function() {
  209. this.getChartDataImport5('chartHistogram5')
  210. })
  211. }
  212. })
  213. },
  214. getChartDataImport(){
  215. this.ECLZX.getHealthCurve("chartHistogram",['曲线偏差率', '基准值'],
  216. this.xqxpcldata,this.qxpclData,this.qxpcljzzData);
  217. },
  218. getChartDataImport2(){
  219. this.max = 5;
  220. this.ECLZX.getHealthTrendChart("chartHistogram2",['发电量健康走势'],
  221. this.xfdldata,this.max,this.fdlData);
  222. },
  223. getChartDataImport3(){
  224. this.max = 1;
  225. this.ECLZX.getHealthTrendChart("chartHistogram3",['齿轮箱健康走势'],
  226. this.xclxdata,this.max,this.clxData);
  227. },
  228. getChartDataImport4(){
  229. this.max = 5;
  230. this.ECLZX.getHealthTrendChart("chartHistogram4",['变桨健康走势'],
  231. this.xbjdata,this.max,this.bjData);
  232. },
  233. getChartDataImport5(){
  234. this.max = 5;
  235. this.ECLZX.getHealthTrendChart("chartHistogram5",['主控健康走势'],
  236. this.xzkdata,this.max,this.zkData);
  237. },
  238. }
  239. }