index.vue 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139
  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
  233. v-loading="loading"
  234. element-loading-background="rgba(4, 12, 11, 0.8)"
  235. element-loading-text="加载中..."
  236. style="height: calc(100% - 62px)"
  237. >
  238. <div
  239. class="wind_power_plant"
  240. v-for="(item, index) in showMatrixList"
  241. :key="index"
  242. >
  243. <el-row class="data_statistics">
  244. <el-col>
  245. <i
  246. v-if="item.czlx == -1"
  247. class="svg-icon svg-icon-sm svg-icon-green"
  248. >
  249. <SvgIcon svgid="svg-wind-site"></SvgIcon>
  250. </i>
  251. <i v-else class="svg-icon svg-icon-sm svg-icon-orange">
  252. <SvgIcon svgid="svg-photovoltaic"></SvgIcon>
  253. </i>
  254. <span
  255. class="station-name"
  256. :style="item.czlx == -1 ? '' : 'color:#ff8100'"
  257. >{{ item.wpname }}</span
  258. >
  259. </el-col>
  260. <el-col>
  261. 接入台数<span>{{
  262. item.jrts ? item.jrts.toFixed(0) : "0"
  263. }}</span></el-col
  264. >
  265. <el-col>
  266. 待机台数<span>{{
  267. item.djts ? item.djts.toFixed(0) : "0"
  268. }}</span></el-col
  269. >
  270. <el-col>
  271. 并网台数<span>{{
  272. item.bwts ? item.bwts.toFixed(0) : "0"
  273. }}</span></el-col
  274. >
  275. <el-col>
  276. 故障台数<span>{{
  277. item.gzts ? item.gzts.toFixed(0) : "0"
  278. }}</span></el-col
  279. >
  280. <el-col>
  281. 检修台数<span>{{
  282. item.jxts ? item.jxts.toFixed(0) : "0"
  283. }}</span></el-col
  284. >
  285. <el-col>
  286. 限电台数<span>{{
  287. item.xdts ? item.xdts.toFixed(0) : "0"
  288. }}</span></el-col
  289. >
  290. <el-col>
  291. 受累台数<span>{{
  292. item.slts ? item.slts.toFixed(0) : "0"
  293. }}</span></el-col
  294. >
  295. <el-col>
  296. 离线台数<span>{{
  297. item.lxts ? item.lxts.toFixed(0) : "0"
  298. }}</span></el-col
  299. >
  300. <el-col
  301. style="cursor: pointer"
  302. v-if="item.czlx == -1"
  303. @click="handleIndicatorClick(item.czlx, item.wpid)"
  304. >
  305. 风速<span>{{ item.spped ? item.spped.toFixed(2) : "0.00" }}</span>
  306. </el-col>
  307. <el-col
  308. style="cursor: pointer"
  309. v-else
  310. @click="handleIndicatorClick(item.czlx, item.wpid)"
  311. >
  312. 光照强度<span>{{
  313. item.spped ? item.spped.toFixed(2) : "0.00"
  314. }}</span></el-col
  315. >
  316. <el-col
  317. style="cursor: pointer"
  318. @click="handleIndicatorClick(item.czlx, item.wpid)"
  319. >
  320. 预测功率<span>{{
  321. item.ycgl ? (item.ycgl / 1000).toFixed(2) : "0.00"
  322. }}</span></el-col
  323. >
  324. <el-col
  325. style="cursor: pointer"
  326. @click="handleIndicatorClick(item.czlx, item.wpid)"
  327. >
  328. 保证功率<span>{{
  329. item.bzgl ? (item.bzgl / 1000).toFixed(2) : "0.00"
  330. }}</span></el-col
  331. >
  332. <!-- <el-col
  333. style="cursor: pointer"
  334. @click="handleIndicatorClick(item.czlx, item.wpid)"
  335. >
  336. 理论功率<span>{{
  337. item.llgl ? (item.llgl / 1000).toFixed(2) : "0.00"
  338. }}</span></el-col
  339. > -->
  340. <el-col
  341. style="cursor: pointer"
  342. @click="handleIndicatorClick(item.czlx, item.wpid)"
  343. >
  344. 实际功率<span>{{
  345. item.sjgl ? (item.sjgl / 1000).toFixed(2) : "0.00"
  346. }}</span></el-col
  347. >
  348. <!-- <el-col>
  349. AGC指令<span>{{
  350. item.agc ? item.agc.toFixed(2) : "0.00"
  351. }}</span></el-col
  352. >
  353. <el-col>
  354. 出线功率<span>{{
  355. item.cxgl ? (item.cxgl / 1000).toFixed(2) : "0.00"
  356. }}</span></el-col
  357. > -->
  358. </el-row>
  359. <div
  360. class="data_views"
  361. :class="{ active_vie: item.wtlist.length == 0 }"
  362. >
  363. <span
  364. v-for="(subItem, index) in item.wtlist"
  365. :class="getColor(subItem?.status)"
  366. :key="index"
  367. @click="goDetails(subItem, item.czlx, item.wpid)"
  368. >{{ subItem.wtname }}
  369. <!-- <i class="lock"></i> -->
  370. </span>
  371. </div>
  372. </div>
  373. </el-scrollbar>
  374. </div>
  375. <el-dialog
  376. class="dialogs"
  377. width="90%"
  378. top="40px"
  379. v-model="displayMatrix"
  380. :show-close="true"
  381. destroy-on-close
  382. >
  383. <template #title>
  384. <div class="dialog-title">
  385. <img class="dialog-title-img" src="@assets/imgs/dialog-title.png" />
  386. <div class="title">设备详情</div>
  387. </div>
  388. </template>
  389. <div class="dialog-body" style="height: 800px">
  390. <img class="dialog-img" src="@assets/imgs/dialog.png" />
  391. <windDetail
  392. v-show="wtType == -1"
  393. :wind="wind"
  394. :wtType="wtType"
  395. :flag="flag"
  396. ></windDetail>
  397. <lightDetail
  398. v-show="wtType == -2"
  399. :wind="wind"
  400. :wtType="wtType"
  401. :flag="flag"
  402. ></lightDetail>
  403. </div>
  404. </el-dialog>
  405. <qushi-dialog ref="child" :chartName="chartName"></qushi-dialog>
  406. </template>
  407. <script>
  408. import qushiDialog from "@/components/qushi/qushiDialog.vue";
  409. import windDetail from "@/components/windDetail/index";
  410. import lightDetail from "@/components/lightDetial/index.vue";
  411. import { deepClone } from "@/utills/func.js";
  412. import SvgIcon from "@com/coms/icon/svg-icon.vue";
  413. import api from "@api/cockpit/matrix/index.js";
  414. import { setInterval, clearInterval } from "timers";
  415. import HeaderNav from "@/components/headerNavSta/index.vue";
  416. export default {
  417. // 名称
  418. name: "LightMatrix", //基础矩阵
  419. // 使用组件
  420. components: {
  421. HeaderNav,
  422. qushiDialog,
  423. SvgIcon,
  424. windDetail,
  425. lightDetail,
  426. },
  427. // 数据
  428. data() {
  429. return {
  430. loading: false,
  431. timmer: null, // 计时器
  432. sourceMap: {}, // 核心数据
  433. showMatrixList: [],
  434. fillCategory: null, // 过滤条件
  435. fillFjzt: "all", // 过滤条件
  436. displayMatrix: false, //风机详情
  437. wind: {},
  438. wtType: -1,
  439. flag: false,
  440. gfdetialDisplay: false,
  441. stationId: "",
  442. windId: "",
  443. contrastDisplay: false,
  444. chooseList: [],
  445. activeTab: "fc", //全部 风电 光伏
  446. enterpriseIndex: "all",
  447. tabIndex: -1,
  448. // wp指标
  449. stse: [
  450. {
  451. statiomName: "风速",
  452. stse: "",
  453. sts: "SSPJFS",
  454. },
  455. {
  456. statiomName: "预测功率",
  457. stse: "",
  458. sts: "FCFGDQDT0001",
  459. },
  460. {
  461. statiomName: "保证功率",
  462. stse: "",
  463. sts: "SSZBZGL",
  464. },
  465. // {
  466. // statiomName: "理论功率",
  467. // stse: "",
  468. // sts: "SSZNHGLZS",
  469. // },
  470. {
  471. statiomName: "实际功率",
  472. stse: "",
  473. sts: "SSZGL",
  474. },
  475. ],
  476. chartName: "对比曲线",
  477. };
  478. },
  479. // 函数
  480. methods: {
  481. deepClone,
  482. typeFlag(activeTab, enterpriseIndex) {
  483. this.activeTab = activeTab;
  484. this.tabIndex = activeTab == "all" ? 0 : activeTab == "fc" ? -1 : -2;
  485. this.enterpriseIndex = enterpriseIndex;
  486. },
  487. // 根据风机状态码返回对应 class
  488. getColor(fjzt) {
  489. switch (fjzt) {
  490. case 0:
  491. return "blue";
  492. case 1:
  493. return "green";
  494. case 2:
  495. return "red";
  496. case 3:
  497. return "orange";
  498. case 4:
  499. return "pink";
  500. case 5:
  501. return "write";
  502. case 6:
  503. return "gray";
  504. }
  505. },
  506. // 切换显示种类
  507. changeShow(fjzt) {
  508. // 风机状态
  509. this.fillFjzt = fjzt;
  510. let showMatrixList = this.deepClone(this.sourceMap.powerVos);
  511. if (fjzt !== "all") {
  512. // 展示数据过滤
  513. this.showMatrixList = showMatrixList?.map(function (item) {
  514. item.wtlist = item.wtlist.filter(function (y) {
  515. return y.status === fjzt;
  516. });
  517. return item;
  518. });
  519. } else {
  520. this.showMatrixList = showMatrixList;
  521. }
  522. },
  523. // 请求服务
  524. requestData() {
  525. api
  526. .matrixPush({
  527. company:
  528. this.enterpriseIndex == "all"
  529. ? "0"
  530. : this.enterpriseIndex.toString(),
  531. type: this.tabIndex.toString(),
  532. })
  533. .then((res) => {
  534. this.loading = false;
  535. if (Object.values(res.data.data).length) {
  536. this.sourceMap = res.data.data;
  537. if (this.fillFjzt) {
  538. this.changeShow(this.fillFjzt);
  539. }
  540. } else {
  541. this.sourceMap = {};
  542. this.showMatrixList = [];
  543. }
  544. });
  545. },
  546. // 展示对比曲线
  547. handleIndicatorClick(czlx, wpid) {
  548. let y = this.deepClone(this.stse);
  549. if (czlx == "-2") {
  550. y[0].statiomName = "光照强度";
  551. y[0].sts = "SSPJGZD";
  552. }
  553. this.$refs.child.openCurvDatas(y, 1, wpid);
  554. },
  555. // 查看风机详情
  556. goDetails(wt, type, wpid) {
  557. this.displayMatrix = true;
  558. this.wtType = type;
  559. this.$nextTick(() => {
  560. this.wind = { ...wt, wtType: type, wpid };
  561. this.flag = true;
  562. });
  563. },
  564. selectList(val) {
  565. val.forEach((item) => {
  566. this.handleChoose(item.id);
  567. });
  568. },
  569. handleChoose(value) {
  570. this.sourceMap.fjmap.forEach((val) => {
  571. val.forEach((item) => {
  572. if (item.wtId === value) {
  573. if (item.active) {
  574. let showIndex = null;
  575. this.chooseList.forEach((res, index) => {
  576. if (res.wtId === item.wtId) {
  577. showIndex = index;
  578. }
  579. });
  580. this.chooseList.splice(showIndex, 1);
  581. } else {
  582. this.chooseList.push(item);
  583. }
  584. item.active = !item.active;
  585. }
  586. });
  587. });
  588. },
  589. handleClick() {
  590. this.contrastDisplay = true;
  591. this.$refs.contrast.handleSearch(this.chooseList);
  592. },
  593. },
  594. created() {
  595. let that = this;
  596. that.$nextTick(() => {
  597. this.loading = true;
  598. that.requestData();
  599. that.timmer = setInterval(() => {
  600. that.requestData();
  601. }, 5000);
  602. });
  603. },
  604. unmounted() {
  605. clearInterval(this.timmer);
  606. this.timmer = null;
  607. },
  608. };
  609. </script>
  610. <style lang="less" scoped>
  611. .dark-matrix {
  612. height: calc(100% - 59px);
  613. padding: 0 16px;
  614. display: flex;
  615. flex-direction: column;
  616. padding-bottom: 10px;
  617. p {
  618. margin: 0;
  619. }
  620. .el-header {
  621. height: 78px;
  622. // margin-top: 10px;
  623. background-color: rgba(0, 0, 0, 0.45);
  624. border-radius: 5px 5px 0 0;
  625. .el-row {
  626. align-items: center;
  627. height: 100%;
  628. .el-col {
  629. width: 40px;
  630. div {
  631. text-align: center;
  632. }
  633. .fd-header1,
  634. .fd-header2 {
  635. display: flex;
  636. position: relative;
  637. .el-col {
  638. flex: 1;
  639. display: flex;
  640. align-items: center;
  641. .active-b {
  642. border: 1px solid transparent;
  643. padding: 4px 10px;
  644. position: relative;
  645. .left_p {
  646. width: 12px;
  647. height: 12px;
  648. position: absolute;
  649. left: -1px;
  650. top: -1px;
  651. }
  652. .right_p {
  653. width: 12px;
  654. height: 12px;
  655. position: absolute;
  656. left: 61px;
  657. top: 45px;
  658. }
  659. .yuan {
  660. font-family: AgencyFB-Reg;
  661. line-height: 30px;
  662. display: flex;
  663. > p:first-of-type {
  664. width: 13px;
  665. height: 13px;
  666. border: 1px solid transparent;
  667. position: absolute;
  668. top: 9px;
  669. left: 10px;
  670. }
  671. > p:last-of-type {
  672. margin-left: 20px;
  673. }
  674. .circle {
  675. display: inline-block;
  676. width: 4px;
  677. height: 4px;
  678. vertical-align: middle;
  679. margin-right: 10px;
  680. position: absolute;
  681. top: 3.5px;
  682. left: 3px;
  683. }
  684. }
  685. }
  686. }
  687. .el-col.fd-img,
  688. .el-col.gf-img {
  689. flex: 1.5 0 auto;
  690. display: flex;
  691. color: #b3b3b3;
  692. align-items: none;
  693. // border: 0;
  694. // padding: 0;
  695. .imgs {
  696. margin-right: 20px;
  697. }
  698. .titles {
  699. display: flex;
  700. flex-direction: column;
  701. justify-content: center;
  702. align-items: center;
  703. font-size: 14px;
  704. p {
  705. font-size: 16px;
  706. margin-top: 5px;
  707. }
  708. }
  709. }
  710. .el-col.fd-img {
  711. .qty_imgs {
  712. position: absolute;
  713. left: 11px;
  714. top: 12px;
  715. animation: move 1s infinite linear;
  716. }
  717. @keyframes move {
  718. 0% {
  719. top: 12px;
  720. }
  721. 20% {
  722. top: 11px;
  723. }
  724. 40% {
  725. top: 10px;
  726. }
  727. 80% {
  728. top: 11px;
  729. }
  730. 100% {
  731. top: 12px;
  732. }
  733. }
  734. }
  735. // 待机
  736. .el-col:nth-child(2) {
  737. color: #1c99ff;
  738. .active_bor {
  739. border: 1px solid #1c99ff;
  740. .left_p {
  741. border-left: 1.5px solid #ffffff;
  742. border-top: 1.5px solid #ffffff;
  743. }
  744. .right_p {
  745. border-right: 1.5px solid #ffffff;
  746. border-bottom: 1.5px solid #ffffff;
  747. }
  748. div {
  749. > p:first-of-type {
  750. border: 1px solid #1c99ff !important;
  751. }
  752. }
  753. }
  754. .circle {
  755. background-color: #1c99ff;
  756. }
  757. }
  758. //并网
  759. .el-col:nth-child(3) {
  760. color: #05bb4c;
  761. .active_bor {
  762. border: 1px solid #05bb4c;
  763. .left_p {
  764. border-left: 1.5px solid #ffffff;
  765. border-top: 1.5px solid #ffffff;
  766. }
  767. .right_p {
  768. border-right: 1.5px solid #ffffff;
  769. border-bottom: 1.5px solid #ffffff;
  770. }
  771. div {
  772. > p:first-of-type {
  773. border: 1px solid #05bb4c !important;
  774. }
  775. }
  776. }
  777. .circle {
  778. background-color: #05bb4c;
  779. }
  780. }
  781. // 故障
  782. .el-col:nth-child(4) {
  783. color: #ba3237;
  784. .active_bor {
  785. border: 1px solid #ba3237;
  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 #ba3237 !important;
  797. }
  798. }
  799. }
  800. .circle {
  801. background-color: #ba3237;
  802. }
  803. }
  804. // 检修
  805. .el-col:nth-child(5) {
  806. color: #e17d24;
  807. .active_bor {
  808. border: 1px solid #e17d24;
  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 #e17d24 !important;
  820. }
  821. }
  822. }
  823. .circle {
  824. background-color: #e17d24;
  825. }
  826. }
  827. // 限电
  828. .el-col:nth-child(6) {
  829. color: #c530c8;
  830. .active_bor {
  831. border: 1px solid #c530c8;
  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 #c530c8 !important;
  843. }
  844. }
  845. }
  846. .circle {
  847. background-color: #c530c8;
  848. }
  849. }
  850. // 受累
  851. .el-col:nth-child(7) {
  852. color: rgba(255, 255, 255, 1);
  853. .active_bor {
  854. border: 1px solid rgba(255, 255, 255, 1);
  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 rgba(255, 255, 255, 1) !important;
  866. }
  867. }
  868. }
  869. .circle {
  870. background-color: rgba(255, 255, 255, 1);
  871. }
  872. }
  873. // 离线
  874. .el-col:nth-child(8) {
  875. color: #606769;
  876. .active_bor {
  877. border: 1px solid #606769;
  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 #606769 !important;
  889. }
  890. }
  891. }
  892. .circle {
  893. background-color: #606769;
  894. }
  895. }
  896. }
  897. .fd-header2 {
  898. .el-col.gf-img {
  899. .qty_img {
  900. position: absolute;
  901. left: 11px;
  902. top: 18px;
  903. animation: moves 1s infinite linear;
  904. }
  905. @keyframes moves {
  906. 0% {
  907. top: 18px;
  908. }
  909. 20% {
  910. top: 17px;
  911. }
  912. 40% {
  913. top: 16px;
  914. }
  915. 80% {
  916. top: 17px;
  917. }
  918. 100% {
  919. top: 18px;
  920. }
  921. }
  922. }
  923. }
  924. }
  925. }
  926. }
  927. .data_statistics {
  928. width: 100%;
  929. height: 32px;
  930. line-height: 32px;
  931. // background-color: rgba(0, 24, 68, 0.8);
  932. background-color: rgba(96, 103, 105, 0.4);
  933. padding: 0 12px;
  934. .icon-photovoltaic {
  935. color: #ff8100;
  936. }
  937. .el-col {
  938. height: 32px;
  939. }
  940. .el-col + .el-col {
  941. padding-left: 0;
  942. }
  943. .el-col:first-child {
  944. flex: 0 0 auto;
  945. margin-right: 10px;
  946. font-family: AgencyFB-Reg;
  947. color: #05bb4c;
  948. font-size: 14px;
  949. i {
  950. margin-right: 5px;
  951. font-size: 15px;
  952. position: relative;
  953. top: 3px;
  954. }
  955. }
  956. .el-col:not(:first-child) {
  957. flex: 1 0 auto;
  958. color: #b3b3b3;
  959. display: flex;
  960. align-items: center;
  961. span {
  962. font-family: Arial;
  963. color: #9ca5a8;
  964. font-size: 12px;
  965. // display: inline-block;
  966. width: 45px;
  967. text-align: left;
  968. margin-left: 5px;
  969. vertical-align: middle;
  970. }
  971. }
  972. .el-col:nth-child(2) {
  973. span {
  974. color: #fff;
  975. }
  976. }
  977. .el-col:nth-child(3) {
  978. span {
  979. color: #1c99ff;
  980. }
  981. }
  982. .el-col:nth-child(4) {
  983. span {
  984. color: #05bb4c;
  985. }
  986. }
  987. .el-col:nth-child(5) {
  988. span {
  989. color: #ba3237;
  990. }
  991. }
  992. .el-col:nth-child(6) {
  993. span {
  994. color: #e17d24;
  995. }
  996. }
  997. .el-col:nth-child(7) {
  998. span {
  999. color: #c530c8;
  1000. }
  1001. }
  1002. .el-col:nth-child(8) {
  1003. span {
  1004. color: #ffffff;
  1005. }
  1006. }
  1007. .el-col:nth-child(9) {
  1008. span {
  1009. color: #606769;
  1010. }
  1011. }
  1012. }
  1013. .data_views {
  1014. padding: 5px 0;
  1015. display: grid;
  1016. justify-content: space-between;
  1017. grid-template-columns: repeat(auto-fill, 44px);
  1018. span {
  1019. cursor: pointer;
  1020. display: inline-block;
  1021. min-width: 44px;
  1022. height: 22px;
  1023. line-height: 22px;
  1024. text-align: center;
  1025. border: 1px solid #4b55ae;
  1026. color: #4b55ae;
  1027. border-radius: 2px;
  1028. margin-bottom: 3px;
  1029. margin-right: 4px;
  1030. font-size: 13px;
  1031. position: relative;
  1032. .lock {
  1033. width: 0;
  1034. height: 0;
  1035. border-top: 8px solid #fff;
  1036. border-right: 8px solid transparent;
  1037. position: absolute;
  1038. top: 0;
  1039. left: 0;
  1040. }
  1041. }
  1042. .card_hover {
  1043. background: #1a7ccd;
  1044. }
  1045. // 待机
  1046. .blue {
  1047. color: #1c99ff;
  1048. border-color: #1c99ff;
  1049. }
  1050. // 并网
  1051. .green {
  1052. color: #05bb4c;
  1053. border-color: #05bb4c;
  1054. }
  1055. // 限电
  1056. .pink {
  1057. color: #c530c8;
  1058. border-color: #c530c8;
  1059. }
  1060. // 故障
  1061. .red {
  1062. color: #fff;
  1063. border-color: #ba3237;
  1064. background-color: #ba3237;
  1065. }
  1066. // 检修
  1067. .orange {
  1068. color: #e17d24;
  1069. border-color: #e17d24;
  1070. }
  1071. // 受累
  1072. .write {
  1073. color: #ffffff;
  1074. border-color: rgba(255, 255, 255, 1);
  1075. }
  1076. // 离线
  1077. .gray {
  1078. color: #a7a7a7;
  1079. border-color: #606769;
  1080. background-color: rgba(96, 103, 105, 0.2);
  1081. }
  1082. .line_ll {
  1083. color: #ffffff !important;
  1084. border-color: #606701 !important;
  1085. background-color: #606239 !important;
  1086. }
  1087. }
  1088. }
  1089. </style>