windDetailDialog.vue 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171
  1. <template>
  2. <div class="windDetail" :class="$store.state.isLeft ? 'windDetailWidth' : ''">
  3. <div class="action-bar">
  4. <div class="selections">
  5. <div
  6. class="selections_btn"
  7. @click="tabSelect(0)"
  8. :class="{ active: tabIndex == 0 }"
  9. >
  10. 风机运行情况信息
  11. </div>
  12. <div
  13. class="selections_btn"
  14. @click="tabSelect(1)"
  15. :class="{ active: tabIndex == 1 }"
  16. >
  17. 风机日详细信息
  18. </div>
  19. <div
  20. class="selections_btn"
  21. @click="tabSelect(2)"
  22. :class="{ active: tabIndex == 2 }"
  23. >
  24. 测风塔玫瑰图
  25. </div>
  26. <div
  27. class="selections_btn"
  28. @click="tabSelect(3)"
  29. :class="{ active: tabIndex == 3 }"
  30. >
  31. 风机玫瑰图
  32. </div>
  33. <div
  34. class="selections_btn"
  35. @click="tabSelect(4)"
  36. :class="{ active: tabIndex == 4 }"
  37. >
  38. 风机切入切出分析
  39. </div>
  40. </div>
  41. <div class="windDetailseach">
  42. <div class="query-items">
  43. <div class="query-item">
  44. <div class="label">{{ tabIndex != 2 ? "风场:" : "测风塔:" }}</div>
  45. <el-select
  46. v-model="wpId"
  47. clearable
  48. placeholder="请选择"
  49. @change="changeStationsVal"
  50. >
  51. <el-option
  52. v-for="item in tabIndex != 2 ? wpArray : cftlist"
  53. :key="item.id"
  54. :value="item.id"
  55. :label="item.aname"
  56. />
  57. </el-select>
  58. </div>
  59. <div class="query-item" v-if="tabIndex != 2">
  60. <div class="label">风机:</div>
  61. <el-select
  62. v-model="wtId"
  63. clearable
  64. placeholder="请选择"
  65. popper-class="select"
  66. >
  67. <el-option
  68. v-for="item in wtArray"
  69. :key="item.id"
  70. :value="item.id"
  71. :label="item.aname"
  72. />
  73. </el-select>
  74. </div>
  75. <!-- <div class="query-item">
  76. <div class="label">风场:</div>
  77. <el-select
  78. v-model="wpId"
  79. clearable
  80. placeholder="请选择"
  81. @change="changeStationsVal"
  82. >
  83. <el-option
  84. v-for="item in wpArray"
  85. :key="item.id"
  86. :value="item.id"
  87. :label="item.name"
  88. />
  89. </el-select>
  90. </div>
  91. <div class="query-item">
  92. <div class="label">风机:</div>
  93. <el-select
  94. v-model="wtId"
  95. clearable
  96. placeholder="请选择"
  97. popper-class="select"
  98. >
  99. <el-option
  100. v-for="item in wtArray"
  101. :key="item.id"
  102. :value="item.id"
  103. :label="item.aname"
  104. />
  105. </el-select>
  106. </div> -->
  107. <div class="query-item">
  108. <div class="label">日期:</div>
  109. <el-date-picker
  110. v-model="recorddate"
  111. type="date"
  112. value-format="YYYY-MM-DD"
  113. placeholder="选择日期"
  114. size="mini"
  115. popper-class="date-select"
  116. >
  117. </el-date-picker>
  118. </div>
  119. </div>
  120. <div class="query-actions">
  121. <el-button class="buttons" size="mini" round @click="search"
  122. >搜 索</el-button
  123. >
  124. </div>
  125. </div>
  126. </div>
  127. <!-- tab1 -->
  128. <div v-if="tabIndex == 0" class="TabOne tabsev">
  129. <panel :title="'功率分析'" class="TabOne_topChart">
  130. <area-line-chart
  131. :height="'100%'"
  132. :lineData="lostChartData"
  133. :units="lostChartUnit"
  134. :areaData="LostChartBgColorData"
  135. @areaClick="areaBarChartClick"
  136. :showLegend="true"
  137. />
  138. </panel>
  139. <panel :title="'损失电量分析'" class="TabOne_centerChart">
  140. <multiple-bar-line-chart
  141. :height="'100%'"
  142. :barData="powerChartData"
  143. :lineData="powerChartLineData"
  144. :units="['(kWh)', '(m/s)']"
  145. :showLegend="true"
  146. />
  147. </panel>
  148. <div class="table-info">
  149. <panel class="table-panel" :title="'当日报警记录'" :showLine="false">
  150. <el-table
  151. :data="warnTableData.data"
  152. height="calc(100% - 33px)"
  153. stripe
  154. size="mini"
  155. >
  156. <el-table-column
  157. v-for="(item, index) in warnTableData.column"
  158. :key="index"
  159. align="center"
  160. :label="item.name"
  161. :prop="item.field"
  162. />
  163. </el-table>
  164. <el-pagination
  165. v-if="warnPage.total > 0"
  166. hide-on-single-page
  167. style="text-align: center"
  168. @current-change="
  169. (val) => {
  170. warnPage.pageNum = val;
  171. getWarnTableData();
  172. }
  173. "
  174. :current-page="warnPage.pageNum"
  175. :page-size="warnPage.pageSize"
  176. layout="total, prev, pager, next, jumper"
  177. :total="warnPage.total"
  178. ></el-pagination>
  179. </panel>
  180. <panel class="table-panel" :title="'当日故障记录'" :showLine="false">
  181. <Table :data="stopTableData" :canScroll="true" :height="'100%'" />
  182. </panel>
  183. <panel class="table-panel" :title="'当日限电记录'" :showLine="false">
  184. <Table :data="xdTableData" :canScroll="true" :height="'100%'" />
  185. </panel>
  186. </div>
  187. </div>
  188. <!-- tab2 -->
  189. <div v-if="tabIndex == 1" class="tab-2 tabsev">
  190. <el-row style="height: 100%">
  191. <el-col style="height: 100%; padding-right: 10px" :span="15">
  192. <panel :title="'功率曲线'" style="height: 270px; margin-bottom: 10px">
  193. <marker-line-chart
  194. :height="'100%'"
  195. :list="powerLineChartData"
  196. :units="['(MW)', '(功率)']"
  197. :showLegend="true"
  198. />
  199. </panel>
  200. <panel
  201. :title="'日发电量信息'"
  202. :subTitle="'单位:万kWh'"
  203. style="height: 297px; margin-bottom: 10px"
  204. :showLine="false"
  205. >
  206. <div class="power-info month-1">
  207. <div class="info-item">
  208. <div class="text">发电量:</div>
  209. <div class="value green">{{ dayPowerInfo.rfdl }}</div>
  210. </div>
  211. <div class="info-item">
  212. <div class="text">理论发电量:</div>
  213. <div class="value green">{{ dayPowerInfo.ryfdl }}</div>
  214. </div>
  215. <!-- <div class="info-item">
  216. <div class="text">平均功率:</div>
  217. <div class="value green">{{ dayPowerInfo.rpjgl }}</div>
  218. </div> -->
  219. <div class="info-item">
  220. <div class="text">平均风速:</div>
  221. <div class="value green">{{ dayPowerInfo.rpjfs }}</div>
  222. </div>
  223. <!-- <div class="info-item">
  224. <div class="text">拟合优度:</div>
  225. <div class="value green">{{ dayPowerInfo.rnhyd }}</div>
  226. </div> -->
  227. <div class="info-item">
  228. <div class="text">运行小时:</div>
  229. <div class="value green">{{ dayPowerInfo.ryxxs }}</div>
  230. </div>
  231. <div class="info-item">
  232. <div class="text">停机小时:</div>
  233. <div class="value green">
  234. {{ Number(dayPowerInfo.rgzxs) + Number(dayPowerInfo.rjxxs) }}
  235. </div>
  236. </div>
  237. <div class="info-item">
  238. <div class="text">故障小时:</div>
  239. <div class="value green">{{ dayPowerInfo.rgzxs }}</div>
  240. </div>
  241. <div class="info-item">
  242. <div class="text">维护小时:</div>
  243. <div class="value green">{{ dayPowerInfo.rjxxs }}</div>
  244. </div>
  245. <div class="info-item">
  246. <div class="text">中断小时:</div>
  247. <div class="value green">{{ dayPowerInfo.rzdxs }}</div>
  248. </div>
  249. <div class="info-item">
  250. <div class="text">有效风时数:</div>
  251. <div class="value green">{{ dayPowerInfo.ryxfs }}</div>
  252. </div>
  253. <div class="info-item">
  254. <div class="text">损失电量:</div>
  255. <div class="value green">{{ dayPowerInfo.rssdl }}</div>
  256. </div>
  257. <div class="info-item">
  258. <div class="text">报警次数:</div>
  259. <div class="value green">{{ dayPowerInfo.rbjcs }}</div>
  260. </div>
  261. <div class="info-item">
  262. <div class="text">停机次数:</div>
  263. <div class="value green">{{ dayPowerInfo.rtjcs }}</div>
  264. </div>
  265. <!-- <div class="info-item">
  266. <div class="text">不饱和次数:</div>
  267. <div class="value green">{{ dayPowerInfo.rbbhcs }}</div>
  268. </div> -->
  269. <div class="info-item">
  270. <div class="text">设备可利用率:</div>
  271. <div class="value green">{{ dayPowerInfo.rsbklyl }}%</div>
  272. </div>
  273. <!-- <div class="info-item">
  274. <div class="text">实际/保证偏差率:</div>
  275. <div class="value green">{{ dayPowerInfo.rsjbz }}</div>
  276. </div> -->
  277. <div class="info-item">
  278. <div class="text">平均温度:</div>
  279. <div class="value green">{{ dayPowerInfo.rpjwd }}℃</div>
  280. </div>
  281. <!-- <div class="info-item">
  282. <div class="text">平均湿度:</div>
  283. <div class="value green">{{ dayPowerInfo.rpjsd }}</div>
  284. </div>
  285. <div class="info-item">
  286. <div class="text">平均压强:</div>
  287. <div class="value green">{{ dayPowerInfo.rpjyq }}</div>
  288. </div> -->
  289. </div>
  290. </panel>
  291. <div class="month-info">
  292. <div class="month-info-left">
  293. <panel
  294. :title="'月发电量信息'"
  295. :subTitle="'单位:万kWh'"
  296. style="height: 100%"
  297. :showLine="false"
  298. >
  299. <div class="power-info month-3">
  300. <div class="info-item">
  301. <div class="text">月发电量:</div>
  302. <div class="value green">{{ dayPowerInfo.yfdl }}</div>
  303. </div>
  304. <div class="info-item">
  305. <div class="text">月理论发电量:</div>
  306. <div class="value green">{{ dayPowerInfo.yyfdl }}</div>
  307. </div>
  308. <!-- <div class="info-item">
  309. <div class="text">月平均功率:</div>
  310. <div class="value green">{{ dayPowerInfo.ypjgl }}</div>
  311. </div> -->
  312. <div class="info-item">
  313. <div class="text">月平均风速:</div>
  314. <div class="value green">{{ dayPowerInfo.ypjfs }}</div>
  315. </div>
  316. <!-- <div class="info-item">
  317. <div class="text">月拟合优度:</div>
  318. <div class="value green">{{ dayPowerInfo.ynhyd }}</div>
  319. </div> -->
  320. <div class="info-item">
  321. <div class="text">月运行小时:</div>
  322. <div class="value green">{{ dayPowerInfo.yyxxs }}</div>
  323. </div>
  324. <div class="info-item">
  325. <div class="text">月停机小时:</div>
  326. <div class="value green">
  327. {{
  328. Number(dayPowerInfo.ygzxs) + Number(dayPowerInfo.yjxxs)
  329. }}
  330. </div>
  331. </div>
  332. <div class="info-item">
  333. <div class="text">月故障小时:</div>
  334. <div class="value green">{{ dayPowerInfo.ygzxs }}</div>
  335. </div>
  336. <div class="info-item">
  337. <div class="text">月维护小时:</div>
  338. <div class="value green">{{ dayPowerInfo.yjxxs }}</div>
  339. </div>
  340. <div class="info-item">
  341. <div class="text">月中断小时:</div>
  342. <div class="value green">{{ dayPowerInfo.yzdxs }}</div>
  343. </div>
  344. <div class="info-item">
  345. <div class="text">月有效风时数:</div>
  346. <div class="value green">{{ dayPowerInfo.yyxfs }}</div>
  347. </div>
  348. <div class="info-item">
  349. <div class="text">月报警次数:</div>
  350. <div class="value green">{{ dayPowerInfo.ybjcs }}</div>
  351. </div>
  352. <div class="info-item">
  353. <div class="text">月停机次数:</div>
  354. <div class="value green">{{ dayPowerInfo.ytjcs }}</div>
  355. </div>
  356. <!-- <div class="info-item">
  357. <div class="text">月实际/保证:</div>
  358. <div class="value green">{{ dayPowerInfo.ysjbz }}</div>
  359. </div> -->
  360. <div class="info-item">
  361. <div class="text">设备可利用率:</div>
  362. <div class="value green">{{ dayPowerInfo.ysbklyl }}%</div>
  363. </div>
  364. </div>
  365. </panel>
  366. </div>
  367. <div class="month-info-right">
  368. <!-- style="height: calc(100% - 220px - 10px)" -->
  369. <panel
  370. :title="'年发电量信息'"
  371. :subTitle="'单位:万kWh'"
  372. style="height: 100%"
  373. :showLine="false"
  374. >
  375. <div class="power-info power-infoss month-2">
  376. <div class="info-item">
  377. <div class="text">年发电量:</div>
  378. <div class="value green">{{ dayPowerInfo.nfdl }}</div>
  379. </div>
  380. <div class="info-item">
  381. <div class="text">年理论发电量:</div>
  382. <div class="value green">{{ dayPowerInfo.nyfdl }}</div>
  383. </div>
  384. <div class="info-item">
  385. <div class="text">年平均风速:</div>
  386. <div class="value green">{{ dayPowerInfo.npjfs }}</div>
  387. </div>
  388. <div class="info-item">
  389. <div class="text">年运行小时:</div>
  390. <div class="value green">{{ dayPowerInfo.nyxxs }}</div>
  391. </div>
  392. <div class="info-item">
  393. <div class="text">年停机小时:</div>
  394. <div class="value green">{{
  395. Number(dayPowerInfo.ngzxs) + Number(dayPowerInfo.njxxs)
  396. }}</div>
  397. </div>
  398. <div class="info-item">
  399. <div class="text">年故障小时:</div>
  400. <div class="value green">{{ dayPowerInfo.ngzxs }}</div>
  401. </div>
  402. <div class="info-item">
  403. <div class="text">年维护小时:</div>
  404. <div class="value green">{{ dayPowerInfo.njxxs }}</div>
  405. </div>
  406. <div class="info-item">
  407. <div class="text">年中断小时:</div>
  408. <div class="value green">{{ dayPowerInfo.nzdxs }}</div>
  409. </div>
  410. <div class="info-item">
  411. <div class="text">年有效风时数:</div>
  412. <div class="value green">{{ dayPowerInfo.nyxfs }}</div>
  413. </div>
  414. </div>
  415. </panel>
  416. <!-- <panel
  417. :title="'风资源'"
  418. class="radar-panel"
  419. :icon="'svg-wind-site'"
  420. >
  421. <div class="wind-info">
  422. <div class="legend mg-r-16" v-if="jfplStr.length">
  423. <span class="dot"></span>
  424. <span style="color: #fff; white-space: nowrap">{{
  425. jfplStr
  426. }}</span>
  427. </div>
  428. <direction-radar-chart
  429. :width="'80%'"
  430. :height="'100%'"
  431. :series="windResourcesData"
  432. :showLegend="true"
  433. />
  434. </div>
  435. </panel> -->
  436. </div>
  437. </div>
  438. </el-col>
  439. <el-col :span="9" style="height: 100%">
  440. <panel
  441. class="table-panel outline"
  442. :title="'当日报警记录'"
  443. :showLine="false"
  444. >
  445. <el-table
  446. :data="warnTableData.data"
  447. height="calc(100% - 33px)"
  448. stripe
  449. size="mini"
  450. >
  451. <el-table-column
  452. v-for="(item, index) in warnTableData.column"
  453. :key="index"
  454. align="center"
  455. :label="item.name"
  456. :prop="item.field"
  457. />
  458. </el-table>
  459. <el-pagination
  460. v-if="warnPage.total > 0"
  461. hide-on-single-page
  462. style="text-align: center"
  463. @current-change="
  464. (val) => {
  465. warnPage.pageNum = val;
  466. getWarnTableData();
  467. }
  468. "
  469. :current-page="warnPage.pageNum"
  470. :page-size="warnPage.pageSize"
  471. layout="total, prev, pager, next, jumper"
  472. :total="warnPage.total"
  473. ></el-pagination>
  474. </panel>
  475. <panel
  476. class="table-panel outline"
  477. :title="'当日故障记录'"
  478. :showLine="false"
  479. >
  480. <Table :data="stopTableData" :canScroll="true" :height="'23vh'" />
  481. </panel>
  482. <panel
  483. class="table-panel outline"
  484. :title="'当月报警排行'"
  485. :showLine="false"
  486. >
  487. <Table
  488. :data="monthWarnRecordData"
  489. :canScroll="true"
  490. :height="'23vh'"
  491. />
  492. </panel>
  493. </el-col>
  494. </el-row>
  495. </div>
  496. <!-- tab3 -->
  497. <div v-if="tabIndex == 2" class="tab-3 tabsev">
  498. <el-row style="height: calc((100% - 10px) / 2); margin-bottom: 10px">
  499. <el-col :span="8" class="tabColSty">
  500. <panel
  501. :title="'日最大风速'"
  502. class="radar-panel"
  503. :icon="'svg-wind-site'"
  504. >
  505. <div class="wind-info">
  506. <div class="legend">
  507. <span class="dot"></span>
  508. <span class="titSty">{{ rzdfsStr }}</span>
  509. </div>
  510. <!-- <radar-chart
  511. :width="'100%'"
  512. :height="'350px'"
  513. :value="rzdfsData"
  514. title="日最大风速"
  515. /> -->
  516. <rander-new-chart
  517. width="100%"
  518. height="100%"
  519. :lenged="rzdfsLen"
  520. :xAxis="rzdfsxaisx"
  521. :series="rzdfsData"
  522. :isRadar="false"
  523. />
  524. </div>
  525. </panel>
  526. </el-col>
  527. <el-col :span="8" class="tabColSty">
  528. <panel
  529. :title="'月最大风速'"
  530. class="radar-panel"
  531. :icon="'svg-wind-site'"
  532. >
  533. <div class="wind-info">
  534. <div class="legend">
  535. <span class="dot"></span>
  536. <span class="titSty">{{ yzdfsStr }}</span>
  537. </div>
  538. <!-- <radar-chart
  539. :width="'100%'"
  540. :height="'350px'"
  541. :value="yzdfsData"
  542. title="月最大风速"
  543. /> -->
  544. <rander-new-chart
  545. width="100%"
  546. height="100%"
  547. :lenged="yzdfsLen"
  548. :xAxis="yzdfsxaisx"
  549. :series="yzdfsData"
  550. :isRadar="false"
  551. />
  552. </div>
  553. </panel>
  554. </el-col>
  555. <el-col :span="8" class="tabColSty">
  556. <panel
  557. :title="'年最大风速'"
  558. class="radar-panel"
  559. :icon="'svg-wind-site'"
  560. >
  561. <div class="wind-info">
  562. <div class="legend">
  563. <span class="dot"></span>
  564. <span class="titSty">{{ nzdfsStr }}</span>
  565. </div>
  566. <!-- <radar-chart
  567. :width="'100%'"
  568. :height="'350px'"
  569. :value="nzdfsData"
  570. title="年最大风速"
  571. /> -->
  572. <rander-new-chart
  573. width="100%"
  574. height="100%"
  575. :lenged="nzdfsLen"
  576. :xAxis="nzdfsxaisx"
  577. :series="nzdfsData"
  578. :isRadar="false"
  579. />
  580. </div>
  581. </panel>
  582. </el-col>
  583. </el-row>
  584. <el-row style="height: calc((100% - 10px) / 2)">
  585. <el-col :span="8" class="tabColSty">
  586. <panel
  587. :title="'日风向频率'"
  588. class="radar-panel"
  589. :icon="'svg-wind-site'"
  590. >
  591. <div class="wind-info">
  592. <div class="legend">
  593. <span class="dot"></span>
  594. <span class="titSty">{{ rfxplStr }}</span>
  595. </div>
  596. <!-- <radar-chart
  597. :width="'100%'"
  598. :height="'350px'"
  599. :value="rfxplData"
  600. title="日风向频率"
  601. /> -->
  602. <rander-new-chart
  603. width="100%"
  604. height="100%"
  605. :lenged="rfxplLen"
  606. :xAxis="rfxplxaisx"
  607. :series="rfxplData"
  608. :isRadar="false"
  609. />
  610. </div>
  611. </panel>
  612. </el-col>
  613. <el-col :span="8" class="tabColSty">
  614. <panel
  615. :title="'月风向频率'"
  616. class="radar-panel"
  617. :icon="'svg-wind-site'"
  618. >
  619. <div class="wind-info">
  620. <div class="legend">
  621. <span class="dot"></span>
  622. <span class="titSty">{{ yfxplStr }}</span>
  623. </div>
  624. <!-- <radar-chart
  625. :width="'100%'"
  626. :height="'350px'"
  627. :value="yfxplData"
  628. title="月风向频率"
  629. /> -->
  630. <rander-new-chart
  631. width="100%"
  632. height="100%"
  633. :lenged="yfxplLen"
  634. :xAxis="yfxplxaisx"
  635. :series="yfxplData"
  636. :isRadar="false"
  637. />
  638. </div>
  639. </panel>
  640. </el-col>
  641. <el-col :span="8" class="tabColSty">
  642. <panel
  643. :title="'年风向频率'"
  644. class="radar-panel"
  645. :icon="'svg-wind-site'"
  646. >
  647. <div class="wind-info">
  648. <div class="legend">
  649. <span class="dot"></span>
  650. <span class="titSty">{{ nfxplStr }}</span>
  651. </div>
  652. <!-- <radar-chart
  653. :width="'100%'"
  654. :height="'350px'"
  655. :value="nfxplData"
  656. title="年风向频率"
  657. /> -->
  658. <rander-new-chart
  659. width="100%"
  660. height="100%"
  661. :lenged="nfxplLen"
  662. :xAxis="nfxplxaisx"
  663. :series="nfxplData"
  664. :isRadar="false"
  665. />
  666. </div>
  667. </panel>
  668. </el-col>
  669. </el-row>
  670. </div>
  671. <!-- tab4 -->
  672. <div v-if="tabIndex == 3" class="tab-4 tabsev">
  673. <el-row style="height: calc((100% - 10px) / 2); margin-bottom: 10px">
  674. <el-col :span="8" class="tabColSty">
  675. <panel
  676. :title="'日最大风速'"
  677. class="radar-panel"
  678. :icon="'svg-wind-site'"
  679. >
  680. <div class="wind-info">
  681. <div class="legend mg-r-16">
  682. <span class="dot"></span>
  683. <span class="titSty">{{ rzdfsStr }}</span>
  684. </div>
  685. <!-- <radar-chart
  686. :width="'100%'"
  687. :height="'350px'"
  688. :value="rzdfsData"
  689. title="日最大风速"
  690. /> -->
  691. <rander-new-chart
  692. width="100%"
  693. height="100%"
  694. :lenged="rzdfsLen"
  695. :xAxis="rzdfsxaisx"
  696. :series="rzdfsData"
  697. :isRadar="false"
  698. />
  699. </div>
  700. </panel>
  701. </el-col>
  702. <el-col :span="8" class="tabColSty">
  703. <panel
  704. :title="'月最大风速'"
  705. class="radar-panel"
  706. :icon="'svg-wind-site'"
  707. >
  708. <div class="wind-info">
  709. <div class="legend mg-r-16">
  710. <span class="dot"></span>
  711. <span class="titSty">{{ yzdfsStr }}</span>
  712. </div>
  713. <!-- <radar-chart
  714. :width="'100%'"
  715. :height="'350px'"
  716. :value="yzdfsData"
  717. title="月最大风速"
  718. /> -->
  719. <rander-new-chart
  720. width="100%"
  721. height="100%"
  722. :lenged="yzdfsLen"
  723. :xAxis="yzdfsxaisx"
  724. :series="yzdfsData"
  725. :isRadar="false"
  726. />
  727. </div>
  728. </panel>
  729. </el-col>
  730. <el-col :span="8" class="tabColSty">
  731. <panel
  732. :title="'年最大风速'"
  733. class="radar-panel"
  734. :icon="'svg-wind-site'"
  735. >
  736. <div class="wind-info">
  737. <div class="legend mg-r-16">
  738. <span class="dot"></span>
  739. <span class="titSty">{{ nzdfsStr }}</span>
  740. </div>
  741. <!-- <radar-chart
  742. :width="'100%'"
  743. :height="'350px'"
  744. :value="nzdfsData"
  745. title="年最大风速"
  746. /> -->
  747. <rander-new-chart
  748. width="100%"
  749. height="100%"
  750. :lenged="nzdfsLen"
  751. :xAxis="nzdfsxaisx"
  752. :series="nzdfsData"
  753. :isRadar="false"
  754. />
  755. </div>
  756. </panel>
  757. </el-col>
  758. </el-row>
  759. <el-row style="height: calc((100% - 10px) / 2)">
  760. <el-col :span="8" class="tabColSty">
  761. <panel
  762. :title="'日风向频率'"
  763. class="radar-panel"
  764. :icon="'svg-wind-site'"
  765. >
  766. <div class="wind-info">
  767. <div class="legend">
  768. <span class="dot"></span>
  769. <span class="titSty">{{ rfxplStr }}</span>
  770. </div>
  771. <!-- <radar-chart
  772. :width="'100%'"
  773. :height="'350px'"
  774. :value="rfxplData"
  775. title="日风向频率"
  776. /> -->
  777. <rander-new-chart
  778. width="100%"
  779. height="100%"
  780. :lenged="rfxplLen"
  781. :xAxis="rfxplxaisx"
  782. :series="rfxplData"
  783. :isRadar="false"
  784. />
  785. </div>
  786. </panel>
  787. </el-col>
  788. <el-col :span="8" class="tabColSty">
  789. <panel
  790. :title="'月风向频率'"
  791. class="radar-panel"
  792. :icon="'svg-wind-site'"
  793. >
  794. <div class="wind-info">
  795. <div class="legend">
  796. <span class="dot"></span>
  797. <span class="titSty">{{ yfxplStr }}</span>
  798. </div>
  799. <!-- <radar-chart
  800. :width="'100%'"
  801. :height="'350px'"
  802. :value="yfxplData"
  803. title="月风向频率"
  804. /> -->
  805. <rander-new-chart
  806. width="100%"
  807. height="100%"
  808. :lenged="yfxplLen"
  809. :xAxis="yfxplxaisx"
  810. :series="yfxplData"
  811. :isRadar="false"
  812. />
  813. </div>
  814. </panel>
  815. </el-col>
  816. <el-col :span="8" class="tabColSty">
  817. <panel
  818. :title="'年风向频率'"
  819. class="radar-panel"
  820. :icon="'svg-wind-site'"
  821. >
  822. <div class="wind-info">
  823. <div class="legend">
  824. <span class="dot"></span>
  825. <span class="titSty">{{ nfxplStr }}</span>
  826. </div>
  827. <!-- <radar-chart
  828. :width="'100%'"
  829. :height="'350px'"
  830. :value="nfxplData"
  831. title="年风向频率"
  832. /> -->
  833. <!-- <rander-new-chart
  834. width="100%"
  835. height="100%"
  836. :lenged="nfxplLen"
  837. :xAxis="nfxplxaisx"
  838. :series="nfxplData"
  839. :isRadar="false"
  840. /> -->
  841. </div>
  842. </panel>
  843. </el-col>
  844. </el-row>
  845. </div>
  846. <!-- tab5 -->
  847. <div v-if="tabIndex == 4" class="tab-5 tabsev">
  848. <el-row style="height: calc((100% - 10px) / 2); margin-bottom: 10px">
  849. <el-col :span="8">
  850. <panel title="日小风切入">
  851. <dual-pie-chart
  852. width="100%"
  853. height="350px"
  854. title="日切入频率分析"
  855. :series="dayWindPieData"
  856. />
  857. </panel>
  858. </el-col>
  859. <el-col :span="8">
  860. <panel title="月小风切入">
  861. <dual-pie-chart
  862. width="100%"
  863. height="350px"
  864. title="月切入频率分析"
  865. :series="monthWindPieData"
  866. />
  867. </panel>
  868. </el-col>
  869. <el-col :span="8">
  870. <panel title="年小风切入">
  871. <dual-pie-chart
  872. width="100%"
  873. height="350px"
  874. title="年切入频率分析"
  875. :series="yearWindPieData"
  876. />
  877. </panel>
  878. </el-col>
  879. </el-row>
  880. <el-row style="height: calc((100% - 10px) / 2)">
  881. <el-col :span="8">
  882. <panel title="日小风切出">
  883. <dual-pie-chart
  884. width="100%"
  885. height="350px"
  886. title="日切出频率分析"
  887. :series="dayStopPieData"
  888. />
  889. </panel>
  890. </el-col>
  891. <el-col :span="8">
  892. <panel title="月小风切出">
  893. <dual-pie-chart
  894. width="100%"
  895. height="350px"
  896. title="月切出频率分析"
  897. :series="monthStopPieData"
  898. />
  899. </panel>
  900. </el-col>
  901. <el-col :span="8">
  902. <panel title="年小风切出">
  903. <dual-pie-chart
  904. width="100%"
  905. height="350px"
  906. title="年切出频率分析"
  907. :series="yearStopPieData"
  908. />
  909. </panel>
  910. </el-col>
  911. </el-row>
  912. </div>
  913. <el-dialog
  914. v-model="dialogShow"
  915. width="85%"
  916. top="120px"
  917. :close-on-click-modal="true"
  918. >
  919. <template #title>
  920. <div class="dialog-title">
  921. <div class="title">区域详情查看</div>
  922. </div>
  923. </template>
  924. <el-form ref="form" label-width="100px" inline>
  925. <el-form-item style="width: 32%" label="开始时间:">{{
  926. form.ks
  927. }}</el-form-item>
  928. <el-form-item style="width: 32%" label="结束时间:">{{
  929. form.js
  930. }}</el-form-item>
  931. <el-form-item style="width: 32%" label="时长:"
  932. >{{ form.sc }}(小时)</el-form-item
  933. >
  934. <el-form-item style="width: 32%" label="风速:"
  935. >{{ form.fs }}(m/s)</el-form-item
  936. >
  937. <el-form-item style="width: 32%" label="功率:"
  938. >{{ form.gl }}(KW)</el-form-item
  939. >
  940. <el-form-item style="width: 32%" label="理论发电量:"
  941. >{{ form.llfdl }}(KWh)</el-form-item
  942. >
  943. <el-form-item style="width: 32%" label="发电量:"
  944. >{{ form.fdl }}(KWh)</el-form-item
  945. >
  946. <el-form-item style="width: 32%" label="损失电量:"
  947. >{{ form.ssdl }}(KWh)</el-form-item
  948. >
  949. <el-form-item style="width: 32%" label="风机状态:">{{
  950. form.fjzt
  951. }}</el-form-item>
  952. </el-form>
  953. </el-dialog>
  954. </div>
  955. </template>
  956. <script>
  957. import AreaLineChart from "@/components/chart/combination/area-line-chart.vue";
  958. import MultipleBarLineChart from "@/components/chart/combination/multiple-bar-line-chart.vue";
  959. import MarkerLineChart from "@/components/chart/line/multiple-line-chart.vue";
  960. import DualPieChart from "@/components/chart/pie/dual-pie-chart.vue";
  961. import DirectionRadarChart from "@/components/chart/radar/direction-radar-chart.vue";
  962. import RadarChart from "@/components/chart/radar/radar-chart.vue";
  963. import panel from "@/components/coms/panel/panel.vue";
  964. import Table from "@/components/coms/table/table.vue";
  965. import randerNewChart from "./raderswithhart.vue";
  966. import dayjs from "dayjs";
  967. import { alarm_history } from "@/api/zhbj/index.js";
  968. import {
  969. getApifindWtRealPowerChar,
  970. getApigetplotBands,
  971. getApiplotBandAjax,
  972. getApifindRealPowerCharBy24,
  973. getApibjjllist,
  974. getApigzjllist,
  975. getApixdjllist,
  976. getApiwadAjax,
  977. getApibjphlist,
  978. getApiglchat,
  979. getApifjfzy,
  980. getApiequipmentListByWp2,
  981. getApiWeatherstation,
  982. getApiComMGTWP,
  983. getApiComMGTWT,
  984. getApiComPie,
  985. } from "@/api/monthlyPerformanceAnalysis";
  986. import * as echarts from "echarts";
  987. export default {
  988. components: {
  989. panel,
  990. AreaLineChart,
  991. MultipleBarLineChart,
  992. Table,
  993. MarkerLineChart,
  994. // DirectionRadarChart,
  995. DualPieChart,
  996. // RadarChart,
  997. randerNewChart,
  998. },
  999. props: {
  1000. wpArray: {
  1001. type: Array,
  1002. default: () => [],
  1003. },
  1004. },
  1005. data() {
  1006. return {
  1007. tabIndex: 0,
  1008. tableData: {
  1009. column: [
  1010. {
  1011. name: "风机",
  1012. field: "name",
  1013. is_num: false,
  1014. is_light: false,
  1015. },
  1016. {
  1017. name: "描述",
  1018. field: "desc",
  1019. is_num: false,
  1020. is_light: false,
  1021. },
  1022. {
  1023. name: "报警时间",
  1024. field: "date",
  1025. is_num: false,
  1026. is_light: false,
  1027. },
  1028. ],
  1029. data: [],
  1030. },
  1031. wpId: "",
  1032. wtArray: [],
  1033. wtId: "",
  1034. recorddate: "",
  1035. lostChartData: [
  1036. {
  1037. text: "",
  1038. value: [],
  1039. },
  1040. ],
  1041. lostChartUnit: [],
  1042. LostChartBgColorData: [
  1043. // {
  1044. // name: "",
  1045. // },
  1046. ],
  1047. powerChartData: [],
  1048. powerChartLineData: {},
  1049. warnTableData: {
  1050. column: [
  1051. {
  1052. name: "风机",
  1053. field: "code",
  1054. is_num: false,
  1055. is_light: false,
  1056. },
  1057. {
  1058. name: "描述",
  1059. field: "description",
  1060. is_num: false,
  1061. is_light: false,
  1062. },
  1063. {
  1064. name: "报警时间",
  1065. field: "ts",
  1066. is_num: false,
  1067. is_light: false,
  1068. },
  1069. ],
  1070. data: [],
  1071. },
  1072. warnPage: { pageSize: 5, pageNum: 1, total: 0 },
  1073. stopTableData: {
  1074. column: [
  1075. {
  1076. name: "风机",
  1077. field: "windTurbineId",
  1078. is_num: false,
  1079. is_light: false,
  1080. },
  1081. {
  1082. name: "停机时间",
  1083. field: "stopTime",
  1084. is_num: false,
  1085. is_light: false,
  1086. },
  1087. {
  1088. name: "恢复时间",
  1089. field: "starttime",
  1090. is_num: false,
  1091. is_light: false,
  1092. },
  1093. ],
  1094. data: [],
  1095. },
  1096. xdTableData: {
  1097. column: [
  1098. {
  1099. name: "风机",
  1100. field: "windturbineid",
  1101. is_num: false,
  1102. is_light: false,
  1103. },
  1104. {
  1105. name: "停机时间",
  1106. field: "stoptime",
  1107. is_num: false,
  1108. is_light: false,
  1109. },
  1110. {
  1111. name: "恢复时间",
  1112. field: "starttime",
  1113. is_num: false,
  1114. is_light: false,
  1115. },
  1116. {
  1117. name: "损失电量",
  1118. field: "losspower",
  1119. is_num: false,
  1120. is_light: false,
  1121. },
  1122. {
  1123. name: "限电时长",
  1124. field: "stophours",
  1125. is_num: false,
  1126. is_light: false,
  1127. },
  1128. ],
  1129. data: [],
  1130. },
  1131. powerLineChartData: [
  1132. {
  1133. title: "",
  1134. yAxisIndex: 0,
  1135. value: [],
  1136. },
  1137. ],
  1138. dayPowerInfo: {},
  1139. monthWarnRecordData: {
  1140. column: [
  1141. {
  1142. name: "名字",
  1143. field: "name",
  1144. is_num: false,
  1145. is_light: false,
  1146. },
  1147. {
  1148. name: "次数",
  1149. field: "frequency",
  1150. is_num: true,
  1151. is_light: false,
  1152. },
  1153. ],
  1154. data: [],
  1155. },
  1156. jfplStr: "",
  1157. windResourcesData: {},
  1158. rzdfsStr: "",
  1159. rzdfsLen: [],
  1160. rzdfsData: [],
  1161. rzdfsxaisx: {
  1162. type: "category",
  1163. boundaryGap: false,
  1164. data: [],
  1165. splitLine: {
  1166. show: true,
  1167. },
  1168. },
  1169. yzdfsStr: "",
  1170. yzdfslen: [],
  1171. yzdfsData: [],
  1172. yzdfsxaisx: {
  1173. type: "category",
  1174. boundaryGap: false,
  1175. data: [],
  1176. splitLine: {
  1177. show: true,
  1178. },
  1179. },
  1180. nzdfsStr: "",
  1181. nzdfsLen: [],
  1182. nzdfsData: [],
  1183. nzdfsxaisx: {
  1184. type: "category",
  1185. boundaryGap: false,
  1186. data: [],
  1187. splitLine: {
  1188. show: true,
  1189. },
  1190. },
  1191. rfxplStr: "",
  1192. rfxplLen: [],
  1193. rfxplData: [],
  1194. rfxplxaisx: {
  1195. type: "category",
  1196. boundaryGap: false,
  1197. data: [],
  1198. splitLine: {
  1199. show: true,
  1200. },
  1201. },
  1202. yfxplStr: "",
  1203. yfxplLen: [],
  1204. yfxplData: [],
  1205. yfxplxaisx: {
  1206. type: "category",
  1207. boundaryGap: false,
  1208. data: [],
  1209. splitLine: {
  1210. show: true,
  1211. },
  1212. },
  1213. nfxplStr: "",
  1214. nfxplLen: [],
  1215. nfxplData: [],
  1216. nfxplxaisx: {
  1217. type: "category",
  1218. boundaryGap: false,
  1219. data: [],
  1220. splitLine: {
  1221. show: true,
  1222. },
  1223. },
  1224. dayWindPieData: [],
  1225. monthWindPieData: [],
  1226. yearWindPieData: [],
  1227. dayStopPieData: [],
  1228. monthStopPieData: [],
  1229. yearStopPieData: [],
  1230. dialogShow: false,
  1231. form: {},
  1232. hisWpid: "",
  1233. hisSubid: "",
  1234. hisWtid: "",
  1235. };
  1236. },
  1237. computed: {
  1238. cftlist() {
  1239. return this.$store.state.cftList.filter(
  1240. (item) => !item.name.includes("光电站")
  1241. );
  1242. },
  1243. },
  1244. methods: {
  1245. init(row) {
  1246. this.wpId = row.windtpowerstationId;
  1247. this.hisWpid = row.windtpowerstationId;
  1248. // this.wtId = row.windturbineId.substring(row.windturbineId.indexOf('_F'))
  1249. this.wtId = row.windturbineId;
  1250. this.hisWtid = row.windturbineId;
  1251. this.tabIndex = 0;
  1252. this.getWindData();
  1253. this.search();
  1254. },
  1255. // 切换风场
  1256. changeStationsVal(val) {
  1257. this.wpId = val;
  1258. if (this.tabIndex == 2) {
  1259. this.hisSubid = val;
  1260. } else {
  1261. this.getWindData();
  1262. }
  1263. },
  1264. // 获取风机
  1265. async getWindData() {
  1266. let params = {
  1267. companyId: "",
  1268. wpIds: this.wpId,
  1269. projectIds: "",
  1270. lineIds: "",
  1271. type: 0,
  1272. };
  1273. const { data: datas } = await getApiequipmentListByWp2(params);
  1274. this.wtArray = datas.data;
  1275. // this.wtId = datas.data[0].id;
  1276. },
  1277. // tab1 ----------------------------------------
  1278. // tab1 - 获取损失电量分析图表数据
  1279. async getLostChartData() {
  1280. let that = this;
  1281. let params = {
  1282. wtId: that.wtId,
  1283. recorddate: that.recorddate,
  1284. };
  1285. const { data: datas } = await getApifindWtRealPowerChar(params);
  1286. if (datas && datas.data.length > 0) {
  1287. const keyArray = ["value1", "value2", "value3"];
  1288. let lostChartData = [
  1289. {
  1290. text: "实发功率",
  1291. value: [
  1292. // {
  1293. // text: "1",
  1294. // value: 1,
  1295. // },
  1296. ],
  1297. },
  1298. {
  1299. text: "保证功率",
  1300. value: [],
  1301. },
  1302. {
  1303. text: "风速",
  1304. value: [],
  1305. },
  1306. ];
  1307. const lostChartUnit = ["实发功率", "保证功率", "风速"];
  1308. keyArray.forEach((key, keyIndex) => {
  1309. datas.data.forEach((ele) => {
  1310. lostChartData[keyIndex].value.push({
  1311. text: new Date(ele.time).formatDate("hh:mm"),
  1312. value: ele[key],
  1313. });
  1314. });
  1315. });
  1316. that.lostChartData = lostChartData;
  1317. that.lostChartUnit = lostChartUnit;
  1318. that.getLostChartBgColorData();
  1319. }
  1320. },
  1321. // tab1 - 获取损失电量分析图表背景颜色
  1322. async getLostChartBgColorData() {
  1323. let that = this;
  1324. let params = {
  1325. wtId: that.wtId,
  1326. recorddate: that.recorddate,
  1327. };
  1328. const { data: datas } = await getApigetplotBands(params);
  1329. if (datas && datas.data.length > 0) {
  1330. let LostChartBgColorData = [];
  1331. datas.data.forEach((pEle, pIndex) => {
  1332. LostChartBgColorData.push({
  1333. name: pEle[0].name,
  1334. start: pIndex ? LostChartBgColorData[pIndex - 1].end : 0,
  1335. end:
  1336. (pIndex ? LostChartBgColorData[pIndex - 1].end : 0) +
  1337. (new Date(pEle[0].time2).getTime() / 1000 -
  1338. new Date(pEle[0].time1).getTime() / 1000),
  1339. color: pEle[0].itemStyle.color,
  1340. beginDate: pEle[0].time1,
  1341. endDate: pEle[0].time2,
  1342. wtId: that.wtId,
  1343. });
  1344. });
  1345. that.LostChartBgColorData = LostChartBgColorData;
  1346. }
  1347. },
  1348. // 损失电量分析图背景颜色区域点击事件
  1349. async areaBarChartClick(item) {
  1350. let that = this;
  1351. let params = {
  1352. wtId: item.data.wtId,
  1353. beginDate: item.data.beginDate,
  1354. endDate: item.data.endDate,
  1355. };
  1356. const { data: datas } = await getApiplotBandAjax(params);
  1357. if (datas && datas.data) {
  1358. that.form = datas.data || {};
  1359. that.dialogShow = true;
  1360. }
  1361. },
  1362. // tab1 - 获取电量图表数据
  1363. async getPowerChartData() {
  1364. let that = this;
  1365. let params = {
  1366. wtId: that.wtId,
  1367. recorddate: that.recorddate,
  1368. };
  1369. const { data: datas } = await getApifindRealPowerCharBy24(params);
  1370. if (datas && datas.data.length > 0) {
  1371. const keyArray = ["value1", "value2", "value3", "value4", "value5"];
  1372. let powerChartData = [
  1373. {
  1374. title: "scada发电量",
  1375. type: "bar",
  1376. yAxisIndex: 0,
  1377. value: [],
  1378. },
  1379. {
  1380. title: "检修损失",
  1381. type: "bar",
  1382. yAxisIndex: 0,
  1383. value: [],
  1384. },
  1385. {
  1386. title: "故障损失",
  1387. type: "bar",
  1388. yAxisIndex: 0,
  1389. value: [],
  1390. },
  1391. {
  1392. title: "限电损失",
  1393. type: "bar",
  1394. yAxisIndex: 0,
  1395. value: [],
  1396. },
  1397. {
  1398. title: "欠发损失",
  1399. type: "bar",
  1400. yAxisIndex: 0,
  1401. value: [],
  1402. },
  1403. ];
  1404. let powerChartLineData = {
  1405. name: "风速",
  1406. unit: "(m/s)",
  1407. type: "line",
  1408. data: [],
  1409. };
  1410. for (let i = 0; i < keyArray.length; i++) {
  1411. let keyEle = keyArray[i];
  1412. for (let j = 0; j < datas.data.length; j++) {
  1413. let ele = datas.data[j];
  1414. powerChartData[i].value.push({
  1415. text: new Date(ele.time).formatDate("MM-dd hh:mm"),
  1416. value: ele[keyEle],
  1417. });
  1418. powerChartLineData.data.push(ele.value6);
  1419. }
  1420. }
  1421. that.powerChartData = powerChartData;
  1422. that.powerChartLineData = powerChartLineData;
  1423. }
  1424. },
  1425. // tab1 - 获取当日报警数据
  1426. async getWarnTableData() {
  1427. let params = {
  1428. pageNum: this.warnPage.pageNum,
  1429. pageSize: this.warnPage.pageSize,
  1430. alarmId: "",
  1431. alarmType: "windturbine",
  1432. stationid: this.wpId,
  1433. deviceid: this.wtId,
  1434. modelId: "",
  1435. components: "",
  1436. description: "",
  1437. begin:
  1438. dayjs(this.recorddate).format("YYYY-MM-DD") !=
  1439. dayjs(new Date()).format("YYYY-MM-DD")
  1440. ? dayjs(this.recorddate)
  1441. .startOf("day")
  1442. .format("YYYY-MM-DD HH:mm:ss")
  1443. : dayjs(new Date()).startOf("day").format("YYYY-MM-DD HH:mm:ss"),
  1444. end:
  1445. dayjs(this.recorddate).format("YYYY-MM-DD") !=
  1446. dayjs(new Date()).format("YYYY-MM-DD")
  1447. ? dayjs(this.recorddate).endOf("day").format("YYYY-MM-DD HH:mm:ss")
  1448. : dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss"),
  1449. };
  1450. const { data: datas } = await alarm_history(params);
  1451. if (datas && datas.ls && datas.ls.length > 0) {
  1452. datas.ls.forEach((ele) => {
  1453. ele.ts = dayjs(ele.ts).format("YYYY-MM-DD HH:mm:ss");
  1454. });
  1455. this.warnTableData.data = datas.ls;
  1456. this.warnPage.total = datas.total;
  1457. } else {
  1458. this.warnTableData.data = [];
  1459. this.warnPage.total = 0;
  1460. }
  1461. },
  1462. // tab1 - 获取当日故障数据
  1463. async getStopData() {
  1464. let that = this;
  1465. let params = {
  1466. wtId: that.wtId,
  1467. recorddate: that.recorddate,
  1468. pageNum: "1",
  1469. pageSize: "5",
  1470. };
  1471. const { data: datas } = await getApigzjllist(params);
  1472. if (datas && datas.data && datas.data.records.length > 0) {
  1473. datas.data.records.forEach((ele) => {
  1474. ele.stopTime = new Date(ele.stopTime).formatDate(
  1475. "yyyy-MM-dd hh:mm:ss"
  1476. );
  1477. ele.starttime = ele.starttime
  1478. ? new Date(ele.starttime).formatDate("yyyy-MM-dd hh:mm:ss")
  1479. : "";
  1480. });
  1481. that.stopTableData.data = datas.data.records;
  1482. }
  1483. },
  1484. // tab1 - 获取当日限电数据
  1485. async getXdData() {
  1486. let that = this;
  1487. let params = {
  1488. wtId: that.wtId,
  1489. recorddate: that.recorddate,
  1490. pageNum: "1",
  1491. pageSize: "5",
  1492. };
  1493. const { data: datas } = await getApixdjllist(params);
  1494. if (datas && datas.data && datas.data.records.length > 0) {
  1495. datas.data.records.forEach((ele) => {
  1496. ele.stopTime = new Date(ele.stopTime).formatDate(
  1497. "yyyy-MM-dd hh:mm:ss"
  1498. );
  1499. ele.starttime = ele.starttime
  1500. ? new Date(ele.starttime).formatDate("yyyy-MM-dd hh:mm:ss")
  1501. : "";
  1502. });
  1503. that.xdTableData.data = datas.data.records;
  1504. }
  1505. },
  1506. // tab2 ----------------------------------------
  1507. // tab2 - 获取日发电量信息
  1508. async getDayPowerInfo() {
  1509. let that = this;
  1510. let params = {
  1511. wtId: that.wtId,
  1512. recorddate: that.recorddate,
  1513. };
  1514. const { data: datas } = await getApiwadAjax(params);
  1515. if (datas && datas.data) {
  1516. that.dayPowerInfo = datas.data;
  1517. }
  1518. },
  1519. // tab2 - 获取当月报警排行
  1520. async getMonthWarnRecord() {
  1521. let that = this;
  1522. let params = {
  1523. wtId: that.wtId,
  1524. recorddate: that.recorddate,
  1525. pageNum: "1",
  1526. pageSize: "5",
  1527. };
  1528. const { data: datas } = await getApibjphlist(params);
  1529. if (datas && datas.data) {
  1530. that.monthWarnRecordData.data = datas.data;
  1531. }
  1532. },
  1533. // tab2 - 获取当月报警排行
  1534. async getPowerLineChartData() {
  1535. let that = this;
  1536. let params = {
  1537. wtId: that.wtId,
  1538. recorddate: that.recorddate,
  1539. };
  1540. const { data: datas } = await getApiglchat(params);
  1541. if (datas && datas.data.length > 0) {
  1542. const keyArray = ["value2", "value3", "value4"];
  1543. let powerLineChartData = [
  1544. {
  1545. title: "实际拟合功率",
  1546. yAxisIndex: 0,
  1547. value: [],
  1548. },
  1549. {
  1550. title: "最优功率",
  1551. yAxisIndex: 0,
  1552. value: [],
  1553. },
  1554. {
  1555. title: "保证功率",
  1556. yAxisIndex: 0,
  1557. value: [],
  1558. },
  1559. ];
  1560. keyArray.forEach((keyEle, keyIndex) => {
  1561. datas.data.forEach((ele, index) => {
  1562. powerLineChartData[keyIndex].value.push({
  1563. text: index + 1,
  1564. value: ele[keyEle],
  1565. });
  1566. });
  1567. });
  1568. that.powerLineChartData = powerLineChartData;
  1569. }
  1570. },
  1571. // tab2 - 获取风资源
  1572. async getWindResources() {
  1573. let that = this;
  1574. let params = {
  1575. wtId: that.wtId,
  1576. recorddate: that.recorddate,
  1577. };
  1578. const { data: datas } = await getApifjfzy(params);
  1579. if (datas && datas.data) {
  1580. that.jfplStr = datas.data.jfpl || "";
  1581. let windResourcesData = {
  1582. data: [],
  1583. name: [],
  1584. };
  1585. if (datas.data.data) {
  1586. datas.data.data.forEach((ele, index) => {
  1587. let jiaodu = (360 / 16) * index;
  1588. windResourcesData.data.push([ele.data1, jiaodu]);
  1589. windResourcesData.name.push(ele.name);
  1590. });
  1591. windResourcesData.data.push([datas.data.data[0].data1, 0]);
  1592. }
  1593. that.windResourcesData = windResourcesData;
  1594. }
  1595. },
  1596. // tab3,tab4 - 获取玫瑰图
  1597. async getMgt(subUrl, data, dataKey, logFlg) {
  1598. let that = this;
  1599. let params = {};
  1600. if (logFlg === "wp") {
  1601. params.url = subUrl;
  1602. params.recorddate = data.recorddate;
  1603. params.wpId = data.wpId;
  1604. const { data: datas } = await getApiComMGTWP(params);
  1605. // this.changeAllMsg(datas, dataKey);
  1606. this.changeAllMsgNewChart(datas, dataKey);
  1607. } else {
  1608. params.url = subUrl;
  1609. params.recorddate = data.recorddate;
  1610. params.wtId = data.wtId;
  1611. const { data: datas } = await getApiComMGTWT(params);
  1612. // this.changeAllMsg(datas, dataKey);
  1613. this.changeAllMsgNewChart(datas, dataKey);
  1614. }
  1615. },
  1616. //整合数据
  1617. changeAllMsg(datas, dataKey) {
  1618. if (datas && datas.data) {
  1619. let strrt = dataKey.split("Data")[0] + "Str";
  1620. this[strrt] = datas.data.jfpl || "";
  1621. let mgtData = {
  1622. indicator: [],
  1623. data: [
  1624. {
  1625. name: "",
  1626. value: [],
  1627. },
  1628. ],
  1629. };
  1630. let indicatorArr = [
  1631. { nameZn: "北", nameEn: "N" },
  1632. { nameZn: "北北西", nameEn: "NNW" },
  1633. { nameZn: "北西", nameEn: "NW" },
  1634. { nameZn: "西北西", nameEn: "WNW" },
  1635. { nameZn: "西", nameEn: "W" },
  1636. { nameZn: "西南西", nameEn: "WSW" },
  1637. { nameZn: "南西", nameEn: "SW" },
  1638. { nameZn: "南南西", nameEn: "SSW" },
  1639. { nameZn: "南", nameEn: "S" },
  1640. { nameZn: "南南东", nameEn: "SSE" },
  1641. { nameZn: "南东", nameEn: "SE" },
  1642. { nameZn: "东南东", nameEn: "ESE" },
  1643. { nameZn: "东", nameEn: "E" },
  1644. { nameZn: "东北东", nameEn: "ENE" },
  1645. { nameZn: "北东", nameEn: "NE" },
  1646. { nameZn: "北北东", nameEn: "NNE" },
  1647. ];
  1648. if (datas.data.data.length > 0) {
  1649. datas.data.data.forEach((ele) => {
  1650. mgtData.data[0].value.push(ele.data1);
  1651. indicatorArr.forEach((itc) => {
  1652. let str = "";
  1653. if (ele.name.substring(0, ele.name.indexOf(" ")) === itc.nameEn) {
  1654. str = ele.name.replace(itc.nameEn, itc.nameZn);
  1655. str = str.substring(0, str.indexOf(" "));
  1656. mgtData.indicator.push(str);
  1657. }
  1658. });
  1659. });
  1660. }
  1661. this[dataKey] = mgtData;
  1662. }
  1663. },
  1664. changeAllMsgNewChart(datas, dataKey) {
  1665. if (datas && datas.data) {
  1666. let strrt = dataKey.split("Data")[0] + "Str";
  1667. let strLen = dataKey.split("Data")[0] + "Len";
  1668. let strxaisx = dataKey.split("Data")[0] + "xaisx";
  1669. this[strrt] = datas.data.jfpl || "";
  1670. this[strxaisx].data = [];
  1671. this[strLen] = [];
  1672. this[dataKey] = [];
  1673. let lengedSer = [];
  1674. let series = [];
  1675. let objsxArrAll = [];
  1676. if (datas.data.data.length > 0) {
  1677. datas.data.data.forEach((item) => {
  1678. let str = item.name.substring(
  1679. item.name.indexOf(" ") + 1,
  1680. item.name.length
  1681. );
  1682. if (lengedSer.indexOf(str) === -1) {
  1683. lengedSer.push(str);
  1684. }
  1685. });
  1686. for (let i = 0; i < lengedSer.length; i++) {
  1687. let ia = lengedSer[i];
  1688. let objsxArr = [];
  1689. let objsxArrObj = {
  1690. name: "",
  1691. data: [],
  1692. };
  1693. for (let j = 0; j < datas.data.data.length; j++) {
  1694. let ic = datas.data.data[j];
  1695. let objsx = {
  1696. fx: "",
  1697. data: "",
  1698. };
  1699. objsx.fx = ic.name.substring(0, ic.name.indexOf(" "));
  1700. if (ic.name.indexOf(ia) > 0) {
  1701. objsx.data = ic.data1;
  1702. } else {
  1703. objsx.data = 0;
  1704. }
  1705. objsxArr.push(objsx);
  1706. }
  1707. objsxArrObj.name = ia;
  1708. objsxArrObj.data = objsxArr;
  1709. objsxArrAll.push(objsxArrObj);
  1710. }
  1711. objsxArrAll.forEach((iiv, index) => {
  1712. let barObj = {
  1713. type: "bar",
  1714. data: [],
  1715. coordinateSystem: "polar",
  1716. name: iiv.name,
  1717. stack: "a",
  1718. emphasis: {
  1719. focus: "series",
  1720. },
  1721. };
  1722. if (index === 0) {
  1723. iiv.data.forEach((iu) => {
  1724. this[strxaisx].data.push(iu.fx);
  1725. });
  1726. }
  1727. iiv.data.forEach((iu) => {
  1728. barObj.data.push(iu.data);
  1729. });
  1730. series.push(barObj);
  1731. });
  1732. } else {
  1733. lengedSer = [];
  1734. series = [];
  1735. }
  1736. this[strLen] = lengedSer;
  1737. this[dataKey] = series;
  1738. }
  1739. },
  1740. // tab5 - 获取饼图
  1741. async getPieChart(subUrl, type, dataKey) {
  1742. let that = this;
  1743. let params = {
  1744. url: subUrl,
  1745. wtId: that.wtId,
  1746. recorddate: that.recorddate,
  1747. type: type,
  1748. };
  1749. const { data: datas } = await getApiComPie(params);
  1750. // const datas = await request({
  1751. // method: "GET",
  1752. // url: subUrl + `?recorddate=${params.recorddate}&wtId=${params.wtId}&type=${params.type}`
  1753. // })
  1754. // if (datas && datas.data.length>0) {
  1755. // let pieChart = [];
  1756. // datas.data.forEach((ele) => {
  1757. // pieChart.push({
  1758. // name: ele.name,
  1759. // value: ele.value2,
  1760. // unit: "(m/s)",
  1761. // });
  1762. // });
  1763. // that[dataKey] = pieChart;
  1764. // }
  1765. if (datas && datas.data.length > 0) {
  1766. let series = [];
  1767. let color1 = [
  1768. "#da0d68",
  1769. "#da1d23",
  1770. "#ebb40f",
  1771. "#187a2f",
  1772. "#0aa3b5",
  1773. "#c94930",
  1774. "#ad213e",
  1775. ];
  1776. let color2 = [
  1777. "#cc7b6a",
  1778. "#db646a",
  1779. "#80a89d",
  1780. "#794752",
  1781. "#7a9bae",
  1782. "#039fb8",
  1783. "#5e777b",
  1784. ];
  1785. let color3 = [
  1786. "#62aa3c",
  1787. "#03a653",
  1788. "#038549",
  1789. "#28b44b",
  1790. "#a3a830",
  1791. "#7ac141",
  1792. "#a2bb2b",
  1793. ];
  1794. let color4 = [
  1795. "#e65832",
  1796. "#da1d23",
  1797. "#4b55ae",
  1798. "#3aa255",
  1799. "#0aa3b5",
  1800. "#1c99ff",
  1801. "#ebb40f",
  1802. ];
  1803. datas.data.forEach((ele, idx) => {
  1804. series.push({ name: ele.name, value: ele.value2 });
  1805. });
  1806. that[dataKey] = series;
  1807. }
  1808. },
  1809. // 切换tab
  1810. tabSelect(index) {
  1811. if (this.tabIndex == 2) {
  1812. this.hisSubid = this.wpId;
  1813. } else {
  1814. this.hisWpid = this.wpId;
  1815. }
  1816. // if (index == 2) {
  1817. // this.wpId = this.hisSubid ? this.hisSubid : this.cftlist[0].id;
  1818. // } else {
  1819. // this.wpId = this.hisWpid ? this.hisWpid : this.wpArray[0].id;
  1820. // }
  1821. this.tabIndex = index;
  1822. this.search();
  1823. },
  1824. // 搜 索
  1825. search() {
  1826. if (this.tabIndex === 0) {
  1827. this.getLostChartData();
  1828. this.getPowerChartData();
  1829. this.getWarnTableData();
  1830. this.getStopData();
  1831. this.getXdData();
  1832. } else if (this.tabIndex === 1) {
  1833. this.getWarnTableData();
  1834. this.getStopData();
  1835. this.getDayPowerInfo();
  1836. this.getMonthWarnRecord();
  1837. this.getPowerLineChartData();
  1838. this.getWindResources();
  1839. } else if (this.tabIndex === 2) {
  1840. const xhrParam = { wpId: this.wpId, recorddate: this.recorddate };
  1841. this.getMgt(`/goodness/wprzdfs`, xhrParam, "rzdfsData", "wp");
  1842. this.getMgt(`/goodness/wpyzdfs`, xhrParam, "yzdfsData", "wp");
  1843. this.getMgt(`/goodness/wpnzdfs`, xhrParam, "nzdfsData", "wp");
  1844. this.getMgt(`/goodness/wprfxpl`, xhrParam, "rfxplData", "wp");
  1845. this.getMgt(`/goodness/wpyfxpl`, xhrParam, "yfxplData", "wp");
  1846. this.getMgt(`/goodness/wpnfxpl`, xhrParam, "nfxplData", "wp");
  1847. } else if (this.tabIndex === 3) {
  1848. const xhrParam = { wtId: this.wtId, recorddate: this.recorddate };
  1849. this.getMgt(`/goodness/wtrzdfs`, xhrParam, "rzdfsData", "wt");
  1850. this.getMgt(`/goodness/wtyzdfs`, xhrParam, "yzdfsData", "wt");
  1851. this.getMgt(`/goodness/wtnzdfs`, xhrParam, "nzdfsData", "wt");
  1852. this.getMgt(`/goodness/wtrfxpl`, xhrParam, "rfxplData", "wt");
  1853. this.getMgt(`/goodness/wtyfxpl`, xhrParam, "yfxplData", "wt");
  1854. this.getMgt(`/goodness/wtnfxpl`, xhrParam, "nfxplData", "wt");
  1855. } else if (this.tabIndex === 4) {
  1856. this.getPieChart(`/goodness/pieChart`, "1", "dayWindPieData");
  1857. this.getPieChart(`/goodness/pieChart`, "2", "monthWindPieData");
  1858. this.getPieChart(`/goodness/pieChart`, "3", "yearWindPieData");
  1859. this.getPieChart(`/goodness/pieChart`, "4", "dayStopPieData");
  1860. this.getPieChart(`/goodness/pieChart`, "5", "monthStopPieData");
  1861. this.getPieChart(`/goodness/pieChart`, "6", "yearStopPieData");
  1862. }
  1863. },
  1864. },
  1865. };
  1866. </script>
  1867. <style lang="less" scoped>
  1868. .windDetailWidth {
  1869. width: calc(100%-50px);
  1870. margin-left: 50px;
  1871. }
  1872. .windDetail {
  1873. height: 100%;
  1874. .action-bar {
  1875. display: flex;
  1876. padding: 10px 0 20px 0;
  1877. .selections {
  1878. flex: 1 0 auto;
  1879. display: flex;
  1880. .selections_btn {
  1881. flex: 0 0 164px;
  1882. text-align: center;
  1883. height: 33px;
  1884. line-height: 33px;
  1885. margin-right: 8px;
  1886. color: #b9b9b9;
  1887. font-size: 1.296vh;
  1888. background: fade(#606769, 20);
  1889. border: 1px solid fade(#606769, 20);
  1890. border-radius: 20px;
  1891. &:hover,
  1892. &.active {
  1893. background: rgba(5, 187, 76, 0.6);
  1894. // border: 1px solid #0046c7;
  1895. color: #fff;
  1896. cursor: pointer;
  1897. }
  1898. }
  1899. }
  1900. .windDetailseach {
  1901. display: flex;
  1902. .query-items {
  1903. flex: 0 0 auto;
  1904. display: flex;
  1905. align-items: center;
  1906. .query-item {
  1907. flex: 0 0 auto;
  1908. display: flex;
  1909. align-items: center;
  1910. .label {
  1911. color: #fff;
  1912. }
  1913. }
  1914. }
  1915. .query-actions {
  1916. margin-left: 5px;
  1917. .buttons {
  1918. background-color: rgba(5, 187, 76, 0.2);
  1919. border: 1px solid #3b6c53;
  1920. color: #b3b3b3;
  1921. font-size: 14px;
  1922. &:hover,
  1923. &.active {
  1924. background-color: rgba(5, 187, 76, 0.5);
  1925. color: #ffffff;
  1926. }
  1927. }
  1928. }
  1929. }
  1930. }
  1931. .tabsev {
  1932. height: calc(100% - 55px);
  1933. }
  1934. .outline {
  1935. outline: 1px solid fade(#606769, 50);
  1936. }
  1937. .TabOne {
  1938. .TabOne_topChart {
  1939. height: calc((100% - 260px) / 2);
  1940. margin-bottom: 10px;
  1941. }
  1942. .TabOne_centerChart {
  1943. margin-bottom: 10px;
  1944. height: calc((100% - 260px) / 2);
  1945. }
  1946. .table-info {
  1947. display: flex;
  1948. height: 260px;
  1949. .table-panel {
  1950. flex: 1 0 calc(100% / 3 - 8px);
  1951. outline: 1px solid fade(#606769, 50);
  1952. height: 100%;
  1953. & + .table-panel {
  1954. margin-left: 8px;
  1955. }
  1956. }
  1957. }
  1958. }
  1959. .tab-2 {
  1960. .power-info {
  1961. display: flex;
  1962. flex-wrap: wrap;
  1963. height: 100%;
  1964. color: #05bb4c;
  1965. &.month-1{
  1966. justify-content: flex-start;
  1967. .info-item {
  1968. margin-right: 8px;
  1969. }
  1970. }
  1971. &.month-3 {
  1972. justify-content: space-between;
  1973. .info-item {
  1974. height: calc((100% - 8px * 4) / 5);
  1975. line-height: calc((100% - 8px * 4) / 5);
  1976. flex: 0 0 calc(100% / 3 - 6px);
  1977. &:nth-child(-n + 3) {
  1978. margin-top: 0px;
  1979. }
  1980. }
  1981. }
  1982. &.month-2 {
  1983. justify-content: space-between;
  1984. .info-item {
  1985. flex: 0 0 calc(100% / 2 - 4px);
  1986. height: calc(100% - 8px);
  1987. &:nth-child(-n + 9) {
  1988. margin-top: 5px;
  1989. }
  1990. &:nth-child(-n + 2) {
  1991. margin-top: 0px;
  1992. }
  1993. }
  1994. }
  1995. .info-item {
  1996. display: flex;
  1997. align-items: center;
  1998. flex: 0 0 calc(100% / 5 - 8px);
  1999. background: fade(#606769, 20);
  2000. height: calc((100% - 8px * 3) / 4);
  2001. line-height: calc((100% - 8px * 3) / 4);
  2002. &:nth-child(-n + 5) {
  2003. margin-top: 0px;
  2004. }
  2005. .text {
  2006. font-size: 12px;
  2007. flex: 0 0 110px;
  2008. text-align: right;
  2009. margin-right: 24px;
  2010. color: #fff;
  2011. }
  2012. .value {
  2013. font-size: 16px;
  2014. color: #05bb4c;
  2015. }
  2016. }
  2017. }
  2018. .power-infoss{
  2019. display: flex;
  2020. flex-wrap: wrap;
  2021. justify-content: space-between;
  2022. height: calc(100% - 230px);
  2023. color: #05bb4c;
  2024. }
  2025. .month-info {
  2026. display: flex;
  2027. height: calc(100% - 270px - 297px - 20px);
  2028. .month-info-left {
  2029. height: 100%;
  2030. flex: 0 0 705px;
  2031. margin-right: 10px;
  2032. }
  2033. .month-info-right {
  2034. height: 100%;
  2035. flex: 1 0 0;
  2036. }
  2037. }
  2038. .radar-panel {
  2039. height: 220px;
  2040. .wind-info {
  2041. height: 100%;
  2042. }
  2043. }
  2044. .table-panel {
  2045. margin-bottom: 10px;
  2046. height: calc((100% - 10px * 2) / 3);
  2047. &:nth-child(3) {
  2048. margin-bottom: 0px;
  2049. }
  2050. }
  2051. .wind-info {
  2052. display: flex;
  2053. .legend {
  2054. font-size: 12px;
  2055. height: 20px;
  2056. display: flex;
  2057. align-items: center;
  2058. justify-content: center;
  2059. margin-top: 32px;
  2060. margin-bottom: 16px;
  2061. .dot {
  2062. width: 7px;
  2063. height: 7px;
  2064. background: #05bb4c;
  2065. display: inline-block;
  2066. margin-right: 8px;
  2067. }
  2068. }
  2069. }
  2070. }
  2071. .tab-3,
  2072. .tab-4 {
  2073. .tabColSty {
  2074. height: 100%;
  2075. .radar-panel {
  2076. height: 100%;
  2077. }
  2078. }
  2079. .wind-info {
  2080. position: relative;
  2081. height: 100%;
  2082. .legend {
  2083. position: absolute;
  2084. left: 500px;
  2085. top: 0;
  2086. font-size: 12px;
  2087. flex: 0 0 140px;
  2088. height: 20px;
  2089. display: flex;
  2090. align-items: center;
  2091. justify-content: center;
  2092. margin-top: 32px;
  2093. margin-bottom: 16px;
  2094. .dot {
  2095. width: 7px;
  2096. height: 7px;
  2097. background: #05bb4c;
  2098. display: inline-block;
  2099. margin-right: 8px;
  2100. }
  2101. .titSty {
  2102. color: #fff;
  2103. white-space: nowrap;
  2104. }
  2105. }
  2106. }
  2107. }
  2108. .tab-5 {
  2109. .panel-body {
  2110. padding: 16px;
  2111. }
  2112. }
  2113. }
  2114. </style>