index.vue 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199
  1. <template>
  2. <headerNav @typeFlag="typeFlag" :isAll="true" />
  3. <div
  4. :class="$store.state.themeName === 'dark' ? 'dark-matrix' : 'light-matrix'"
  5. >
  6. <el-header>
  7. <el-row>
  8. <el-col :span="12" v-if="activeTab == 'fc'">
  9. <div class="fd-header1">
  10. <el-col class="fd-img">
  11. <div class="imgs">
  12. <img src="@assets/imgs/downF.png" />
  13. <img
  14. width="30"
  15. height="26"
  16. src="@assets/imgs/windup.png"
  17. class="qty_imgs"
  18. />
  19. </div>
  20. <div class="titles" @click="changeShow('all')">
  21. <div>接入风机</div>
  22. <p style="text-align: center; cursor: pointer">
  23. {{ sourceMap.jrts || "0" }}
  24. </p>
  25. </div>
  26. </el-col>
  27. <el-col @click="changeShow(0)" style="cursor: pointer">
  28. <div class="active-b" :class="{ active_bor: fillFjzt == 0 }">
  29. <p class="left_p"></p>
  30. <p class="right_p"></p>
  31. <div class="yuan">
  32. <p><span class="circle"></span></p>
  33. <p>待机</p>
  34. </div>
  35. <div>
  36. {{ sourceMap.djts || "0" }}
  37. </div>
  38. </div>
  39. </el-col>
  40. <el-col @click="changeShow(1)" style="cursor: pointer">
  41. <div class="active-b" :class="{ active_bor: fillFjzt == 1 }">
  42. <p class="left_p"></p>
  43. <p class="right_p"></p>
  44. <div class="yuan">
  45. <p><span class="circle"></span></p>
  46. <p>并网</p>
  47. </div>
  48. <div>
  49. {{ sourceMap.bwts || "0" }}
  50. </div>
  51. </div>
  52. </el-col>
  53. <el-col @click="changeShow(2)" style="cursor: pointer">
  54. <div class="active-b" :class="{ active_bor: fillFjzt == 2 }">
  55. <p class="left_p"></p>
  56. <p class="right_p"></p>
  57. <div class="yuan">
  58. <p><span class="circle"></span></p>
  59. <p>故障</p>
  60. </div>
  61. <div>
  62. {{ sourceMap.gzts || "0" }}
  63. </div>
  64. </div>
  65. </el-col>
  66. <el-col @click="changeShow(3)" style="cursor: pointer">
  67. <div class="active-b" :class="{ active_bor: fillFjzt == 3 }">
  68. <p class="left_p"></p>
  69. <p class="right_p"></p>
  70. <div class="yuan">
  71. <p><span class="circle"></span></p>
  72. <p>检修</p>
  73. </div>
  74. <div>
  75. {{ sourceMap.jxts || "0" }}
  76. </div>
  77. </div>
  78. </el-col>
  79. <el-col @click="changeShow(4)" style="cursor: pointer">
  80. <div class="active-b" :class="{ active_bor: fillFjzt == 4 }">
  81. <p class="left_p"></p>
  82. <p class="right_p"></p>
  83. <div class="yuan">
  84. <p><span class="circle"></span></p>
  85. <p>限电</p>
  86. </div>
  87. <div>
  88. {{ sourceMap.xdts || "0" }}
  89. </div>
  90. </div>
  91. </el-col>
  92. <el-col @click="changeShow(5)" style="cursor: pointer">
  93. <div class="active-b" :class="{ active_bor: fillFjzt == 5 }">
  94. <p class="left_p"></p>
  95. <p class="right_p"></p>
  96. <div class="yuan">
  97. <p><span class="circle"></span></p>
  98. <p>受累</p>
  99. </div>
  100. <div>
  101. {{ sourceMap.slts || "0" }}
  102. </div>
  103. </div>
  104. </el-col>
  105. <el-col @click="changeShow(6)" style="cursor: pointer">
  106. <div class="active-b" :class="{ active_bor: fillFjzt == 6 }">
  107. <p class="left_p"></p>
  108. <p class="right_p"></p>
  109. <div class="yuan">
  110. <p><span class="circle"></span></p>
  111. <p>离线</p>
  112. </div>
  113. <div>
  114. {{ sourceMap.lxts || "0" }}
  115. </div>
  116. </div>
  117. </el-col>
  118. </div>
  119. </el-col>
  120. <el-col :span="12" v-if="activeTab == 'gf'">
  121. <div class="fd-header2">
  122. <el-col class="gf-img">
  123. <div class="imgs">
  124. <img src="@assets/imgs/downg.png" />
  125. <img src="@assets/imgs/ptyup.png" class="qty_img" />
  126. </div>
  127. <div class="titles">
  128. <div>接入光伏</div>
  129. <p
  130. style="text-align: center; cursor: pointer"
  131. @click="changeShow('all')"
  132. >
  133. {{ sourceMap.gfjrts || "0" }}
  134. </p>
  135. </div>
  136. </el-col>
  137. <el-col @click="changeShow(0)" style="cursor: pointer">
  138. <div class="active-b" :class="{ active_bor: fillFjzt == 0 }">
  139. <p class="left_p"></p>
  140. <p class="right_p"></p>
  141. <div class="yuan">
  142. <p><span class="circle"></span></p>
  143. <p>待机</p>
  144. </div>
  145. <div>
  146. {{ sourceMap.gfdjts || "0" }}
  147. </div>
  148. </div>
  149. </el-col>
  150. <el-col @click="changeShow(1)" style="cursor: pointer">
  151. <div class="active-b" :class="{ active_bor: fillFjzt == 1 }">
  152. <p class="left_p"></p>
  153. <p class="right_p"></p>
  154. <div class="yuan">
  155. <p><span class="circle"></span></p>
  156. <p>并网</p>
  157. </div>
  158. <div>
  159. {{ sourceMap.gfbwts || "0" }}
  160. </div>
  161. </div>
  162. </el-col>
  163. <el-col @click="changeShow(2)" style="cursor: pointer">
  164. <div class="active-b" :class="{ active_bor: fillFjzt == 2 }">
  165. <p class="left_p"></p>
  166. <p class="right_p"></p>
  167. <div class="yuan">
  168. <p><span class="circle"></span></p>
  169. <p>故障</p>
  170. </div>
  171. <div>
  172. {{ sourceMap.gfgzts || "0" }}
  173. </div>
  174. </div>
  175. </el-col>
  176. <el-col @click="changeShow(3)" style="cursor: pointer">
  177. <div class="active-b" :class="{ active_bor: fillFjzt == 3 }">
  178. <p class="left_p"></p>
  179. <p class="right_p"></p>
  180. <div class="yuan">
  181. <p><span class="circle"></span></p>
  182. <p>检修</p>
  183. </div>
  184. <div>
  185. {{ sourceMap.gfwhts || "0" }}
  186. </div>
  187. </div>
  188. </el-col>
  189. <el-col @click="changeShow(4)" style="cursor: pointer">
  190. <div class="active-b" :class="{ active_bor: fillFjzt == 4 }">
  191. <p class="left_p"></p>
  192. <p class="right_p"></p>
  193. <div class="yuan">
  194. <p><span class="circle"></span></p>
  195. <p>限电</p>
  196. </div>
  197. <div>
  198. {{ sourceMap.gfxdts || "0" }}
  199. </div>
  200. </div>
  201. </el-col>
  202. <el-col @click="changeShow(5)" style="cursor: pointer">
  203. <div class="active-b" :class="{ active_bor: fillFjzt == 5 }">
  204. <p class="left_p"></p>
  205. <p class="right_p"></p>
  206. <div class="yuan">
  207. <p><span class="circle"></span></p>
  208. <p>受累</p>
  209. </div>
  210. <div>
  211. {{ sourceMap.gfslts || "0" }}
  212. </div>
  213. </div>
  214. </el-col>
  215. <el-col @click="changeShow(6)" style="cursor: pointer">
  216. <div class="active-b" :class="{ active_bor: fillFjzt == 6 }">
  217. <p class="left_p"></p>
  218. <p class="right_p"></p>
  219. <div class="yuan">
  220. <p><span class="circle"></span></p>
  221. <p>离线</p>
  222. </div>
  223. <div>
  224. {{ sourceMap.gflxts || "0" }}
  225. </div>
  226. </div>
  227. </el-col>
  228. </div>
  229. </el-col>
  230. </el-row>
  231. </el-header>
  232. <el-scrollbar style="height: calc(100% - 62px)">
  233. <div
  234. class="wind_power_plant"
  235. v-for="(item, index) in showMatrixList"
  236. :key="index"
  237. >
  238. <el-row class="data_statistics">
  239. <el-col>
  240. <i
  241. v-if="item.czlx == -1"
  242. class="svg-icon svg-icon-sm svg-icon-green"
  243. >
  244. <SvgIcon svgid="svg-wind-site"></SvgIcon>
  245. </i>
  246. <i v-else class="svg-icon svg-icon-sm svg-icon-orange">
  247. <SvgIcon svgid="svg-photovoltaic"></SvgIcon>
  248. </i>
  249. <span
  250. class="station-name"
  251. :style="item.czlx == -1 ? '' : 'color:#ff8100'"
  252. >{{ item.wpname }}</span
  253. >
  254. </el-col>
  255. <el-col>
  256. 接入台数<span>{{
  257. item.jrts ? item.jrts.toFixed(0) : "0"
  258. }}</span></el-col
  259. >
  260. <el-col>
  261. 待机台数<span>{{
  262. item.djts ? item.djts.toFixed(0) : "0"
  263. }}</span></el-col
  264. >
  265. <el-col>
  266. 并网台数<span>{{
  267. item.bwts ? item.bwts.toFixed(0) : "0"
  268. }}</span></el-col
  269. >
  270. <el-col>
  271. 故障台数<span>{{
  272. item.gzts ? item.gzts.toFixed(0) : "0"
  273. }}</span></el-col
  274. >
  275. <el-col>
  276. 检修台数<span>{{
  277. item.jxts ? item.jxts.toFixed(0) : "0"
  278. }}</span></el-col
  279. >
  280. <el-col>
  281. 限电台数<span>{{
  282. item.xdts ? item.xdts.toFixed(0) : "0"
  283. }}</span></el-col
  284. >
  285. <el-col>
  286. 受累台数<span>{{
  287. item.slts ? item.slts.toFixed(0) : "0"
  288. }}</span></el-col
  289. >
  290. <el-col>
  291. 离线台数<span>{{
  292. item.lxts ? item.lxts.toFixed(0) : "0"
  293. }}</span></el-col
  294. >
  295. <el-col
  296. style="cursor: pointer"
  297. v-if="item.czlx == -1"
  298. @click="handleIndicatorClick(item.czlx, item.wpid)"
  299. >
  300. 风速<span>{{ item.spped ? item.spped.toFixed(2) : "0.00" }}</span>
  301. </el-col>
  302. <el-col
  303. style="cursor: pointer"
  304. v-else
  305. @click="handleIndicatorClick(item.czlx, item.wpid)"
  306. >
  307. 光照强度<span>{{
  308. item.spped ? item.spped.toFixed(2) : "0.00"
  309. }}</span></el-col
  310. >
  311. <el-col
  312. style="cursor: pointer"
  313. @click="handleIndicatorClick(item.czlx, item.wpid)"
  314. >
  315. 预测功率<span>{{
  316. item.ycgl ? item.ycgl.toFixed(2) : "0.00"
  317. }}</span></el-col
  318. >
  319. <el-col
  320. v-if="item.czlx == -1"
  321. style="cursor: pointer"
  322. @click="handleIndicatorClick(item.czlx, item.wpid)"
  323. >
  324. 保证功率<span>{{
  325. item.bzgl ? (item.bzgl / 1000).toFixed(2) : "0.00"
  326. }}</span></el-col
  327. >
  328. <el-col
  329. style="cursor: pointer"
  330. v-if="item.czlx == -2"
  331. @click="handleIndicatorClick(item.czlx, item.wpid)"
  332. >
  333. 理论功率<span>{{
  334. item.llgl ? (item.llgl / 1000).toFixed(2) : "0.00"
  335. }}</span></el-col
  336. >
  337. <el-col
  338. style="cursor: pointer"
  339. @click="handleIndicatorClick(item.czlx, item.wpid)"
  340. >
  341. 实际功率<span>{{
  342. item.sjgl ? (item.sjgl / 1000).toFixed(2) : "0.00"
  343. }}</span></el-col
  344. >
  345. <!-- <el-col>
  346. AGC指令<span>{{
  347. item.agc ? item.agc.toFixed(2) : "0.00"
  348. }}</span></el-col
  349. >
  350. <el-col>
  351. 出线功率<span>{{
  352. item.cxgl ? (item.cxgl / 1000).toFixed(2) : "0.00"
  353. }}</span></el-col
  354. > -->
  355. </el-row>
  356. <div class="data_views_text" v-for="(value, key, index) in item.wtlist" :key="index">
  357. <div class="textsx">{{key}}</div>
  358. <div class="data_views" :class="{ active_vie: value.length == 0 }">
  359. <div
  360. v-for="(subItem, index) in value"
  361. :key="index"
  362. @click="goDetails(subItem, item.czlx, item.wpid)"
  363. >
  364. <div class="subItemstatus" :class="getColor(subItem?.status)">
  365. <div style="align-items: center;display: flex;width: 40px;padding: 0 2px;">{{ subItem.wtname }}</div>
  366. <div style="height: 40px">
  367. <div style="height: 20px;align-items: center;display: flex;">
  368. <span style="width: 35px;display: inline-block;text-align: end;">{{ subItem.czlx }}</span>
  369. <span style="width: 30px;display: inline-block;text-align: end;">m/s</span>
  370. </div>
  371. <div style="height: 20px;align-items: center;display: flex;">
  372. <span style="width: 35px;display: inline-block;text-align: end;">{{ subItem.czlx }}</span>
  373. <span style="width: 30px;display: inline-block;text-align: end;">MW</span>
  374. </div>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. </div>
  380. </div>
  381. </el-scrollbar>
  382. </div>
  383. <el-dialog
  384. :fullscreen="true"
  385. width="90%"
  386. top="40px"
  387. v-model="displayMatrix"
  388. :show-close="true"
  389. destroy-on-close
  390. >
  391. <template #title>
  392. <div class="dialog-title">
  393. <div class="title">设备详情</div>
  394. </div>
  395. </template>
  396. <div class="dialog-body" style="height: 900px">
  397. <img class="dialog-img" src="@assets/imgs/dialog.png" />
  398. <windDetail
  399. v-if="wtType == -1"
  400. :wind="wind"
  401. :wtType="wtType"
  402. :flag="flag"
  403. ></windDetail>
  404. <lightDetail
  405. v-if="wtType == -2"
  406. :wind="wind"
  407. :wtType="wtType"
  408. :flag="flag"
  409. ></lightDetail>
  410. </div>
  411. </el-dialog>
  412. <qushi-dialog ref="child" :chartName="chartName"></qushi-dialog>
  413. </template>
  414. <script>
  415. import qushiDialog from "@/components/qushi/qushiDialog.vue";
  416. import windDetail from "@/components/windDetail/index";
  417. import lightDetail from "@/components/lightDetial/index.vue";
  418. import { deepClone, chunkArray } from "@/utills/func.js";
  419. import SvgIcon from "@com/coms/icon/svg-icon.vue";
  420. import api from "@api/cockpit/matrix/index.js";
  421. import { setInterval, clearInterval } from "timers";
  422. import HeaderNav from "@/components/headerNavSta/index.vue";
  423. import dataJson from "./dataJson.json"
  424. export default {
  425. // 名称
  426. name: "LightMatrix", //基础矩阵
  427. // 使用组件
  428. components: {
  429. HeaderNav,
  430. qushiDialog,
  431. SvgIcon,
  432. windDetail,
  433. lightDetail,
  434. },
  435. // 数据
  436. data() {
  437. return {
  438. loading: false,
  439. timmer: null, // 计时器
  440. sourceMap: {}, // 核心数据
  441. showMatrixList: [],
  442. fillCategory: null, // 过滤条件
  443. fillFjzt: "all", // 过滤条件
  444. displayMatrix: false, //风机详情
  445. wind: {},
  446. wtType: -1,
  447. flag: false,
  448. gfdetialDisplay: false,
  449. stationId: "",
  450. windId: "",
  451. contrastDisplay: false,
  452. chooseList: [],
  453. activeTab: "fc", //全部 风电 光伏
  454. enterpriseIndex: "all",
  455. tabIndex: -1,
  456. // wp指标
  457. stse: [
  458. {
  459. statiomName: "风速",
  460. stse: "",
  461. sts: "SSPJFS",
  462. },
  463. {
  464. statiomName: "预测功率",
  465. stse: "",
  466. sts: "FCFGDQDT0001",
  467. },
  468. {
  469. statiomName: "保证功率",
  470. stse: "",
  471. sts: "SSZBZGL",
  472. },
  473. // {
  474. // statiomName: "理论功率",
  475. // stse: "",
  476. // sts: "SSZNHGLZS",
  477. // },
  478. {
  479. statiomName: "实际功率",
  480. stse: "",
  481. sts: "SSZGL",
  482. },
  483. ],
  484. chartName: "对比曲线",
  485. };
  486. },
  487. // 函数
  488. methods: {
  489. deepClone,
  490. chunkArray,
  491. typeFlag(activeTab, enterpriseIndex) {
  492. this.activeTab = activeTab;
  493. this.tabIndex = activeTab == "all" ? 0 : activeTab == "fc" ? -1 : -2;
  494. this.enterpriseIndex = enterpriseIndex;
  495. this.requestData(true);
  496. clearInterval(this.timmer);
  497. this.timmer = null;
  498. this.timmer = setInterval(() => {
  499. this.requestData();
  500. }, 5000);
  501. },
  502. // 根据风机状态码返回对应 class
  503. getColor(fjzt) {
  504. switch (fjzt) {
  505. case 0:
  506. return "blue";
  507. case 1:
  508. return "green";
  509. case 2:
  510. return "red";
  511. case 3:
  512. return "orange";
  513. case 4:
  514. return "pink";
  515. case 5:
  516. return "write";
  517. case 6:
  518. return "gray";
  519. }
  520. },
  521. // 切换显示种类
  522. changeShow(fjzt) {
  523. // 风机状态
  524. this.fillFjzt = fjzt;
  525. let showMatrixList = this.deepClone(this.sourceMap.powerVos);
  526. if (fjzt !== "all") {
  527. // 展示数据过滤
  528. this.showMatrixList = showMatrixList?.map(function (item) {
  529. item.wtlist = item.wtlist.filter(function (y) {
  530. return y.status === fjzt;
  531. });
  532. return item;
  533. });
  534. } else {
  535. this.showMatrixList = showMatrixList;
  536. }
  537. },
  538. // 请求服务
  539. requestData(first) {
  540. if (first) {
  541. this.BASE.showLoading();
  542. }
  543. api
  544. .matrixPush({
  545. company:
  546. this.enterpriseIndex == "all"
  547. ? "0"
  548. : this.enterpriseIndex.toString(),
  549. type: this.tabIndex.toString(),
  550. })
  551. .then((res) => {
  552. this.BASE.closeLoading();
  553. if (Object.values(res.data.data).length) {
  554. this.sourceMap = res.data.data;
  555. if (first) {
  556. const tempWtArray = this.chunkArray(this.sourceMap.powerVos, 3);
  557. this.showMatrixList = tempWtArray[0];
  558. for (let i = 1; i < tempWtArray.length; i++) {
  559. setTimeout(() => {
  560. this.showMatrixList.push(...tempWtArray[i]);
  561. }, 5);
  562. }
  563. } else {
  564. this.changeShow(this.fillFjzt);
  565. }
  566. // if (this.fillFjzt) {
  567. // this.changeShow(this.fillFjzt);
  568. // }
  569. } else {
  570. this.sourceMap = {};
  571. this.showMatrixList = [];
  572. }
  573. });
  574. },
  575. // 展示对比曲线
  576. handleIndicatorClick(czlx, wpid) {
  577. let y = this.deepClone(this.stse);
  578. if (czlx == "-2") {
  579. y[0].statiomName = "光照强度";
  580. y[0].sts = "SSPJGZD";
  581. y[2].statiomName = "理论功率";
  582. y[2].sts = "SSZNHGLZS";
  583. }
  584. this.$refs.child.openCurvDatas(y, 1, wpid);
  585. },
  586. // 查看风机详情
  587. goDetails(wt, type, wpid) {
  588. this.displayMatrix = true;
  589. this.wtType = -1;
  590. // this.wtType = type;
  591. this.$nextTick(() => {
  592. this.wind = { ...wt, wtType: type, wpid };
  593. this.flag = true;
  594. });
  595. },
  596. selectList(val) {
  597. val.forEach((item) => {
  598. this.handleChoose(item.id);
  599. });
  600. },
  601. handleChoose(value) {
  602. this.sourceMap.fjmap.forEach((val) => {
  603. val.forEach((item) => {
  604. if (item.wtId === value) {
  605. if (item.active) {
  606. let showIndex = null;
  607. this.chooseList.forEach((res, index) => {
  608. if (res.wtId === item.wtId) {
  609. showIndex = index;
  610. }
  611. });
  612. this.chooseList.splice(showIndex, 1);
  613. } else {
  614. this.chooseList.push(item);
  615. }
  616. item.active = !item.active;
  617. }
  618. });
  619. });
  620. },
  621. handleClick() {
  622. this.contrastDisplay = true;
  623. this.$refs.contrast.handleSearch(this.chooseList);
  624. },
  625. },
  626. created() {
  627. this.sourceMap = dataJson.sourceMapData
  628. this.showMatrixList = dataJson.showMatrixListdata
  629. dataJson.showMatrixListdata.forEach((it, index) =>{
  630. for(let i in it.wtlist) {
  631. it.wtlist[i] = new Array(35).fill({
  632. wtname: "1B01",
  633. // status: index === 2 ? 6 : index,
  634. status: i.indexOf("一") > -1 ? 1 : i.indexOf("二") > -1 ? 2 :
  635. i.indexOf("三") > -1 ? 3 : i.indexOf("四") > -1 ? 4 : i.indexOf("五") > -1 ? 5 : 1,
  636. czlx: 251,
  637. wpid: 5
  638. })
  639. }
  640. })
  641. let that = this;
  642. // that.$nextTick(() => {
  643. // // this.loading = true;
  644. // that.requestData(true);
  645. // that.timmer = setInterval(() => {
  646. // that.requestData();
  647. // }, 5000);
  648. // });
  649. },
  650. unmounted() {
  651. clearInterval(this.timmer);
  652. this.timmer = null;
  653. },
  654. };
  655. </script>
  656. <style lang="less" scoped>
  657. .dark-matrix {
  658. height: calc(100% - 59px);
  659. padding: 0 16px;
  660. display: flex;
  661. flex-direction: column;
  662. padding-bottom: 10px;
  663. p {
  664. margin: 0;
  665. }
  666. .el-header {
  667. height: 78px;
  668. // margin-top: 10px;
  669. background-color: rgba(0, 0, 0, 0.45);
  670. border-radius: 5px 5px 0 0;
  671. .el-row {
  672. align-items: center;
  673. height: 100%;
  674. .el-col {
  675. width: 40px;
  676. div {
  677. text-align: center;
  678. }
  679. .fd-header1,
  680. .fd-header2 {
  681. display: flex;
  682. position: relative;
  683. .el-col {
  684. flex: 1;
  685. display: flex;
  686. align-items: center;
  687. .active-b {
  688. border: 1px solid transparent;
  689. padding: 4px 10px;
  690. position: relative;
  691. .left_p {
  692. width: 12px;
  693. height: 12px;
  694. position: absolute;
  695. left: -1px;
  696. top: -1px;
  697. }
  698. .right_p {
  699. width: 12px;
  700. height: 12px;
  701. position: absolute;
  702. left: 61px;
  703. top: 45px;
  704. }
  705. .yuan {
  706. font-family: AgencyFB-Reg;
  707. line-height: 30px;
  708. display: flex;
  709. > p:first-of-type {
  710. width: 13px;
  711. height: 13px;
  712. border: 1px solid transparent;
  713. position: absolute;
  714. top: 9px;
  715. left: 10px;
  716. }
  717. > p:last-of-type {
  718. margin-left: 20px;
  719. }
  720. .circle {
  721. display: inline-block;
  722. width: 4px;
  723. height: 4px;
  724. vertical-align: middle;
  725. margin-right: 10px;
  726. position: absolute;
  727. top: 3.5px;
  728. left: 3px;
  729. }
  730. }
  731. }
  732. }
  733. .el-col.fd-img,
  734. .el-col.gf-img {
  735. flex: 1.5 0 auto;
  736. display: flex;
  737. color: #b3b3b3;
  738. align-items: none;
  739. // border: 0;
  740. // padding: 0;
  741. .imgs {
  742. margin-right: 20px;
  743. }
  744. .titles {
  745. display: flex;
  746. flex-direction: column;
  747. justify-content: center;
  748. align-items: center;
  749. font-size: 14px;
  750. p {
  751. font-size: 16px;
  752. margin-top: 5px;
  753. }
  754. }
  755. }
  756. .el-col.fd-img {
  757. .qty_imgs {
  758. position: absolute;
  759. left: 11px;
  760. top: 12px;
  761. animation: move 1s infinite linear;
  762. }
  763. @keyframes move {
  764. 0% {
  765. top: 12px;
  766. }
  767. 20% {
  768. top: 11px;
  769. }
  770. 40% {
  771. top: 10px;
  772. }
  773. 80% {
  774. top: 11px;
  775. }
  776. 100% {
  777. top: 12px;
  778. }
  779. }
  780. }
  781. // 待机
  782. .el-col:nth-child(2) {
  783. color: #1c99ff;
  784. .active_bor {
  785. border: 1px solid #1c99ff;
  786. .left_p {
  787. border-left: 1.5px solid #ffffff;
  788. border-top: 1.5px solid #ffffff;
  789. }
  790. .right_p {
  791. border-right: 1.5px solid #ffffff;
  792. border-bottom: 1.5px solid #ffffff;
  793. }
  794. div {
  795. > p:first-of-type {
  796. border: 1px solid #1c99ff !important;
  797. }
  798. }
  799. }
  800. .circle {
  801. background-color: #1c99ff;
  802. }
  803. }
  804. //并网
  805. .el-col:nth-child(3) {
  806. color: #05bb4c;
  807. .active_bor {
  808. border: 1px solid #05bb4c;
  809. .left_p {
  810. border-left: 1.5px solid #ffffff;
  811. border-top: 1.5px solid #ffffff;
  812. }
  813. .right_p {
  814. border-right: 1.5px solid #ffffff;
  815. border-bottom: 1.5px solid #ffffff;
  816. }
  817. div {
  818. > p:first-of-type {
  819. border: 1px solid #05bb4c !important;
  820. }
  821. }
  822. }
  823. .circle {
  824. background-color: #05bb4c;
  825. }
  826. }
  827. // 故障
  828. .el-col:nth-child(4) {
  829. color: #ba3237;
  830. .active_bor {
  831. border: 1px solid #ba3237;
  832. .left_p {
  833. border-left: 1.5px solid #ffffff;
  834. border-top: 1.5px solid #ffffff;
  835. }
  836. .right_p {
  837. border-right: 1.5px solid #ffffff;
  838. border-bottom: 1.5px solid #ffffff;
  839. }
  840. div {
  841. > p:first-of-type {
  842. border: 1px solid #ba3237 !important;
  843. }
  844. }
  845. }
  846. .circle {
  847. background-color: #ba3237;
  848. }
  849. }
  850. // 检修
  851. .el-col:nth-child(5) {
  852. color: #e17d24;
  853. .active_bor {
  854. border: 1px solid #e17d24;
  855. .left_p {
  856. border-left: 1.5px solid #ffffff;
  857. border-top: 1.5px solid #ffffff;
  858. }
  859. .right_p {
  860. border-right: 1.5px solid #ffffff;
  861. border-bottom: 1.5px solid #ffffff;
  862. }
  863. div {
  864. > p:first-of-type {
  865. border: 1px solid #e17d24 !important;
  866. }
  867. }
  868. }
  869. .circle {
  870. background-color: #e17d24;
  871. }
  872. }
  873. // 限电
  874. .el-col:nth-child(6) {
  875. color: #c530c8;
  876. .active_bor {
  877. border: 1px solid #c530c8;
  878. .left_p {
  879. border-left: 1.5px solid #ffffff;
  880. border-top: 1.5px solid #ffffff;
  881. }
  882. .right_p {
  883. border-right: 1.5px solid #ffffff;
  884. border-bottom: 1.5px solid #ffffff;
  885. }
  886. div {
  887. > p:first-of-type {
  888. border: 1px solid #c530c8 !important;
  889. }
  890. }
  891. }
  892. .circle {
  893. background-color: #c530c8;
  894. }
  895. }
  896. // 受累
  897. .el-col:nth-child(7) {
  898. color: rgba(255, 255, 255, 1);
  899. .active_bor {
  900. border: 1px solid rgba(255, 255, 255, 1);
  901. .left_p {
  902. border-left: 1.5px solid #ffffff;
  903. border-top: 1.5px solid #ffffff;
  904. }
  905. .right_p {
  906. border-right: 1.5px solid #ffffff;
  907. border-bottom: 1.5px solid #ffffff;
  908. }
  909. div {
  910. > p:first-of-type {
  911. border: 1px solid rgba(255, 255, 255, 1) !important;
  912. }
  913. }
  914. }
  915. .circle {
  916. background-color: rgba(255, 255, 255, 1);
  917. }
  918. }
  919. // 离线
  920. .el-col:nth-child(8) {
  921. color: #606769;
  922. .active_bor {
  923. border: 1px solid #606769;
  924. .left_p {
  925. border-left: 1.5px solid #ffffff;
  926. border-top: 1.5px solid #ffffff;
  927. }
  928. .right_p {
  929. border-right: 1.5px solid #ffffff;
  930. border-bottom: 1.5px solid #ffffff;
  931. }
  932. div {
  933. > p:first-of-type {
  934. border: 1px solid #606769 !important;
  935. }
  936. }
  937. }
  938. .circle {
  939. background-color: #606769;
  940. }
  941. }
  942. }
  943. .fd-header2 {
  944. .el-col.gf-img {
  945. .qty_img {
  946. position: absolute;
  947. left: 11px;
  948. top: 18px;
  949. animation: moves 1s infinite linear;
  950. }
  951. @keyframes moves {
  952. 0% {
  953. top: 18px;
  954. }
  955. 20% {
  956. top: 17px;
  957. }
  958. 40% {
  959. top: 16px;
  960. }
  961. 80% {
  962. top: 17px;
  963. }
  964. 100% {
  965. top: 18px;
  966. }
  967. }
  968. }
  969. }
  970. }
  971. }
  972. }
  973. .data_statistics {
  974. width: 100%;
  975. height: 32px;
  976. line-height: 32px;
  977. // background-color: rgba(0, 24, 68, 0.8);
  978. background-color: rgba(96, 103, 105, 0.4);
  979. padding: 0 12px;
  980. .icon-photovoltaic {
  981. color: #ff8100;
  982. }
  983. .el-col {
  984. height: 32px;
  985. }
  986. .el-col + .el-col {
  987. padding-left: 0;
  988. }
  989. .el-col:first-child {
  990. flex: 0 0 auto;
  991. margin-right: 10px;
  992. font-family: AgencyFB-Reg;
  993. color: #05bb4c;
  994. font-size: 14px;
  995. i {
  996. margin-right: 5px;
  997. font-size: 15px;
  998. position: relative;
  999. top: 3px;
  1000. }
  1001. }
  1002. .el-col:not(:first-child) {
  1003. flex: 1 0 auto;
  1004. color: #b3b3b3;
  1005. display: flex;
  1006. align-items: center;
  1007. span {
  1008. font-family: Arial;
  1009. color: #9ca5a8;
  1010. font-size: 12px;
  1011. // display: inline-block;
  1012. width: 45px;
  1013. text-align: left;
  1014. margin-left: 5px;
  1015. vertical-align: middle;
  1016. }
  1017. }
  1018. .el-col:nth-child(2) {
  1019. span {
  1020. color: #fff;
  1021. }
  1022. }
  1023. .el-col:nth-child(3) {
  1024. span {
  1025. color: #1c99ff;
  1026. }
  1027. }
  1028. .el-col:nth-child(4) {
  1029. span {
  1030. color: #05bb4c;
  1031. }
  1032. }
  1033. .el-col:nth-child(5) {
  1034. span {
  1035. color: #ba3237;
  1036. }
  1037. }
  1038. .el-col:nth-child(6) {
  1039. span {
  1040. color: #e17d24;
  1041. }
  1042. }
  1043. .el-col:nth-child(7) {
  1044. span {
  1045. color: #c530c8;
  1046. }
  1047. }
  1048. .el-col:nth-child(8) {
  1049. span {
  1050. color: #ffffff;
  1051. }
  1052. }
  1053. .el-col:nth-child(9) {
  1054. span {
  1055. color: #606769;
  1056. }
  1057. }
  1058. }
  1059. .data_views_text{
  1060. display: flex;
  1061. .textsx{
  1062. writing-mode: vertical-lr;
  1063. font-size: 14px;
  1064. letter-spacing: 5px;
  1065. text-align: center;
  1066. }
  1067. .data_views {
  1068. width: 99%;
  1069. padding: 5px 0;
  1070. display: grid;
  1071. justify-content: space-between;
  1072. grid-template-columns: repeat(auto-fill, 110px);
  1073. .subItemstatus {
  1074. cursor: pointer;
  1075. display: flex;
  1076. justify-content: space-around;
  1077. min-width: 110px;
  1078. // height: 30px;
  1079. // line-height: 30px;
  1080. text-align: center;
  1081. border: 1px solid #4b55ae;
  1082. color: #4b55ae;
  1083. border-radius: 2px;
  1084. margin-bottom: 3px;
  1085. margin-right: 4px;
  1086. font-size: 13px;
  1087. position: relative;
  1088. .lock {
  1089. width: 0;
  1090. height: 0;
  1091. border-top: 8px solid #fff;
  1092. border-right: 8px solid transparent;
  1093. position: absolute;
  1094. top: 0;
  1095. left: 0;
  1096. }
  1097. }
  1098. .card_hover {
  1099. background: #1a7ccd;
  1100. }
  1101. // 待机
  1102. .blue {
  1103. color: #1c99ff;
  1104. border-color: #1c99ff;
  1105. }
  1106. // 并网
  1107. .green {
  1108. color: #05bb4c;
  1109. border-color: #05bb4c;
  1110. }
  1111. // 限电
  1112. .pink {
  1113. color: #c530c8;
  1114. border-color: #c530c8;
  1115. }
  1116. // 故障
  1117. .red {
  1118. color: #fff;
  1119. border-color: #ba3237;
  1120. // background-color: #ba3237;
  1121. }
  1122. // 检修
  1123. .orange {
  1124. color: #e17d24;
  1125. border-color: #e17d24;
  1126. }
  1127. // 受累
  1128. .write {
  1129. color: #ffffff;
  1130. border-color: rgba(255, 255, 255, 1);
  1131. }
  1132. // 离线
  1133. .gray {
  1134. color: #a7a7a7;
  1135. border-color: #606769;
  1136. background-color: rgba(96, 103, 105, 0.2);
  1137. }
  1138. .line_ll {
  1139. color: #ffffff !important;
  1140. border-color: #606701 !important;
  1141. background-color: #606239 !important;
  1142. }
  1143. }
  1144. }
  1145. }
  1146. </style>