ztfx.vue 92 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233
  1. <template>
  2. <div class="ztfx">
  3. <div class="action-bar">
  4. <div class="query mg-b-16">
  5. <div class="query-items">
  6. <div class="query-item">
  7. <div class="lable">日期:</div>
  8. <div class="search-input">
  9. <el-date-picker
  10. v-model="monthValue"
  11. type="month"
  12. placeholder="选择月份"
  13. popper-class="date-select"
  14. :clearable="false"
  15. :picker-options="pickerOptions"
  16. >
  17. </el-date-picker>
  18. </div>
  19. </div>
  20. <div class="query-item">
  21. <div class="search-input select-btn">
  22. <button class="btn green" @click="onClickSearch">搜索</button>
  23. <!-- <el-select
  24. v-model="value2"
  25. multiple
  26. placeholder="计算"
  27. popper-class="select"
  28. >
  29. <el-option
  30. v-for="item in options"
  31. :key="item.value"
  32. :label="item.label"
  33. :value="item.value"
  34. >
  35. </el-option>
  36. </el-select> -->
  37. </div>
  38. <div class="search-input select-btn">
  39. <button class="btn green" @click="exportPDF">导出</button>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="pdfDom">
  46. <el-row :gutter="20" class="table-panel">
  47. <el-col :span="12">
  48. <panel :title="'月度'" :showLine="false">
  49. <div class="table">
  50. <table style="width: 100%" border="0" cellspacing="0">
  51. <thead>
  52. <tr>
  53. <th rowspan="2" class="type1" style="width: 6vh"></th>
  54. <th rowspan="2" class="type1">理论发电量</th>
  55. <th rowspan="2" class="type1">实际发电量</th>
  56. <th rowspan="2" class="type1">风能利用率</th>
  57. <th rowspan="2" class="type1">维护损失电量</th>
  58. <th rowspan="2" class="type1">维护损失率</th>
  59. <th rowspan="2" class="type1">故障损失电量</th>
  60. <th rowspan="2" class="type1">故障损失率</th>
  61. <th rowspan="2" class="type1">限电损失电量</th>
  62. <th rowspan="2" class="type1">限电损失率</th>
  63. <th rowspan="2" class="type1">性能损失电量</th>
  64. <th rowspan="2" class="type1">性能损失率</th>
  65. <th rowspan="2" class="type1">受累损失电量</th>
  66. <th rowspan="2" class="type1">受累损失率</th>
  67. </tr>
  68. </thead>
  69. </table>
  70. <el-scrollbar>
  71. <div style="">
  72. <table
  73. style="width: 100%; text-align: center"
  74. border="0"
  75. cellspacing="0"
  76. >
  77. <tbody>
  78. <tr>
  79. <td style="width: 5vh">本期</td>
  80. <td class="td-item">
  81. {{ nowCurrents.yllfdl }}
  82. <template v-if="compares.yllfdl === 2">
  83. <span class="svg-icon svg-icon-green">
  84. <svg-icon svgid="svg-arrow-up-1" />
  85. </span>
  86. </template>
  87. <template v-if="compares.yllfdl === 1">
  88. <span class="svg-icon svg-icon-yellow">
  89. <svg-icon svgid="svg-arrow-dpwn-1" />
  90. </span>
  91. </template>
  92. </td>
  93. <td class="td-item">
  94. {{ nowCurrents.ysjfdl }}
  95. <template v-if="compares.ysjfdl === 2">
  96. <span class="svg-icon svg-icon-green">
  97. <svg-icon svgid="svg-arrow-up-1" />
  98. </span>
  99. </template>
  100. <template v-if="compares.ysjfdl === 1">
  101. <span class="svg-icon svg-icon-yellow">
  102. <svg-icon svgid="svg-arrow-dpwn-1" />
  103. </span>
  104. </template>
  105. </td>
  106. <td class="td-item">
  107. {{ nowCurrents.yfnlyl }}
  108. <template v-if="compares.yfnlyl === 2">
  109. <span class="svg-icon svg-icon-green">
  110. <svg-icon svgid="svg-arrow-up-1" />
  111. </span>
  112. </template>
  113. <template v-if="compares.yfnlyl === 1">
  114. <span class="svg-icon svg-icon-yellow">
  115. <svg-icon svgid="svg-arrow-dpwn-1" />
  116. </span>
  117. </template>
  118. </td>
  119. <td class="td-item">
  120. {{ nowCurrents.ywhssdl }}
  121. <template v-if="compares.ywhssdl === 2">
  122. <span class="svg-icon svg-icon-green">
  123. <svg-icon svgid="svg-arrow-up-1" />
  124. </span>
  125. </template>
  126. <template v-if="compares.ywhssdl === 1">
  127. <span class="svg-icon svg-icon-yellow">
  128. <svg-icon svgid="svg-arrow-dpwn-1" />
  129. </span>
  130. </template>
  131. </td>
  132. <td class="td-item">
  133. {{ nowCurrents.ywhssl }}
  134. <template v-if="compares.ywhssl === 2">
  135. <span class="svg-icon svg-icon-green">
  136. <svg-icon svgid="svg-arrow-up-1" />
  137. </span>
  138. </template>
  139. <template v-if="compares.ywhssl === 1">
  140. <span class="svg-icon svg-icon-yellow">
  141. <svg-icon svgid="svg-arrow-dpwn-1" />
  142. </span>
  143. </template>
  144. </td>
  145. <td class="td-item">
  146. {{ nowCurrents.ygzssdl }}
  147. <template v-if="compares.ygzssdl === 2">
  148. <span class="svg-icon svg-icon-green">
  149. <svg-icon svgid="svg-arrow-up-1" />
  150. </span>
  151. </template>
  152. <template v-if="compares.ygzssdl === 1">
  153. <span class="svg-icon svg-icon-yellow">
  154. <svg-icon svgid="svg-arrow-dpwn-1" />
  155. </span>
  156. </template>
  157. </td>
  158. <td class="td-item">
  159. {{ nowCurrents.ygzssl }}
  160. <template v-if="compares.ygzssl === 2">
  161. <span class="svg-icon svg-icon-green">
  162. <svg-icon svgid="svg-arrow-up-1" />
  163. </span>
  164. </template>
  165. <template v-if="compares.ygzssl === 1">
  166. <span class="svg-icon svg-icon-yellow">
  167. <svg-icon svgid="svg-arrow-dpwn-1" />
  168. </span>
  169. </template>
  170. </td>
  171. <td class="td-item">
  172. {{ nowCurrents.yxdssdl }}
  173. <template v-if="compares.yxdssdl === 2">
  174. <span class="svg-icon svg-icon-green">
  175. <svg-icon svgid="svg-arrow-up-1" />
  176. </span>
  177. </template>
  178. <template v-if="compares.yxdssdl === 1">
  179. <span class="svg-icon svg-icon-yellow">
  180. <svg-icon svgid="svg-arrow-dpwn-1" />
  181. </span>
  182. </template>
  183. </td>
  184. <td class="td-item">
  185. {{ nowCurrents.yxdssl }}
  186. <template v-if="compares.yxdssl === 2">
  187. <span class="svg-icon svg-icon-green">
  188. <svg-icon svgid="svg-arrow-up-1" />
  189. </span>
  190. </template>
  191. <template v-if="compares.yxdssl === 1">
  192. <span class="svg-icon svg-icon-yellow">
  193. <svg-icon svgid="svg-arrow-dpwn-1" />
  194. </span>
  195. </template>
  196. </td>
  197. <td class="td-item">
  198. {{ nowCurrents.yxnssdl }}
  199. <template v-if="compares.yxnssdl === 2">
  200. <span class="svg-icon svg-icon-green">
  201. <svg-icon svgid="svg-arrow-up-1" />
  202. </span>
  203. </template>
  204. <template v-if="compares.yxnssdl === 1">
  205. <span class="svg-icon svg-icon-yellow">
  206. <svg-icon svgid="svg-arrow-dpwn-1" />
  207. </span>
  208. </template>
  209. </td>
  210. <td class="td-item">
  211. {{ nowCurrents.yxnssl }}
  212. <template v-if="compares.yxnssl === 2">
  213. <span class="svg-icon svg-icon-green">
  214. <svg-icon svgid="svg-arrow-up-1" />
  215. </span>
  216. </template>
  217. <template v-if="compares.yxnssl === 1">
  218. <span class="svg-icon svg-icon-yellow">
  219. <svg-icon svgid="svg-arrow-dpwn-1" />
  220. </span>
  221. </template>
  222. </td>
  223. <td class="td-item">
  224. {{ nowCurrents.yslssdl }}
  225. <template v-if="compares.yslssdl === 2">
  226. <span class="svg-icon svg-icon-green">
  227. <svg-icon svgid="svg-arrow-up-1" />
  228. </span>
  229. </template>
  230. <template v-if="compares.yslssdl === 1">
  231. <span class="svg-icon svg-icon-yellow">
  232. <svg-icon svgid="svg-arrow-dpwn-1" />
  233. </span>
  234. </template>
  235. </td>
  236. <td class="td-item">
  237. {{ nowCurrents.yslssl }}
  238. <template v-if="compares.yslssl === 2">
  239. <span class="svg-icon svg-icon-green">
  240. <svg-icon svgid="svg-arrow-up-1" />
  241. </span>
  242. </template>
  243. <template v-if="compares.yslssl === 1">
  244. <span class="svg-icon svg-icon-yellow">
  245. <svg-icon svgid="svg-arrow-dpwn-1" />
  246. </span>
  247. </template>
  248. </td>
  249. </tr>
  250. <tr>
  251. <td style="width: 5vh">同期</td>
  252. <td class="td-item">
  253. {{ sameList.yllfdl }}
  254. </td>
  255. <td class="td-item">
  256. {{ sameList.ysjfdl }}
  257. </td>
  258. <td class="td-item">
  259. {{ sameList.yfnlyl }}
  260. </td>
  261. <td class="td-item">
  262. {{ sameList.ywhssdl }}
  263. </td>
  264. <td class="td-item">
  265. {{ sameList.ywhssl }}
  266. </td>
  267. <td class="td-item">
  268. {{ sameList.ygzssdl }}
  269. </td>
  270. <td class="td-item">
  271. {{ sameList.ygzssl }}
  272. </td>
  273. <td class="td-item">
  274. {{ sameList.yxdssdl }}
  275. </td>
  276. <td class="td-item">
  277. {{ sameList.yxdssl }}
  278. </td>
  279. <td class="td-item">
  280. {{ sameList.yxnssdl }}
  281. </td>
  282. <td class="td-item">
  283. {{ sameList.yxnssl }}
  284. </td>
  285. <td class="td-item">
  286. {{ sameList.yslssdl }}
  287. </td>
  288. <td class="td-item">
  289. {{ sameList.yslssl }}
  290. </td>
  291. </tr>
  292. </tbody>
  293. </table>
  294. </div>
  295. </el-scrollbar>
  296. </div>
  297. </panel>
  298. </el-col>
  299. <el-col :span="12">
  300. <panel :title="'年度'" :showLine="false">
  301. <div class="table">
  302. <table style="width: 100%" border="0" cellspacing="0">
  303. <thead>
  304. <tr>
  305. <th rowspan="2" class="type1">理论发电量</th>
  306. <th rowspan="2" class="type1">实际电量</th>
  307. <th rowspan="2" class="type1">风能利用率</th>
  308. <th rowspan="2" class="type1">维护损失电量</th>
  309. <th rowspan="2" class="type1">维护损失率</th>
  310. <th rowspan="2" class="type1">故障损失电量</th>
  311. <th rowspan="2" class="type1">故障损失率</th>
  312. <th rowspan="2" class="type1">限电损失电量</th>
  313. <th rowspan="2" class="type1">限电损失率</th>
  314. <th rowspan="2" class="type1">性能损失电量</th>
  315. <th rowspan="2" class="type1">性能损失率</th>
  316. <th rowspan="2" class="type1">受累损失电量</th>
  317. <th rowspan="2" class="type1">受累损失率</th>
  318. </tr>
  319. </thead>
  320. </table>
  321. <el-scrollbar>
  322. <div style="">
  323. <table
  324. style="width: 100%; text-align: center"
  325. border="0"
  326. cellspacing="0"
  327. >
  328. <tbody>
  329. <tr>
  330. <td class="td-item">
  331. {{ nowCurrents.nllfdl }}
  332. <template v-if="compares.nllfdl === 2">
  333. <span class="svg-icon svg-icon-green">
  334. <svg-icon svgid="svg-arrow-up-1" />
  335. </span>
  336. </template>
  337. <template v-if="compares.nllfdl === 1">
  338. <span class="svg-icon svg-icon-yellow">
  339. <svg-icon svgid="svg-arrow-dpwn-1" />
  340. </span>
  341. </template>
  342. </td>
  343. <td class="td-item">
  344. {{ nowCurrents.nsjfdl }}
  345. <template v-if="compares.nsjfdl === 2">
  346. <span class="svg-icon svg-icon-green">
  347. <svg-icon svgid="svg-arrow-up-1" />
  348. </span>
  349. </template>
  350. <template v-if="compares.nsjfdl === 1">
  351. <span class="svg-icon svg-icon-yellow">
  352. <svg-icon svgid="svg-arrow-dpwn-1" />
  353. </span>
  354. </template>
  355. </td>
  356. <td class="td-item">
  357. {{ nowCurrents.nfnlyl }}
  358. <template v-if="compares.nfnlyl === 2">
  359. <span class="svg-icon svg-icon-green">
  360. <svg-icon svgid="svg-arrow-up-1" />
  361. </span>
  362. </template>
  363. <template v-if="compares.nfnlyl === 1">
  364. <span class="svg-icon svg-icon-yellow">
  365. <svg-icon svgid="svg-arrow-dpwn-1" />
  366. </span>
  367. </template>
  368. </td>
  369. <td class="td-item">
  370. {{ nowCurrents.nwhssdl }}
  371. <template v-if="compares.nwhssdl === 2">
  372. <span class="svg-icon svg-icon-green">
  373. <svg-icon svgid="svg-arrow-up-1" />
  374. </span>
  375. </template>
  376. <template v-if="compares.nwhssdl === 1">
  377. <span class="svg-icon svg-icon-yellow">
  378. <svg-icon svgid="svg-arrow-dpwn-1" />
  379. </span>
  380. </template>
  381. </td>
  382. <td class="td-item">
  383. {{ nowCurrents.nwhssl }}
  384. <template v-if="compares.nwhssl === 2">
  385. <span class="svg-icon svg-icon-green">
  386. <svg-icon svgid="svg-arrow-up-1" />
  387. </span>
  388. </template>
  389. <template v-if="compares.nwhssl === 1">
  390. <span class="svg-icon svg-icon-yellow">
  391. <svg-icon svgid="svg-arrow-dpwn-1" />
  392. </span>
  393. </template>
  394. </td>
  395. <td class="td-item">
  396. {{ nowCurrents.ngzssdl }}
  397. <template v-if="compares.ngzssdl === 2">
  398. <span class="svg-icon svg-icon-green">
  399. <svg-icon svgid="svg-arrow-up-1" />
  400. </span>
  401. </template>
  402. <template v-if="compares.ngzssdl === 1">
  403. <span class="svg-icon svg-icon-yellow">
  404. <svg-icon svgid="svg-arrow-dpwn-1" />
  405. </span>
  406. </template>
  407. </td>
  408. <td class="td-item">
  409. {{ nowCurrents.ngzssl }}
  410. <template v-if="compares.ngzssl === 2">
  411. <span class="svg-icon svg-icon-green">
  412. <svg-icon svgid="svg-arrow-up-1" />
  413. </span>
  414. </template>
  415. <template v-if="compares.ngzssl === 1">
  416. <span class="svg-icon svg-icon-yellow">
  417. <svg-icon svgid="svg-arrow-dpwn-1" />
  418. </span>
  419. </template>
  420. </td>
  421. <td class="td-item">
  422. {{ nowCurrents.nxdssdl }}
  423. <template v-if="compares.nxdssdl === 2">
  424. <span class="svg-icon svg-icon-green">
  425. <svg-icon svgid="svg-arrow-up-1" />
  426. </span>
  427. </template>
  428. <template v-if="compares.nxdssdl === 1">
  429. <span class="svg-icon svg-icon-yellow">
  430. <svg-icon svgid="svg-arrow-dpwn-1" />
  431. </span>
  432. </template>
  433. </td>
  434. <td class="td-item">
  435. {{ nowCurrents.nxdssl }}
  436. <template v-if="compares.nxdssl === 2">
  437. <span class="svg-icon svg-icon-green">
  438. <svg-icon svgid="svg-arrow-up-1" />
  439. </span>
  440. </template>
  441. <template v-if="compares.nxdssl === 1">
  442. <span class="svg-icon svg-icon-yellow">
  443. <svg-icon svgid="svg-arrow-dpwn-1" />
  444. </span>
  445. </template>
  446. </td>
  447. <td class="td-item">
  448. {{ nowCurrents.nxnssdl }}
  449. <template v-if="compares.nxnssdl === 2">
  450. <span class="svg-icon svg-icon-green">
  451. <svg-icon svgid="svg-arrow-up-1" />
  452. </span>
  453. </template>
  454. <template v-if="compares.nxnssdl === 1">
  455. <span class="svg-icon svg-icon-yellow">
  456. <svg-icon svgid="svg-arrow-dpwn-1" />
  457. </span>
  458. </template>
  459. </td>
  460. <td class="td-item">
  461. {{ nowCurrents.nxnssl }}
  462. <template v-if="compares.nxnssl === 2">
  463. <span class="svg-icon svg-icon-green">
  464. <svg-icon svgid="svg-arrow-up-1" />
  465. </span>
  466. </template>
  467. <template v-if="compares.nxnssl === 1">
  468. <span class="svg-icon svg-icon-yellow">
  469. <svg-icon svgid="svg-arrow-dpwn-1" />
  470. </span>
  471. </template>
  472. </td>
  473. <td class="td-item">
  474. {{ nowCurrents.nslssdl }}
  475. <template v-if="compares.nslssdl === 2">
  476. <span class="svg-icon svg-icon-green">
  477. <svg-icon svgid="svg-arrow-up-1" />
  478. </span>
  479. </template>
  480. <template v-if="compares.nslssdl === 1">
  481. <span class="svg-icon svg-icon-yellow">
  482. <svg-icon svgid="svg-arrow-dpwn-1" />
  483. </span>
  484. </template>
  485. </td>
  486. <td class="td-item">
  487. {{ nowCurrents.nslssl }}
  488. <template v-if="compares.nslssl === 2">
  489. <span class="svg-icon svg-icon-green">
  490. <svg-icon svgid="svg-arrow-up-1" />
  491. </span>
  492. </template>
  493. <template v-if="compares.nslssl === 1">
  494. <span class="svg-icon svg-icon-yellow">
  495. <svg-icon svgid="svg-arrow-dpwn-1" />
  496. </span>
  497. </template>
  498. </td>
  499. </tr>
  500. <tr>
  501. <td class="td-item">
  502. {{ sameList.nllfdl }}
  503. </td>
  504. <td class="td-item">
  505. {{ sameList.nsjfdl }}
  506. </td>
  507. <td class="td-item">
  508. {{ sameList.nfnlyl }}
  509. </td>
  510. <td class="td-item">
  511. {{ sameList.nwhssdl }}
  512. </td>
  513. <td class="td-item">
  514. {{ sameList.nwhssl }}
  515. </td>
  516. <td class="td-item">
  517. {{ sameList.ngzssdl }}
  518. </td>
  519. <td class="td-item">
  520. {{ sameList.ngzssl }}
  521. </td>
  522. <td class="td-item">
  523. {{ sameList.nxdssdl }}
  524. </td>
  525. <td class="td-item">
  526. {{ sameList.nxdssl }}
  527. </td>
  528. <td class="td-item">
  529. {{ sameList.nxnssdl }}
  530. </td>
  531. <td class="td-item">
  532. {{ sameList.nxnssl }}
  533. </td>
  534. <td class="td-item">
  535. {{ sameList.nslssdl }}
  536. </td>
  537. <td class="td-item">
  538. {{ sameList.nslssl }}
  539. </td>
  540. </tr>
  541. </tbody>
  542. </table>
  543. </div>
  544. </el-scrollbar>
  545. </div>
  546. </panel>
  547. </el-col>
  548. </el-row>
  549. <el-row :gutter="20" class="table-complex">
  550. <el-col :span="12">
  551. <div class="table">
  552. <table style="width: 100%" border="0" cellspacing="0">
  553. <thead>
  554. <tr>
  555. <th rowspan="2" class="type1" style="width: 50px"></th>
  556. <th colspan="2" class="type1" style="width: 205px">麻黄山</th>
  557. <th colspan="2" class="type1" style="width: 205px">牛首山</th>
  558. <th colspan="2" class="type1" style="width: 205px">青山</th>
  559. <th colspan="2" class="type1" style="width: 205px">石板泉</th>
  560. <th colspan="2" class="type1" style="width: 205px">香山</th>
  561. </tr>
  562. <tr>
  563. <th style="width: 105px">当月</th>
  564. <th style="width: 105px">同期</th>
  565. <th style="width: 105px">当月</th>
  566. <th style="width: 105px">同期</th>
  567. <th style="width: 105px">当月</th>
  568. <th style="width: 105px">同期</th>
  569. <th style="width: 105px">当月</th>
  570. <th style="width: 105px">同期</th>
  571. <th style="width: 105px">当月</th>
  572. <th style="width: 105px">同期</th>
  573. </tr>
  574. </thead>
  575. </table>
  576. <el-scrollbar>
  577. <div style="">
  578. <table
  579. style="width: 100%; text-align: center"
  580. border="0"
  581. cellspacing="0"
  582. >
  583. <tbody>
  584. <tr>
  585. <td style="width: 50px">MTBF</td>
  586. <td style="width: 105px">
  587. {{ currentMonth["麻黄山"].mtbf }}
  588. <template
  589. v-if="currentMonth['麻黄山'].mttrCompare === 1"
  590. >
  591. <span class="svg-icon svg-icon-yellow">
  592. <svg-icon svgid="svg-arrow-dpwn-1" />
  593. </span>
  594. </template>
  595. <template
  596. v-if="currentMonth['麻黄山'].mtbfCompare === 2"
  597. >
  598. <span class="svg-icon svg-icon-green">
  599. <svg-icon svgid="svg-arrow-up-1" />
  600. </span>
  601. </template>
  602. </td>
  603. <td style="width: 105px">
  604. {{ currentMonth["麻黄山"].tqmtbf }}
  605. </td>
  606. <td style="width: 105px">
  607. {{ currentMonth["牛首山"].mtbf }}
  608. <template
  609. v-if="currentMonth['牛首山'].mtbfCompare === 1"
  610. >
  611. <span class="svg-icon svg-icon-yellow">
  612. <svg-icon svgid="svg-arrow-dpwn-1" />
  613. </span>
  614. </template>
  615. <template
  616. v-if="currentMonth['牛首山'].mtbfCompare === 2"
  617. >
  618. <span class="svg-icon svg-icon-green">
  619. <svg-icon svgid="svg-arrow-up-1" />
  620. </span>
  621. </template>
  622. </td>
  623. <td style="width: 105px">
  624. {{ currentMonth["牛首山"].tqmtbf }}
  625. </td>
  626. <td style="width: 105px">
  627. {{ currentMonth["青山"].mtbf }}
  628. <template v-if="currentMonth['青山'].mtbfCompare === 1">
  629. <span class="svg-icon svg-icon-yellow">
  630. <svg-icon svgid="svg-arrow-dpwn-1" />
  631. </span>
  632. </template>
  633. <template v-if="currentMonth['青山'].mtbfCompare === 2">
  634. <span class="svg-icon svg-icon-green">
  635. <svg-icon svgid="svg-arrow-up-1" />
  636. </span>
  637. </template>
  638. </td>
  639. <td style="width: 105px">
  640. {{ currentMonth["青山"].tqmtbf }}
  641. </td>
  642. <td style="width: 105px">
  643. {{ currentMonth["石板泉"].mtbf }}
  644. <template
  645. v-if="currentMonth['石板泉'].mtbfCompare === 1"
  646. >
  647. <span class="svg-icon svg-icon-yellow">
  648. <svg-icon svgid="svg-arrow-dpwn-1" />
  649. </span>
  650. </template>
  651. <template
  652. v-if="currentMonth['石板泉'].mtbfCompare === 2"
  653. >
  654. <span class="svg-icon svg-icon-green">
  655. <svg-icon svgid="svg-arrow-up-1" />
  656. </span>
  657. </template>
  658. </td>
  659. <td style="width: 105px">
  660. {{ currentMonth["石板泉"].tqmtbf }}
  661. </td>
  662. <td style="width: 105px">
  663. {{ currentMonth["香山"].mtbf }}
  664. <template v-if="currentMonth['香山'].mtbfCompare === 1">
  665. <span class="svg-icon svg-icon-yellow">
  666. <svg-icon svgid="svg-arrow-dpwn-1" />
  667. </span>
  668. </template>
  669. <template v-if="currentMonth['香山'].mtbfCompare === 2">
  670. <span class="svg-icon svg-icon-green">
  671. <svg-icon svgid="svg-arrow-up-1" />
  672. </span>
  673. </template>
  674. </td>
  675. <td style="width: 105px">
  676. {{ currentMonth["香山"].tqmtbf }}
  677. </td>
  678. </tr>
  679. <tr>
  680. <td style="width: 50px">MTTR</td>
  681. <td style="width: 105px">
  682. {{ currentMonth["麻黄山"].mttr }}
  683. <template
  684. v-if="currentMonth['麻黄山'].mttrCompare === 1"
  685. >
  686. <span class="svg-icon svg-icon-yellow">
  687. <svg-icon svgid="svg-arrow-dpwn-1" />
  688. </span>
  689. </template>
  690. <template
  691. v-if="currentMonth['麻黄山'].mttrCompare === 2"
  692. >
  693. <span class="svg-icon svg-icon-green">
  694. <svg-icon svgid="svg-arrow-up-1" />
  695. </span>
  696. </template>
  697. </td>
  698. <td style="width: 105px">
  699. {{ currentMonth["麻黄山"].tqmttr }}
  700. </td>
  701. <td style="width: 105px">
  702. {{ currentMonth["牛首山"].mttr }}
  703. <template
  704. v-if="currentMonth['牛首山'].mttrCompare === 1"
  705. >
  706. <span class="svg-icon svg-icon-yellow">
  707. <svg-icon svgid="svg-arrow-dpwn-1" />
  708. </span>
  709. </template>
  710. <template
  711. v-if="currentMonth['牛首山'].mttrCompare === 2"
  712. >
  713. <span class="svg-icon svg-icon-green">
  714. <svg-icon svgid="svg-arrow-up-1" />
  715. </span>
  716. </template>
  717. </td>
  718. <td style="width: 105px">
  719. {{ currentMonth["牛首山"].tqmttr }}
  720. </td>
  721. <td style="width: 105px">
  722. {{ currentMonth["青山"].mttr }}
  723. <template v-if="currentMonth['青山'].mttrCompare === 1">
  724. <span class="svg-icon svg-icon-yellow">
  725. <svg-icon svgid="svg-arrow-dpwn-1" />
  726. </span>
  727. </template>
  728. <template v-if="currentMonth['青山'].mttrCompare === 2">
  729. <span class="svg-icon svg-icon-green">
  730. <svg-icon svgid="svg-arrow-up-1" />
  731. </span>
  732. </template>
  733. </td>
  734. <td style="width: 105px">
  735. {{ currentMonth["青山"].tqmttr }}
  736. </td>
  737. <td style="width: 105px">
  738. {{ currentMonth["石板泉"].mttr }}
  739. <template
  740. v-if="currentMonth['石板泉'].mttrCompare === 1"
  741. >
  742. <span class="svg-icon svg-icon-yellow">
  743. <svg-icon svgid="svg-arrow-dpwn-1" />
  744. </span>
  745. </template>
  746. <template
  747. v-if="currentMonth['石板泉'].mttrCompare === 2"
  748. >
  749. <span class="svg-icon svg-icon-green">
  750. <svg-icon svgid="svg-arrow-up-1" />
  751. </span>
  752. </template>
  753. </td>
  754. <td style="width: 105px">
  755. {{ currentMonth["石板泉"].tqmttr }}
  756. </td>
  757. <td style="width: 105px">
  758. {{ currentMonth["香山"].mttr }}
  759. <template v-if="currentMonth['香山'].mttrCompare === 1">
  760. <span class="svg-icon svg-icon-yellow">
  761. <svg-icon svgid="svg-arrow-dpwn-1" />
  762. </span>
  763. </template>
  764. <template v-if="currentMonth['香山'].mttrCompare === 2">
  765. <span class="svg-icon svg-icon-green">
  766. <svg-icon svgid="svg-arrow-up-1" />
  767. </span>
  768. </template>
  769. </td>
  770. <td style="width: 105px">
  771. {{ currentMonth["香山"].tqmttr }}
  772. </td>
  773. </tr>
  774. <tr>
  775. <td style="width: 50px">复位</td>
  776. <td style="width: 105px">
  777. {{ currentMonth["麻黄山"].fwjsl }}
  778. <template
  779. v-if="currentMonth['麻黄山'].fwjslCompare === 1"
  780. >
  781. <span class="svg-icon svg-icon-yellow">
  782. <svg-icon svgid="svg-arrow-dpwn-1" />
  783. </span>
  784. </template>
  785. <template
  786. v-if="currentMonth['麻黄山'].fwjslCompare === 2"
  787. >
  788. <span class="svg-icon svg-icon-green">
  789. <svg-icon svgid="svg-arrow-up-1" />
  790. </span>
  791. </template>
  792. </td>
  793. <td style="width: 105px">
  794. {{ currentMonth["麻黄山"].tqfwjsl }}
  795. </td>
  796. <td style="width: 105px">
  797. {{ currentMonth["牛首山"].mttr }}
  798. <template
  799. v-if="currentMonth['牛首山'].fwjslCompare === 1"
  800. >
  801. <span class="svg-icon svg-icon-yellow">
  802. <svg-icon svgid="svg-arrow-dpwn-1" />
  803. </span>
  804. </template>
  805. <template
  806. v-if="currentMonth['牛首山'].fwjslCompare === 2"
  807. >
  808. <span class="svg-icon svg-icon-green">
  809. <svg-icon svgid="svg-arrow-up-1" />
  810. </span>
  811. </template>
  812. </td>
  813. <td style="width: 105px">
  814. {{ currentMonth["牛首山"].tqfwjsl }}
  815. </td>
  816. <td style="width: 105px">
  817. {{ currentMonth["青山"].fwjsl }}
  818. <template
  819. v-if="currentMonth['青山'].fwjslCompare === 1"
  820. >
  821. <span class="svg-icon svg-icon-yellow">
  822. <svg-icon svgid="svg-arrow-dpwn-1" />
  823. </span>
  824. </template>
  825. <template
  826. v-if="currentMonth['青山'].fwjslCompare === 2"
  827. >
  828. <span class="svg-icon svg-icon-green">
  829. <svg-icon svgid="svg-arrow-up-1" />
  830. </span>
  831. </template>
  832. </td>
  833. <td style="width: 105px">
  834. {{ currentMonth["青山"].tqfwjsl }}
  835. </td>
  836. <td style="width: 105px">
  837. {{ currentMonth["石板泉"].fwjsl }}
  838. <template
  839. v-if="currentMonth['石板泉'].fwjslCompare === 1"
  840. >
  841. <span class="svg-icon svg-icon-yellow">
  842. <svg-icon svgid="svg-arrow-dpwn-1" />
  843. </span>
  844. </template>
  845. <template
  846. v-if="currentMonth['石板泉'].fwjslCompare === 2"
  847. >
  848. <span class="svg-icon svg-icon-green">
  849. <svg-icon svgid="svg-arrow-up-1" />
  850. </span>
  851. </template>
  852. </td>
  853. <td style="width: 105px">
  854. {{ currentMonth["石板泉"].tqfwjsl }}
  855. </td>
  856. <td style="width: 105px">
  857. {{ currentMonth["香山"].fwjsl }}
  858. <template
  859. v-if="currentMonth['香山'].fwjslCompare === 1"
  860. >
  861. <span class="svg-icon svg-icon-yellow">
  862. <svg-icon svgid="svg-arrow-dpwn-1" />
  863. </span>
  864. </template>
  865. <template
  866. v-if="currentMonth['香山'].fwjslCompare === 2"
  867. >
  868. <span class="svg-icon svg-icon-green">
  869. <svg-icon svgid="svg-arrow-up-1" />
  870. </span>
  871. </template>
  872. </td>
  873. <td style="width: 105px">
  874. {{ currentMonth["香山"].tqfwjsl }}
  875. </td>
  876. </tr>
  877. <tr>
  878. <td style="width: 50px">转换</td>
  879. <td style="width: 105px">
  880. {{ currentMonth["麻黄山"].ztzhl }}
  881. <template
  882. v-if="currentMonth['麻黄山'].ztzhlCompare === 1"
  883. >
  884. <span class="svg-icon svg-icon-yellow">
  885. <svg-icon svgid="svg-arrow-dpwn-1" />
  886. </span>
  887. </template>
  888. <template
  889. v-if="currentMonth['麻黄山'].ztzhlCompare === 2"
  890. >
  891. <span class="svg-icon svg-icon-green">
  892. <svg-icon svgid="svg-arrow-up-1" />
  893. </span>
  894. </template>
  895. </td>
  896. <td style="width: 105px">
  897. {{ currentMonth["麻黄山"].tqztzhl }}
  898. </td>
  899. <td style="width: 105px">
  900. {{ currentMonth["牛首山"].ztzhl }}
  901. <template
  902. v-if="currentMonth['牛首山'].ztzhlCompare === 1"
  903. >
  904. <span class="svg-icon svg-icon-yellow">
  905. <svg-icon svgid="svg-arrow-dpwn-1" />
  906. </span>
  907. </template>
  908. <template
  909. v-if="currentMonth['牛首山'].ztzhlCompare === 2"
  910. >
  911. <span class="svg-icon svg-icon-green">
  912. <svg-icon svgid="svg-arrow-up-1" />
  913. </span>
  914. </template>
  915. </td>
  916. <td style="width: 105px">
  917. {{ currentMonth["牛首山"].tqztzhl }}
  918. </td>
  919. <td style="width: 105px">
  920. {{ currentMonth["青山"].ztzhl }}
  921. <template
  922. v-if="currentMonth['青山'].ztzhlCompare === 1"
  923. >
  924. <span class="svg-icon svg-icon-yellow">
  925. <svg-icon svgid="svg-arrow-dpwn-1" />
  926. </span>
  927. </template>
  928. <template
  929. v-if="currentMonth['青山'].ztzhlCompare === 2"
  930. >
  931. <span class="svg-icon svg-icon-green">
  932. <svg-icon svgid="svg-arrow-up-1" />
  933. </span>
  934. </template>
  935. </td>
  936. <td style="width: 105px">
  937. {{ currentMonth["青山"].tqztzhl }}
  938. </td>
  939. <td style="width: 105px">
  940. {{ currentMonth["石板泉"].ztzhl }}
  941. <template
  942. v-if="currentMonth['石板泉'].ztzhlCompare === 1"
  943. >
  944. <span class="svg-icon svg-icon-yellow">
  945. <svg-icon svgid="svg-arrow-dpwn-1" />
  946. </span>
  947. </template>
  948. <template
  949. v-if="currentMonth['石板泉'].ztzhlCompare === 2"
  950. >
  951. <span class="svg-icon svg-icon-green">
  952. <svg-icon svgid="svg-arrow-up-1" />
  953. </span>
  954. </template>
  955. </td>
  956. <td style="width: 105px">
  957. {{ currentMonth["石板泉"].tqztzhl }}
  958. </td>
  959. <td style="width: 105px">
  960. {{ currentMonth["香山"].ztzhl }}
  961. <template
  962. v-if="currentMonth['香山'].ztzhlCompare === 1"
  963. >
  964. <span class="svg-icon svg-icon-yellow">
  965. <svg-icon svgid="svg-arrow-dpwn-1" />
  966. </span>
  967. </template>
  968. <template
  969. v-if="currentMonth['香山'].ztzhlCompare === 2"
  970. >
  971. <span class="svg-icon svg-icon-green">
  972. <svg-icon svgid="svg-arrow-up-1" />
  973. </span>
  974. </template>
  975. </td>
  976. <td style="width: 105px">
  977. {{ currentMonth["香山"].tqztzhl }}
  978. </td>
  979. </tr>
  980. <tr>
  981. <td style="width: 50px">消缺</td>
  982. <td style="width: 105px">
  983. {{ currentMonth["麻黄山"].xqjsl }}
  984. <template
  985. v-if="currentMonth['麻黄山'].xqjslCompare === 1"
  986. >
  987. <span class="svg-icon svg-icon-yellow">
  988. <svg-icon svgid="svg-arrow-dpwn-1" />
  989. </span>
  990. </template>
  991. <template
  992. v-if="currentMonth['麻黄山'].xqjslCompare === 2"
  993. >
  994. <span class="svg-icon svg-icon-green">
  995. <svg-icon svgid="svg-arrow-up-1" />
  996. </span>
  997. </template>
  998. </td>
  999. <td style="width: 105px">
  1000. {{ currentMonth["麻黄山"].tqxqjsl }}
  1001. </td>
  1002. <td style="width: 105px">
  1003. {{ currentMonth["牛首山"].xqjsl }}
  1004. <template
  1005. v-if="currentMonth['牛首山'].xqjslCompare === 1"
  1006. >
  1007. <span class="svg-icon svg-icon-yellow">
  1008. <svg-icon svgid="svg-arrow-dpwn-1" />
  1009. </span>
  1010. </template>
  1011. <template
  1012. v-if="currentMonth['牛首山'].xqjslCompare === 2"
  1013. >
  1014. <span class="svg-icon svg-icon-green">
  1015. <svg-icon svgid="svg-arrow-up-1" />
  1016. </span>
  1017. </template>
  1018. </td>
  1019. <td style="width: 105px">
  1020. {{ currentMonth["牛首山"].tqxqjsl }}
  1021. </td>
  1022. <td style="width: 105px">
  1023. {{ currentMonth["青山"].xqjsl }}
  1024. <template
  1025. v-if="currentMonth['青山'].xqjslCompare === 1"
  1026. >
  1027. <span class="svg-icon svg-icon-yellow">
  1028. <svg-icon svgid="svg-arrow-dpwn-1" />
  1029. </span>
  1030. </template>
  1031. <template
  1032. v-if="currentMonth['青山'].xqjslCompare === 2"
  1033. >
  1034. <span class="svg-icon svg-icon-green">
  1035. <svg-icon svgid="svg-arrow-up-1" />
  1036. </span>
  1037. </template>
  1038. </td>
  1039. <td style="width: 105px">
  1040. {{ currentMonth["青山"].tqxqjsl }}
  1041. </td>
  1042. <td style="width: 105px">
  1043. {{ currentMonth["石板泉"].xqjsl }}
  1044. <template
  1045. v-if="currentMonth['石板泉'].xqjslCompare === 1"
  1046. >
  1047. <span class="svg-icon svg-icon-yellow">
  1048. <svg-icon svgid="svg-arrow-dpwn-1" />
  1049. </span>
  1050. </template>
  1051. <template
  1052. v-if="currentMonth['石板泉'].xqjslCompare === 2"
  1053. >
  1054. <span class="svg-icon svg-icon-green">
  1055. <svg-icon svgid="svg-arrow-up-1" />
  1056. </span>
  1057. </template>
  1058. </td>
  1059. <td style="width: 105px">
  1060. {{ currentMonth["石板泉"].tqxqjsl }}
  1061. </td>
  1062. <td style="width: 105px">
  1063. {{ currentMonth["香山"].xqjsl }}
  1064. <template
  1065. v-if="currentMonth['香山'].xqjslCompare === 1"
  1066. >
  1067. <span class="svg-icon svg-icon-yellow">
  1068. <svg-icon svgid="svg-arrow-dpwn-1" />
  1069. </span>
  1070. </template>
  1071. <template
  1072. v-if="currentMonth['香山'].xqjslCompare === 2"
  1073. >
  1074. <span class="svg-icon svg-icon-green">
  1075. <svg-icon svgid="svg-arrow-up-1" />
  1076. </span>
  1077. </template>
  1078. </td>
  1079. <td style="width: 105px">
  1080. {{ currentMonth["香山"].tqxqjsl }}
  1081. </td>
  1082. </tr>
  1083. </tbody>
  1084. </table>
  1085. </div>
  1086. </el-scrollbar>
  1087. </div>
  1088. </el-col>
  1089. <el-col :span="12">
  1090. <div class="table">
  1091. <table style="width: 100%" border="0" cellspacing="0">
  1092. <thead>
  1093. <tr>
  1094. <th rowspan="2" class="type1" style="width: 50px"></th>
  1095. <th colspan="2" class="type1" style="width: 205px">麻黄山</th>
  1096. <th colspan="2" class="type1" style="width: 205px">牛首山</th>
  1097. <th colspan="2" class="type1" style="width: 205px">青山</th>
  1098. <th colspan="2" class="type1" style="width: 205px">石板泉</th>
  1099. <th colspan="2" class="type1" style="width: 205px">香山</th>
  1100. </tr>
  1101. <tr>
  1102. <th style="width: 105px">当年</th>
  1103. <th style="width: 105px">同期</th>
  1104. <th style="width: 105px">当年</th>
  1105. <th style="width: 105px">同期</th>
  1106. <th style="width: 105px">当年</th>
  1107. <th style="width: 105px">同期</th>
  1108. <th style="width: 105px">当年</th>
  1109. <th style="width: 105px">同期</th>
  1110. <th style="width: 105px">当年</th>
  1111. <th style="width: 105px">同期</th>
  1112. </tr>
  1113. </thead>
  1114. </table>
  1115. <el-scrollbar>
  1116. <div style="">
  1117. <table
  1118. style="width: 100%; text-align: center"
  1119. border="0"
  1120. cellspacing="0"
  1121. >
  1122. <tbody>
  1123. <tr>
  1124. <td style="width: 50px">MTBF</td>
  1125. <td style="width: 105px">
  1126. {{ currentYear["麻黄山"].mtbf }}
  1127. <template
  1128. v-if="currentYear['麻黄山'].mttrCompare === 1"
  1129. >
  1130. <span class="svg-icon svg-icon-yellow">
  1131. <svg-icon svgid="svg-arrow-dpwn-1" />
  1132. </span>
  1133. </template>
  1134. <template
  1135. v-if="currentYear['麻黄山'].mtbfCompare === 2"
  1136. >
  1137. <span class="svg-icon svg-icon-green">
  1138. <svg-icon svgid="svg-arrow-up-1" />
  1139. </span>
  1140. </template>
  1141. </td>
  1142. <td style="width: 105px">
  1143. {{ currentYear["麻黄山"].tqmtbf }}
  1144. </td>
  1145. <td style="width: 105px">
  1146. {{ currentYear["牛首山"].mtbf }}
  1147. <template
  1148. v-if="currentYear['牛首山'].mtbfCompare === 1"
  1149. >
  1150. <span class="svg-icon svg-icon-yellow">
  1151. <svg-icon svgid="svg-arrow-dpwn-1" />
  1152. </span>
  1153. </template>
  1154. <template
  1155. v-if="currentYear['牛首山'].mtbfCompare === 2"
  1156. >
  1157. <span class="svg-icon svg-icon-green">
  1158. <svg-icon svgid="svg-arrow-up-1" />
  1159. </span>
  1160. </template>
  1161. </td>
  1162. <td style="width: 105px">
  1163. {{ currentYear["牛首山"].tqmtbf }}
  1164. </td>
  1165. <td style="width: 105px">
  1166. {{ currentYear["青山"].mtbf }}
  1167. <template v-if="currentYear['青山'].mtbfCompare === 1">
  1168. <span class="svg-icon svg-icon-yellow">
  1169. <svg-icon svgid="svg-arrow-dpwn-1" />
  1170. </span>
  1171. </template>
  1172. <template v-if="currentYear['青山'].mtbfCompare === 2">
  1173. <span class="svg-icon svg-icon-green">
  1174. <svg-icon svgid="svg-arrow-up-1" />
  1175. </span>
  1176. </template>
  1177. </td>
  1178. <td style="width: 105px">
  1179. {{ currentYear["青山"].tqmtbf }}
  1180. </td>
  1181. <td style="width: 105px">
  1182. {{ currentYear["石板泉"].mtbf }}
  1183. <template
  1184. v-if="currentYear['石板泉'].mtbfCompare === 1"
  1185. >
  1186. <span class="svg-icon svg-icon-yellow">
  1187. <svg-icon svgid="svg-arrow-dpwn-1" />
  1188. </span>
  1189. </template>
  1190. <template
  1191. v-if="currentYear['石板泉'].mtbfCompare === 2"
  1192. >
  1193. <span class="svg-icon svg-icon-green">
  1194. <svg-icon svgid="svg-arrow-up-1" />
  1195. </span>
  1196. </template>
  1197. </td>
  1198. <td style="width: 105px">
  1199. {{ currentYear["石板泉"].tqmtbf }}
  1200. </td>
  1201. <td style="width: 105px">
  1202. {{ currentYear["香山"].mtbf }}
  1203. <template v-if="currentYear['香山'].mtbfCompare === 1">
  1204. <span class="svg-icon svg-icon-yellow">
  1205. <svg-icon svgid="svg-arrow-dpwn-1" />
  1206. </span>
  1207. </template>
  1208. <template v-if="currentYear['香山'].mtbfCompare === 2">
  1209. <span class="svg-icon svg-icon-green">
  1210. <svg-icon svgid="svg-arrow-up-1" />
  1211. </span>
  1212. </template>
  1213. </td>
  1214. <td style="width: 105px">
  1215. {{ currentYear["香山"].tqmtbf }}
  1216. </td>
  1217. </tr>
  1218. <tr>
  1219. <td style="width: 50px">MTTR</td>
  1220. <td style="width: 105px">
  1221. {{ currentYear["麻黄山"].mttr }}
  1222. <template
  1223. v-if="currentYear['麻黄山'].mttrCompare === 1"
  1224. >
  1225. <span class="svg-icon svg-icon-yellow">
  1226. <svg-icon svgid="svg-arrow-dpwn-1" />
  1227. </span>
  1228. </template>
  1229. <template
  1230. v-if="currentYear['麻黄山'].mttrCompare === 2"
  1231. >
  1232. <span class="svg-icon svg-icon-green">
  1233. <svg-icon svgid="svg-arrow-up-1" />
  1234. </span>
  1235. </template>
  1236. </td>
  1237. <td style="width: 105px">
  1238. {{ currentYear["麻黄山"].tqmttr }}
  1239. </td>
  1240. <td style="width: 105px">
  1241. {{ currentYear["牛首山"].mttr }}
  1242. <template
  1243. v-if="currentYear['牛首山'].mttrCompare === 1"
  1244. >
  1245. <span class="svg-icon svg-icon-yellow">
  1246. <svg-icon svgid="svg-arrow-dpwn-1" />
  1247. </span>
  1248. </template>
  1249. <template
  1250. v-if="currentYear['牛首山'].mttrCompare === 2"
  1251. >
  1252. <span class="svg-icon svg-icon-green">
  1253. <svg-icon svgid="svg-arrow-up-1" />
  1254. </span>
  1255. </template>
  1256. </td>
  1257. <td style="width: 105px">
  1258. {{ currentYear["牛首山"].tqmttr }}
  1259. </td>
  1260. <td style="width: 105px">
  1261. {{ currentYear["青山"].mttr }}
  1262. <template v-if="currentYear['青山'].mttrCompare === 1">
  1263. <span class="svg-icon svg-icon-yellow">
  1264. <svg-icon svgid="svg-arrow-dpwn-1" />
  1265. </span>
  1266. </template>
  1267. <template v-if="currentYear['青山'].mttrCompare === 2">
  1268. <span class="svg-icon svg-icon-green">
  1269. <svg-icon svgid="svg-arrow-up-1" />
  1270. </span>
  1271. </template>
  1272. </td>
  1273. <td style="width: 105px">
  1274. {{ currentYear["青山"].tqmttr }}
  1275. </td>
  1276. <td style="width: 105px">
  1277. {{ currentYear["石板泉"].mttr }}
  1278. <template
  1279. v-if="currentYear['石板泉'].mttrCompare === 1"
  1280. >
  1281. <span class="svg-icon svg-icon-yellow">
  1282. <svg-icon svgid="svg-arrow-dpwn-1" />
  1283. </span>
  1284. </template>
  1285. <template
  1286. v-if="currentYear['石板泉'].mttrCompare === 2"
  1287. >
  1288. <span class="svg-icon svg-icon-green">
  1289. <svg-icon svgid="svg-arrow-up-1" />
  1290. </span>
  1291. </template>
  1292. </td>
  1293. <td style="width: 105px">
  1294. {{ currentYear["石板泉"].tqmttr }}
  1295. </td>
  1296. <td style="width: 105px">
  1297. {{ currentYear["香山"].mttr }}
  1298. <template v-if="currentYear['香山'].mttrCompare === 1">
  1299. <span class="svg-icon svg-icon-yellow">
  1300. <svg-icon svgid="svg-arrow-dpwn-1" />
  1301. </span>
  1302. </template>
  1303. <template v-if="currentYear['香山'].mttrCompare === 2">
  1304. <span class="svg-icon svg-icon-green">
  1305. <svg-icon svgid="svg-arrow-up-1" />
  1306. </span>
  1307. </template>
  1308. </td>
  1309. <td style="width: 105px">
  1310. {{ currentYear["香山"].tqmttr }}
  1311. </td>
  1312. </tr>
  1313. <tr>
  1314. <td style="width: 50px">复位</td>
  1315. <td style="width: 105px">
  1316. {{ currentYear["麻黄山"].fwjsl }}
  1317. <template
  1318. v-if="currentYear['麻黄山'].fwjslCompare === 1"
  1319. >
  1320. <span class="svg-icon svg-icon-yellow">
  1321. <svg-icon svgid="svg-arrow-dpwn-1" />
  1322. </span>
  1323. </template>
  1324. <template
  1325. v-if="currentYear['麻黄山'].fwjslCompare === 2"
  1326. >
  1327. <span class="svg-icon svg-icon-green">
  1328. <svg-icon svgid="svg-arrow-up-1" />
  1329. </span>
  1330. </template>
  1331. </td>
  1332. <td style="width: 105px">
  1333. {{ currentYear["麻黄山"].tqfwjsl }}
  1334. </td>
  1335. <td style="width: 105px">
  1336. {{ currentYear["牛首山"].mttr }}
  1337. <template
  1338. v-if="currentYear['牛首山'].fwjslCompare === 1"
  1339. >
  1340. <span class="svg-icon svg-icon-yellow">
  1341. <svg-icon svgid="svg-arrow-dpwn-1" />
  1342. </span>
  1343. </template>
  1344. <template
  1345. v-if="currentYear['牛首山'].fwjslCompare === 2"
  1346. >
  1347. <span class="svg-icon svg-icon-green">
  1348. <svg-icon svgid="svg-arrow-up-1" />
  1349. </span>
  1350. </template>
  1351. </td>
  1352. <td style="width: 105px">
  1353. {{ currentYear["牛首山"].tqfwjsl }}
  1354. </td>
  1355. <td style="width: 105px">
  1356. {{ currentYear["青山"].fwjsl }}
  1357. <template v-if="currentYear['青山'].fwjslCompare === 1">
  1358. <span class="svg-icon svg-icon-yellow">
  1359. <svg-icon svgid="svg-arrow-dpwn-1" />
  1360. </span>
  1361. </template>
  1362. <template v-if="currentYear['青山'].fwjslCompare === 2">
  1363. <span class="svg-icon svg-icon-green">
  1364. <svg-icon svgid="svg-arrow-up-1" />
  1365. </span>
  1366. </template>
  1367. </td>
  1368. <td style="width: 105px">
  1369. {{ currentYear["青山"].tqfwjsl }}
  1370. </td>
  1371. <td style="width: 105px">
  1372. {{ currentYear["石板泉"].fwjsl }}
  1373. <template
  1374. v-if="currentYear['石板泉'].fwjslCompare === 1"
  1375. >
  1376. <span class="svg-icon svg-icon-yellow">
  1377. <svg-icon svgid="svg-arrow-dpwn-1" />
  1378. </span>
  1379. </template>
  1380. <template
  1381. v-if="currentYear['石板泉'].fwjslCompare === 2"
  1382. >
  1383. <span class="svg-icon svg-icon-green">
  1384. <svg-icon svgid="svg-arrow-up-1" />
  1385. </span>
  1386. </template>
  1387. </td>
  1388. <td style="width: 105px">
  1389. {{ currentYear["石板泉"].tqfwjsl }}
  1390. </td>
  1391. <td style="width: 105px">
  1392. {{ currentYear["香山"].fwjsl }}
  1393. <template v-if="currentYear['香山'].fwjslCompare === 1">
  1394. <span class="svg-icon svg-icon-yellow">
  1395. <svg-icon svgid="svg-arrow-dpwn-1" />
  1396. </span>
  1397. </template>
  1398. <template v-if="currentYear['香山'].fwjslCompare === 2">
  1399. <span class="svg-icon svg-icon-green">
  1400. <svg-icon svgid="svg-arrow-up-1" />
  1401. </span>
  1402. </template>
  1403. </td>
  1404. <td style="width: 105px">
  1405. {{ currentYear["香山"].tqfwjsl }}
  1406. </td>
  1407. </tr>
  1408. <tr>
  1409. <td style="width: 50px">转换</td>
  1410. <td style="width: 105px">
  1411. {{ currentYear["麻黄山"].ztzhl }}
  1412. <template
  1413. v-if="currentYear['麻黄山'].ztzhlCompare === 1"
  1414. >
  1415. <span class="svg-icon svg-icon-yellow">
  1416. <svg-icon svgid="svg-arrow-dpwn-1" />
  1417. </span>
  1418. </template>
  1419. <template
  1420. v-if="currentYear['麻黄山'].ztzhlCompare === 2"
  1421. >
  1422. <span class="svg-icon svg-icon-green">
  1423. <svg-icon svgid="svg-arrow-up-1" />
  1424. </span>
  1425. </template>
  1426. </td>
  1427. <td style="width: 105px">
  1428. {{ currentYear["麻黄山"].tqztzhl }}
  1429. </td>
  1430. <td style="width: 105px">
  1431. {{ currentYear["牛首山"].ztzhl }}
  1432. <template
  1433. v-if="currentYear['牛首山'].ztzhlCompare === 1"
  1434. >
  1435. <span class="svg-icon svg-icon-yellow">
  1436. <svg-icon svgid="svg-arrow-dpwn-1" />
  1437. </span>
  1438. </template>
  1439. <template
  1440. v-if="currentYear['牛首山'].ztzhlCompare === 2"
  1441. >
  1442. <span class="svg-icon svg-icon-green">
  1443. <svg-icon svgid="svg-arrow-up-1" />
  1444. </span>
  1445. </template>
  1446. </td>
  1447. <td style="width: 105px">
  1448. {{ currentYear["牛首山"].tqztzhl }}
  1449. </td>
  1450. <td style="width: 105px">
  1451. {{ currentYear["青山"].ztzhl }}
  1452. <template v-if="currentYear['青山'].ztzhlCompare === 1">
  1453. <span class="svg-icon svg-icon-yellow">
  1454. <svg-icon svgid="svg-arrow-dpwn-1" />
  1455. </span>
  1456. </template>
  1457. <template v-if="currentYear['青山'].ztzhlCompare === 2">
  1458. <span class="svg-icon svg-icon-green">
  1459. <svg-icon svgid="svg-arrow-up-1" />
  1460. </span>
  1461. </template>
  1462. </td>
  1463. <td style="width: 105px">
  1464. {{ currentYear["青山"].tqztzhl }}
  1465. </td>
  1466. <td style="width: 105px">
  1467. {{ currentYear["石板泉"].ztzhl }}
  1468. <template
  1469. v-if="currentYear['石板泉'].ztzhlCompare === 1"
  1470. >
  1471. <span class="svg-icon svg-icon-yellow">
  1472. <svg-icon svgid="svg-arrow-dpwn-1" />
  1473. </span>
  1474. </template>
  1475. <template
  1476. v-if="currentYear['石板泉'].ztzhlCompare === 2"
  1477. >
  1478. <span class="svg-icon svg-icon-green">
  1479. <svg-icon svgid="svg-arrow-up-1" />
  1480. </span>
  1481. </template>
  1482. </td>
  1483. <td style="width: 105px">
  1484. {{ currentYear["石板泉"].tqztzhl }}
  1485. </td>
  1486. <td style="width: 105px">
  1487. {{ currentYear["香山"].ztzhl }}
  1488. <template v-if="currentYear['香山'].ztzhlCompare === 1">
  1489. <span class="svg-icon svg-icon-yellow">
  1490. <svg-icon svgid="svg-arrow-dpwn-1" />
  1491. </span>
  1492. </template>
  1493. <template v-if="currentYear['香山'].ztzhlCompare === 2">
  1494. <span class="svg-icon svg-icon-green">
  1495. <svg-icon svgid="svg-arrow-up-1" />
  1496. </span>
  1497. </template>
  1498. </td>
  1499. <td style="width: 105px">
  1500. {{ currentYear["香山"].tqztzhl }}
  1501. </td>
  1502. </tr>
  1503. <tr>
  1504. <td style="width: 50px">消缺</td>
  1505. <td style="width: 105px">
  1506. {{ currentYear["麻黄山"].xqjsl }}
  1507. <template
  1508. v-if="currentYear['麻黄山'].xqjslCompare === 1"
  1509. >
  1510. <span class="svg-icon svg-icon-yellow">
  1511. <svg-icon svgid="svg-arrow-dpwn-1" />
  1512. </span>
  1513. </template>
  1514. <template
  1515. v-if="currentYear['麻黄山'].xqjslCompare === 2"
  1516. >
  1517. <span class="svg-icon svg-icon-green">
  1518. <svg-icon svgid="svg-arrow-up-1" />
  1519. </span>
  1520. </template>
  1521. </td>
  1522. <td style="width: 105px">
  1523. {{ currentYear["麻黄山"].tqxqjsl }}
  1524. </td>
  1525. <td style="width: 105px">
  1526. {{ currentYear["牛首山"].xqjsl }}
  1527. <template
  1528. v-if="currentYear['牛首山'].xqjslCompare === 1"
  1529. >
  1530. <span class="svg-icon svg-icon-yellow">
  1531. <svg-icon svgid="svg-arrow-dpwn-1" />
  1532. </span>
  1533. </template>
  1534. <template
  1535. v-if="currentYear['牛首山'].xqjslCompare === 2"
  1536. >
  1537. <span class="svg-icon svg-icon-green">
  1538. <svg-icon svgid="svg-arrow-up-1" />
  1539. </span>
  1540. </template>
  1541. </td>
  1542. <td style="width: 105px">
  1543. {{ currentYear["牛首山"].tqxqjsl }}
  1544. </td>
  1545. <td style="width: 105px">
  1546. {{ currentYear["青山"].xqjsl }}
  1547. <template v-if="currentYear['青山'].xqjslCompare === 1">
  1548. <span class="svg-icon svg-icon-yellow">
  1549. <svg-icon svgid="svg-arrow-dpwn-1" />
  1550. </span>
  1551. </template>
  1552. <template v-if="currentYear['青山'].xqjslCompare === 2">
  1553. <span class="svg-icon svg-icon-green">
  1554. <svg-icon svgid="svg-arrow-up-1" />
  1555. </span>
  1556. </template>
  1557. </td>
  1558. <td style="width: 105px">
  1559. {{ currentYear["青山"].tqxqjsl }}
  1560. </td>
  1561. <td style="width: 105px">
  1562. {{ currentYear["石板泉"].xqjsl }}
  1563. <template
  1564. v-if="currentYear['石板泉'].xqjslCompare === 1"
  1565. >
  1566. <span class="svg-icon svg-icon-yellow">
  1567. <svg-icon svgid="svg-arrow-dpwn-1" />
  1568. </span>
  1569. </template>
  1570. <template
  1571. v-if="currentYear['石板泉'].xqjslCompare === 2"
  1572. >
  1573. <span class="svg-icon svg-icon-green">
  1574. <svg-icon svgid="svg-arrow-up-1" />
  1575. </span>
  1576. </template>
  1577. </td>
  1578. <td style="width: 105px">
  1579. {{ currentYear["石板泉"].tqxqjsl }}
  1580. </td>
  1581. <td style="width: 105px">
  1582. {{ currentYear["香山"].xqjsl }}
  1583. <template v-if="currentYear['香山'].xqjslCompare === 1">
  1584. <span class="svg-icon svg-icon-yellow">
  1585. <svg-icon svgid="svg-arrow-dpwn-1" />
  1586. </span>
  1587. </template>
  1588. <template v-if="currentYear['香山'].xqjslCompare === 2">
  1589. <span class="svg-icon svg-icon-green">
  1590. <svg-icon svgid="svg-arrow-up-1" />
  1591. </span>
  1592. </template>
  1593. </td>
  1594. <td style="width: 105px">
  1595. {{ currentYear["香山"].tqxqjsl }}
  1596. </td>
  1597. </tr>
  1598. </tbody>
  1599. </table>
  1600. </div>
  1601. </el-scrollbar>
  1602. </div></el-col
  1603. >
  1604. </el-row>
  1605. <el-row :gutter="20" class="pie-chart-panel">
  1606. <el-col :span="6">
  1607. <panel title="当月理论平衡分析">
  1608. <dual-pie-chart
  1609. height="27.296vh"
  1610. :innerData="innerDataCurentsChart"
  1611. :outerData="innerDataCurentsChart"
  1612. />
  1613. </panel>
  1614. </el-col>
  1615. <el-col :span="6">
  1616. <panel title="同期理论平衡分析">
  1617. <dual-pie-chart
  1618. height="27.296vh"
  1619. :innerData="innerDataSameChart"
  1620. :outerData="innerDataSameChart"
  1621. />
  1622. </panel>
  1623. </el-col>
  1624. <el-col :span="6">
  1625. <panel title="当年理论平衡分析">
  1626. <dual-pie-chart
  1627. height="27.296vh"
  1628. :innerData="innerDataCurentsYearChart"
  1629. :outerData="innerDataCurentsYearChart"
  1630. />
  1631. </panel>
  1632. </el-col>
  1633. <el-col :span="6">
  1634. <panel title="年同期理论平衡分析">
  1635. <dual-pie-chart
  1636. height="27.296vh"
  1637. :innerData="innerDataSameYearChart"
  1638. :outerData="innerDataSameYearChart"
  1639. />
  1640. </panel>
  1641. </el-col>
  1642. </el-row>
  1643. </div>
  1644. </div>
  1645. </template>
  1646. <script>
  1647. import VertivalBarLineChart from "../../components/chart/combination/vertival-bar-line-chart.vue";
  1648. import Panel from "../../components/coms/panel/panel.vue";
  1649. import DualPieChart from "../../components/chart/pie/dual-pie-chart.vue";
  1650. import SvgIcon from "../../components/coms/icon/svg-icon.vue";
  1651. import Get_PDF from "@tools/htmlToPdf";
  1652. import api from "@api/economic/index.js";
  1653. export default {
  1654. setup() {},
  1655. components: {
  1656. Panel,
  1657. DualPieChart,
  1658. SvgIcon,
  1659. VertivalBarLineChart,
  1660. },
  1661. data() {
  1662. return {
  1663. pickerOptions: {},
  1664. bardata: { area: [], legend: [], data: [] }, // 损失电量分析echart数值
  1665. lineData: [],
  1666. timmer: null,
  1667. monthValue: this.getmonthValue(),
  1668. nowCurrents: {},
  1669. innerDataCurentsChart: [],
  1670. innerDataSameChart: [],
  1671. innerDataCurentsYearChart: [],
  1672. innerDataSameYearChart: [],
  1673. currentMonth: {
  1674. 麻黄山: {},
  1675. 牛首山: {},
  1676. 石板泉: {},
  1677. 香山: {},
  1678. 青山: {},
  1679. },
  1680. currentYear: {
  1681. 麻黄山: {},
  1682. 牛首山: {},
  1683. 石板泉: {},
  1684. 香山: {},
  1685. 青山: {},
  1686. },
  1687. compares: {},
  1688. sameList: {},
  1689. };
  1690. },
  1691. created() {
  1692. let _this = this;
  1693. _this.$nextTick(() => {
  1694. _this.getMonthList(false);
  1695. _this.getSecordList(false);
  1696. // _this.timmer = setInterval(() => {
  1697. // _this.getMonthList(false);
  1698. // _this.getSecordList(false);
  1699. // }, _this.$store.state.websocketTimeSec);
  1700. });
  1701. },
  1702. unmounted() {
  1703. clearInterval(this.timmer);
  1704. this.timmer = null;
  1705. },
  1706. mounted() {},
  1707. methods: {
  1708. exportPDF(name) {
  1709. this.BASE.showMsg({
  1710. type: "success",
  1711. msg: "正在导出...请稍后...",
  1712. });
  1713. Get_PDF.downloadPDF(document.querySelector(".pdfDom"), "综合分析导出");
  1714. },
  1715. getmonthValue() {
  1716. let data = new Date();
  1717. let year = data.getFullYear();
  1718. let month =
  1719. data.getMonth() > 9 ? data.getMonth() : "0" + (data.getMonth() + 1);
  1720. let toMonth = year + "-" + month;
  1721. return toMonth;
  1722. },
  1723. monthChange(data) {
  1724. let year = data.getFullYear();
  1725. let month =
  1726. data.getMonth() > 9 ? data.getMonth() : "0" + (data.getMonth() + 1);
  1727. let toMonth = year + "-" + month;
  1728. return toMonth;
  1729. },
  1730. onClickSearch() {
  1731. this.getMonthList(false);
  1732. this.getSecordList(false);
  1733. },
  1734. isNumber(val) {
  1735. return typeof val === "number" && !isNaN(val);
  1736. },
  1737. getSecordList(showLoading) {
  1738. let _this = this;
  1739. let months = "";
  1740. if (typeof this.monthValue === "string") {
  1741. months = this.monthValue;
  1742. } else {
  1743. months = this.monthChange(this.monthValue);
  1744. }
  1745. api.specificMaincenterlist({
  1746. month: months,
  1747. }).then((res) => {
  1748. let currentMonth = {};
  1749. let currentYear = {};
  1750. res.data["当月"].map((item) => {
  1751. for (let key in item) {
  1752. if (this.isNumber(item[key]) && key.indexOf("Compare") === -1) {
  1753. item[key] = item[key].toFixed(2);
  1754. }
  1755. }
  1756. if (item.wpid === "麻黄山风电场") {
  1757. currentMonth["麻黄山"] = item;
  1758. } else if (item.wpid === "牛首山风电场") {
  1759. currentMonth["牛首山"] = item;
  1760. } else if (item.wpid === "青山风电场") {
  1761. currentMonth["青山"] = item;
  1762. } else if (item.wpid === "石板泉风电场") {
  1763. currentMonth["石板泉"] = item;
  1764. } else if (item.wpid === "香山风电场") {
  1765. currentMonth["香山"] = item;
  1766. }
  1767. });
  1768. res.data["当年"].map((item) => {
  1769. for (let key in item) {
  1770. if (this.isNumber(item[key]) && key.indexOf("Compare") === -1) {
  1771. item[key] = item[key].toFixed(2);
  1772. }
  1773. }
  1774. if (item.wpid === "麻黄山风电场") {
  1775. currentYear["麻黄山"] = item;
  1776. } else if (item.wpid === "牛首山风电场") {
  1777. currentYear["牛首山"] = item;
  1778. } else if (item.wpid === "青山风电场") {
  1779. currentYear["青山"] = item;
  1780. } else if (item.wpid === "石板泉风电场") {
  1781. currentYear["石板泉"] = item;
  1782. } else if (item.wpid === "香山风电场") {
  1783. currentYear["香山"] = item;
  1784. }
  1785. });
  1786. this.currentMonth = currentMonth;
  1787. this.currentYear = currentYear;
  1788. });
  1789. // _this.API.requestData({
  1790. // showLoading,
  1791. // method: "GET",
  1792. // baseURL: "http://10.155.32.4:8034",
  1793. // subUrl: "/specific/maincenterlist",
  1794. // data: {
  1795. // month: months,
  1796. // },
  1797. // success(res) {
  1798. // let currentMonth = {};
  1799. // let currentYear = {};
  1800. // res.data["当月"].map((item) => {
  1801. // for (let key in item) {
  1802. // if (_this.isNumber(item[key]) && key.indexOf("Compare") === -1) {
  1803. // item[key] = item[key].toFixed(2);
  1804. // }
  1805. // }
  1806. // if (item.wpid === "麻黄山风电场") {
  1807. // currentMonth["麻黄山"] = item;
  1808. // } else if (item.wpid === "牛首山风电场") {
  1809. // currentMonth["牛首山"] = item;
  1810. // } else if (item.wpid === "青山风电场") {
  1811. // currentMonth["青山"] = item;
  1812. // } else if (item.wpid === "石板泉风电场") {
  1813. // currentMonth["石板泉"] = item;
  1814. // } else if (item.wpid === "香山风电场") {
  1815. // currentMonth["香山"] = item;
  1816. // }
  1817. // });
  1818. // res.data["当年"].map((item) => {
  1819. // for (let key in item) {
  1820. // if (_this.isNumber(item[key]) && key.indexOf("Compare") === -1) {
  1821. // item[key] = item[key].toFixed(2);
  1822. // }
  1823. // }
  1824. // if (item.wpid === "麻黄山风电场") {
  1825. // currentYear["麻黄山"] = item;
  1826. // } else if (item.wpid === "牛首山风电场") {
  1827. // currentYear["牛首山"] = item;
  1828. // } else if (item.wpid === "青山风电场") {
  1829. // currentYear["青山"] = item;
  1830. // } else if (item.wpid === "石板泉风电场") {
  1831. // currentYear["石板泉"] = item;
  1832. // } else if (item.wpid === "香山风电场") {
  1833. // currentYear["香山"] = item;
  1834. // }
  1835. // });
  1836. // _this.currentMonth = currentMonth;
  1837. // _this.currentYear = currentYear;
  1838. // },
  1839. // });
  1840. },
  1841. getMonthList(showLoading) {
  1842. let _this = this;
  1843. let months = "";
  1844. if (typeof this.monthValue === "string") {
  1845. months = this.monthValue;
  1846. } else {
  1847. months = this.monthChange(this.monthValue);
  1848. }
  1849. api.specificMaintoplist({
  1850. month: months,
  1851. }).then((res) => {
  1852. res.data.map((item) => {
  1853. for (let key in item) {
  1854. if (this.isNumber(item[key]) && item.type !== "比较") {
  1855. item[key] = item[key].toFixed(2);
  1856. }
  1857. }
  1858. if (item.type === "本期") {
  1859. this.nowCurrents = item;
  1860. this.innerDataCurentsChart = [
  1861. {
  1862. value: item.ywhssl,
  1863. name: "维护损失率",
  1864. },
  1865. {
  1866. value: item.ygzssl,
  1867. name: "故障损失率",
  1868. },
  1869. {
  1870. value: item.yxdssl,
  1871. name: "限电损失率",
  1872. },
  1873. {
  1874. value: item.yxnssl,
  1875. name: "性能损失率",
  1876. },
  1877. {
  1878. value: item.yslssl,
  1879. name: "受累损失率",
  1880. },
  1881. {
  1882. value: item.yfnlyl,
  1883. name: "风能利用率",
  1884. },
  1885. ];
  1886. this.innerDataCurentsYearChart = [
  1887. {
  1888. value: item.nwhssl,
  1889. name: "维护损失率",
  1890. },
  1891. {
  1892. value: item.ngzssl,
  1893. name: "故障损失率",
  1894. },
  1895. {
  1896. value: item.nxdssl,
  1897. name: "限电损失率",
  1898. },
  1899. {
  1900. value: item.nxnssl,
  1901. name: "性能损失率",
  1902. },
  1903. {
  1904. value: item.nslssl,
  1905. name: "受累损失率",
  1906. },
  1907. {
  1908. value: item.nfnlyl,
  1909. name: "风能利用率",
  1910. },
  1911. ];
  1912. } else if (item.type === "比较") {
  1913. this.compares = item;
  1914. } else {
  1915. this.sameList = item;
  1916. this.innerDataSameChart = [
  1917. {
  1918. value: item.ywhssl,
  1919. name: "维护损失率",
  1920. },
  1921. {
  1922. value: item.ygzssl,
  1923. name: "故障损失率",
  1924. },
  1925. {
  1926. value: item.yxdssl,
  1927. name: "限电损失率",
  1928. },
  1929. {
  1930. value: item.yxnssl,
  1931. name: "性能损失率",
  1932. },
  1933. {
  1934. value: item.yslssl,
  1935. name: "受累损失率",
  1936. },
  1937. {
  1938. value: item.yfnlyl,
  1939. name: "风能利用率",
  1940. },
  1941. ];
  1942. this.innerDataSameYearChart = [
  1943. {
  1944. value: item.nwhssl,
  1945. name: "维护损失率",
  1946. },
  1947. {
  1948. value: item.ngzssl,
  1949. name: "故障损失率",
  1950. },
  1951. {
  1952. value: item.nxdssl,
  1953. name: "限电损失率",
  1954. },
  1955. {
  1956. value: item.nxnssl,
  1957. name: "性能损失率",
  1958. },
  1959. {
  1960. value: item.nslssl,
  1961. name: "受累损失率",
  1962. },
  1963. {
  1964. value: item.nfnlyl,
  1965. name: "风能利用率",
  1966. },
  1967. ];
  1968. }
  1969. });
  1970. });
  1971. // _this.API.requestData({
  1972. // showLoading,
  1973. // method: "GET",
  1974. // baseURL: "http://10.155.32.4:8034",
  1975. // subUrl: "/specific/maintoplist",
  1976. // data: {
  1977. // month: months,
  1978. // },
  1979. // success(res) {
  1980. // res.data.map((item) => {
  1981. // for (let key in item) {
  1982. // if (_this.isNumber(item[key]) && item.type !== "比较") {
  1983. // item[key] = item[key].toFixed(2);
  1984. // }
  1985. // }
  1986. // if (item.type === "本期") {
  1987. // _this.nowCurrents = item;
  1988. // _this.innerDataCurentsChart = [
  1989. // {
  1990. // value: item.ywhssl,
  1991. // name: "维护损失率",
  1992. // },
  1993. // {
  1994. // value: item.ygzssl,
  1995. // name: "故障损失率",
  1996. // },
  1997. // {
  1998. // value: item.yxdssl,
  1999. // name: "限电损失率",
  2000. // },
  2001. // {
  2002. // value: item.yxnssl,
  2003. // name: "性能损失率",
  2004. // },
  2005. // {
  2006. // value: item.yslssl,
  2007. // name: "受累损失率",
  2008. // },
  2009. // {
  2010. // value: item.yfnlyl,
  2011. // name: "风能利用率",
  2012. // },
  2013. // ];
  2014. // _this.innerDataCurentsYearChart = [
  2015. // {
  2016. // value: item.nwhssl,
  2017. // name: "维护损失率",
  2018. // },
  2019. // {
  2020. // value: item.ngzssl,
  2021. // name: "故障损失率",
  2022. // },
  2023. // {
  2024. // value: item.nxdssl,
  2025. // name: "限电损失率",
  2026. // },
  2027. // {
  2028. // value: item.nxnssl,
  2029. // name: "性能损失率",
  2030. // },
  2031. // {
  2032. // value: item.nslssl,
  2033. // name: "受累损失率",
  2034. // },
  2035. // {
  2036. // value: item.nfnlyl,
  2037. // name: "风能利用率",
  2038. // },
  2039. // ];
  2040. // } else if (item.type === "比较") {
  2041. // _this.compares = item;
  2042. // } else {
  2043. // _this.sameList = item;
  2044. // _this.innerDataSameChart = [
  2045. // {
  2046. // value: item.ywhssl,
  2047. // name: "维护损失率",
  2048. // },
  2049. // {
  2050. // value: item.ygzssl,
  2051. // name: "故障损失率",
  2052. // },
  2053. // {
  2054. // value: item.yxdssl,
  2055. // name: "限电损失率",
  2056. // },
  2057. // {
  2058. // value: item.yxnssl,
  2059. // name: "性能损失率",
  2060. // },
  2061. // {
  2062. // value: item.yslssl,
  2063. // name: "受累损失率",
  2064. // },
  2065. // {
  2066. // value: item.yfnlyl,
  2067. // name: "风能利用率",
  2068. // },
  2069. // ];
  2070. // _this.innerDataSameYearChart = [
  2071. // {
  2072. // value: item.nwhssl,
  2073. // name: "维护损失率",
  2074. // },
  2075. // {
  2076. // value: item.ngzssl,
  2077. // name: "故障损失率",
  2078. // },
  2079. // {
  2080. // value: item.nxdssl,
  2081. // name: "限电损失率",
  2082. // },
  2083. // {
  2084. // value: item.nxnssl,
  2085. // name: "性能损失率",
  2086. // },
  2087. // {
  2088. // value: item.nslssl,
  2089. // name: "受累损失率",
  2090. // },
  2091. // {
  2092. // value: item.nfnlyl,
  2093. // name: "风能利用率",
  2094. // },
  2095. // ];
  2096. // }
  2097. // });
  2098. // },
  2099. // });
  2100. },
  2101. },
  2102. };
  2103. </script>
  2104. <style lang="less">
  2105. .ztfx {
  2106. font-size: 12px;
  2107. .select-btn {
  2108. width: 92px;
  2109. }
  2110. .com-panel {
  2111. border: 1px solid #6067697d;
  2112. }
  2113. .table-complex {
  2114. margin-top: 10px;
  2115. .table {
  2116. border: 1px solid #6067697d;
  2117. tbody {
  2118. tr:nth-child(2n) td {
  2119. background-color: fade(@gray, 20%);
  2120. &.item {
  2121. background-color: transparent;
  2122. }
  2123. }
  2124. }
  2125. th {
  2126. background: fade(@gray, 40);
  2127. font-size: 12px;
  2128. font-weight: 400;
  2129. line-height: 24px;
  2130. color: @gray-l;
  2131. &.type1 {
  2132. border-left: 0;
  2133. border-right: 0;
  2134. }
  2135. }
  2136. td {
  2137. color: @gray-l;
  2138. text-align: center;
  2139. height: 26px;
  2140. line-height: 26px;
  2141. &.item {
  2142. width: 100px;
  2143. }
  2144. }
  2145. svg {
  2146. height: 1.222vh;
  2147. }
  2148. }
  2149. }
  2150. .table-panel {
  2151. margin-top: 10px;
  2152. .panel-header {
  2153. text-align: center;
  2154. }
  2155. .table {
  2156. border: 1px solid #6067697d;
  2157. tbody {
  2158. tr:nth-child(2n) td {
  2159. background-color: fade(@gray, 20%);
  2160. &.item {
  2161. background-color: transparent;
  2162. }
  2163. }
  2164. }
  2165. .td-item {
  2166. width: 6vh;
  2167. }
  2168. th {
  2169. background: fade(@gray, 40);
  2170. font-size: 12px;
  2171. font-weight: 400;
  2172. line-height: 24px;
  2173. color: @gray-l;
  2174. &.type1 {
  2175. border-left: 0;
  2176. border-right: 0;
  2177. height: 4vh;
  2178. }
  2179. }
  2180. td {
  2181. color: @gray-l;
  2182. text-align: center;
  2183. height: 26px;
  2184. line-height: 26px;
  2185. &.item {
  2186. width: 100px;
  2187. }
  2188. }
  2189. svg {
  2190. height: 1.222vh;
  2191. }
  2192. }
  2193. }
  2194. .pie-chart-panel {
  2195. margin-top: 10px;
  2196. .line {
  2197. border: none;
  2198. }
  2199. }
  2200. }
  2201. </style>