index.vue 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141
  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.toFixed(2) : "0.00"
  322. }}</span></el-col
  323. >
  324. <el-col
  325. v-if="item.czlx == -1"
  326. style="cursor: pointer"
  327. @click="handleIndicatorClick(item.czlx, item.wpid)"
  328. >
  329. 保证功率<span>{{
  330. item.bzgl ? (item.bzgl / 1000).toFixed(2) : "0.00"
  331. }}</span></el-col
  332. >
  333. <el-col
  334. style="cursor: pointer"
  335. v-if="item.czlx == -2"
  336. @click="handleIndicatorClick(item.czlx, item.wpid)"
  337. >
  338. 理论功率<span>{{
  339. item.llgl ? (item.llgl / 1000).toFixed(2) : "0.00"
  340. }}</span></el-col
  341. >
  342. <el-col
  343. style="cursor: pointer"
  344. @click="handleIndicatorClick(item.czlx, item.wpid)"
  345. >
  346. 实际功率<span>{{
  347. item.sjgl ? (item.sjgl / 1000).toFixed(2) : "0.00"
  348. }}</span></el-col
  349. >
  350. <!-- <el-col>
  351. AGC指令<span>{{
  352. item.agc ? item.agc.toFixed(2) : "0.00"
  353. }}</span></el-col
  354. >
  355. <el-col>
  356. 出线功率<span>{{
  357. item.cxgl ? (item.cxgl / 1000).toFixed(2) : "0.00"
  358. }}</span></el-col
  359. > -->
  360. </el-row>
  361. <div
  362. class="data_views"
  363. :class="{ active_vie: item.wtlist.length == 0 }"
  364. >
  365. <span
  366. v-for="(subItem, index) in item.wtlist"
  367. :class="getColor(subItem?.status)"
  368. :key="index"
  369. @click="goDetails(subItem, item.czlx, item.wpid)"
  370. >{{ subItem.wtname }}
  371. <!-- <i class="lock"></i> -->
  372. </span>
  373. </div>
  374. </div>
  375. </el-scrollbar>
  376. </div>
  377. <el-dialog
  378. width="90%"
  379. top="40px"
  380. v-model="displayMatrix"
  381. :show-close="true"
  382. destroy-on-close
  383. >
  384. <template #title>
  385. <div class="dialog-title">
  386. <div class="title">设备详情</div>
  387. </div>
  388. </template>
  389. <div class="dialog-body" style="height: 900px">
  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. y[2].statiomName = "理论功率";
  553. y[2].sts = "SSZNHGLZS";
  554. }
  555. this.$refs.child.openCurvDatas(y, 1, wpid);
  556. },
  557. // 查看风机详情
  558. goDetails(wt, type, wpid) {
  559. this.displayMatrix = true;
  560. this.wtType = type;
  561. this.$nextTick(() => {
  562. this.wind = { ...wt, wtType: type, wpid };
  563. this.flag = true;
  564. });
  565. },
  566. selectList(val) {
  567. val.forEach((item) => {
  568. this.handleChoose(item.id);
  569. });
  570. },
  571. handleChoose(value) {
  572. this.sourceMap.fjmap.forEach((val) => {
  573. val.forEach((item) => {
  574. if (item.wtId === value) {
  575. if (item.active) {
  576. let showIndex = null;
  577. this.chooseList.forEach((res, index) => {
  578. if (res.wtId === item.wtId) {
  579. showIndex = index;
  580. }
  581. });
  582. this.chooseList.splice(showIndex, 1);
  583. } else {
  584. this.chooseList.push(item);
  585. }
  586. item.active = !item.active;
  587. }
  588. });
  589. });
  590. },
  591. handleClick() {
  592. this.contrastDisplay = true;
  593. this.$refs.contrast.handleSearch(this.chooseList);
  594. },
  595. },
  596. created() {
  597. let that = this;
  598. that.$nextTick(() => {
  599. this.loading = true;
  600. that.requestData();
  601. that.timmer = setInterval(() => {
  602. that.requestData();
  603. }, 5000);
  604. });
  605. },
  606. unmounted() {
  607. clearInterval(this.timmer);
  608. this.timmer = null;
  609. },
  610. };
  611. </script>
  612. <style lang="less" scoped>
  613. .dark-matrix {
  614. height: calc(100% - 59px);
  615. padding: 0 16px;
  616. display: flex;
  617. flex-direction: column;
  618. padding-bottom: 10px;
  619. p {
  620. margin: 0;
  621. }
  622. .el-header {
  623. height: 78px;
  624. // margin-top: 10px;
  625. background-color: rgba(0, 0, 0, 0.45);
  626. border-radius: 5px 5px 0 0;
  627. .el-row {
  628. align-items: center;
  629. height: 100%;
  630. .el-col {
  631. width: 40px;
  632. div {
  633. text-align: center;
  634. }
  635. .fd-header1,
  636. .fd-header2 {
  637. display: flex;
  638. position: relative;
  639. .el-col {
  640. flex: 1;
  641. display: flex;
  642. align-items: center;
  643. .active-b {
  644. border: 1px solid transparent;
  645. padding: 4px 10px;
  646. position: relative;
  647. .left_p {
  648. width: 12px;
  649. height: 12px;
  650. position: absolute;
  651. left: -1px;
  652. top: -1px;
  653. }
  654. .right_p {
  655. width: 12px;
  656. height: 12px;
  657. position: absolute;
  658. left: 61px;
  659. top: 45px;
  660. }
  661. .yuan {
  662. font-family: AgencyFB-Reg;
  663. line-height: 30px;
  664. display: flex;
  665. > p:first-of-type {
  666. width: 13px;
  667. height: 13px;
  668. border: 1px solid transparent;
  669. position: absolute;
  670. top: 9px;
  671. left: 10px;
  672. }
  673. > p:last-of-type {
  674. margin-left: 20px;
  675. }
  676. .circle {
  677. display: inline-block;
  678. width: 4px;
  679. height: 4px;
  680. vertical-align: middle;
  681. margin-right: 10px;
  682. position: absolute;
  683. top: 3.5px;
  684. left: 3px;
  685. }
  686. }
  687. }
  688. }
  689. .el-col.fd-img,
  690. .el-col.gf-img {
  691. flex: 1.5 0 auto;
  692. display: flex;
  693. color: #b3b3b3;
  694. align-items: none;
  695. // border: 0;
  696. // padding: 0;
  697. .imgs {
  698. margin-right: 20px;
  699. }
  700. .titles {
  701. display: flex;
  702. flex-direction: column;
  703. justify-content: center;
  704. align-items: center;
  705. font-size: 14px;
  706. p {
  707. font-size: 16px;
  708. margin-top: 5px;
  709. }
  710. }
  711. }
  712. .el-col.fd-img {
  713. .qty_imgs {
  714. position: absolute;
  715. left: 11px;
  716. top: 12px;
  717. animation: move 1s infinite linear;
  718. }
  719. @keyframes move {
  720. 0% {
  721. top: 12px;
  722. }
  723. 20% {
  724. top: 11px;
  725. }
  726. 40% {
  727. top: 10px;
  728. }
  729. 80% {
  730. top: 11px;
  731. }
  732. 100% {
  733. top: 12px;
  734. }
  735. }
  736. }
  737. // 待机
  738. .el-col:nth-child(2) {
  739. color: #1c99ff;
  740. .active_bor {
  741. border: 1px solid #1c99ff;
  742. .left_p {
  743. border-left: 1.5px solid #ffffff;
  744. border-top: 1.5px solid #ffffff;
  745. }
  746. .right_p {
  747. border-right: 1.5px solid #ffffff;
  748. border-bottom: 1.5px solid #ffffff;
  749. }
  750. div {
  751. > p:first-of-type {
  752. border: 1px solid #1c99ff !important;
  753. }
  754. }
  755. }
  756. .circle {
  757. background-color: #1c99ff;
  758. }
  759. }
  760. //并网
  761. .el-col:nth-child(3) {
  762. color: #05bb4c;
  763. .active_bor {
  764. border: 1px solid #05bb4c;
  765. .left_p {
  766. border-left: 1.5px solid #ffffff;
  767. border-top: 1.5px solid #ffffff;
  768. }
  769. .right_p {
  770. border-right: 1.5px solid #ffffff;
  771. border-bottom: 1.5px solid #ffffff;
  772. }
  773. div {
  774. > p:first-of-type {
  775. border: 1px solid #05bb4c !important;
  776. }
  777. }
  778. }
  779. .circle {
  780. background-color: #05bb4c;
  781. }
  782. }
  783. // 故障
  784. .el-col:nth-child(4) {
  785. color: #ba3237;
  786. .active_bor {
  787. border: 1px solid #ba3237;
  788. .left_p {
  789. border-left: 1.5px solid #ffffff;
  790. border-top: 1.5px solid #ffffff;
  791. }
  792. .right_p {
  793. border-right: 1.5px solid #ffffff;
  794. border-bottom: 1.5px solid #ffffff;
  795. }
  796. div {
  797. > p:first-of-type {
  798. border: 1px solid #ba3237 !important;
  799. }
  800. }
  801. }
  802. .circle {
  803. background-color: #ba3237;
  804. }
  805. }
  806. // 检修
  807. .el-col:nth-child(5) {
  808. color: #e17d24;
  809. .active_bor {
  810. border: 1px solid #e17d24;
  811. .left_p {
  812. border-left: 1.5px solid #ffffff;
  813. border-top: 1.5px solid #ffffff;
  814. }
  815. .right_p {
  816. border-right: 1.5px solid #ffffff;
  817. border-bottom: 1.5px solid #ffffff;
  818. }
  819. div {
  820. > p:first-of-type {
  821. border: 1px solid #e17d24 !important;
  822. }
  823. }
  824. }
  825. .circle {
  826. background-color: #e17d24;
  827. }
  828. }
  829. // 限电
  830. .el-col:nth-child(6) {
  831. color: #c530c8;
  832. .active_bor {
  833. border: 1px solid #c530c8;
  834. .left_p {
  835. border-left: 1.5px solid #ffffff;
  836. border-top: 1.5px solid #ffffff;
  837. }
  838. .right_p {
  839. border-right: 1.5px solid #ffffff;
  840. border-bottom: 1.5px solid #ffffff;
  841. }
  842. div {
  843. > p:first-of-type {
  844. border: 1px solid #c530c8 !important;
  845. }
  846. }
  847. }
  848. .circle {
  849. background-color: #c530c8;
  850. }
  851. }
  852. // 受累
  853. .el-col:nth-child(7) {
  854. color: rgba(255, 255, 255, 1);
  855. .active_bor {
  856. border: 1px solid rgba(255, 255, 255, 1);
  857. .left_p {
  858. border-left: 1.5px solid #ffffff;
  859. border-top: 1.5px solid #ffffff;
  860. }
  861. .right_p {
  862. border-right: 1.5px solid #ffffff;
  863. border-bottom: 1.5px solid #ffffff;
  864. }
  865. div {
  866. > p:first-of-type {
  867. border: 1px solid rgba(255, 255, 255, 1) !important;
  868. }
  869. }
  870. }
  871. .circle {
  872. background-color: rgba(255, 255, 255, 1);
  873. }
  874. }
  875. // 离线
  876. .el-col:nth-child(8) {
  877. color: #606769;
  878. .active_bor {
  879. border: 1px solid #606769;
  880. .left_p {
  881. border-left: 1.5px solid #ffffff;
  882. border-top: 1.5px solid #ffffff;
  883. }
  884. .right_p {
  885. border-right: 1.5px solid #ffffff;
  886. border-bottom: 1.5px solid #ffffff;
  887. }
  888. div {
  889. > p:first-of-type {
  890. border: 1px solid #606769 !important;
  891. }
  892. }
  893. }
  894. .circle {
  895. background-color: #606769;
  896. }
  897. }
  898. }
  899. .fd-header2 {
  900. .el-col.gf-img {
  901. .qty_img {
  902. position: absolute;
  903. left: 11px;
  904. top: 18px;
  905. animation: moves 1s infinite linear;
  906. }
  907. @keyframes moves {
  908. 0% {
  909. top: 18px;
  910. }
  911. 20% {
  912. top: 17px;
  913. }
  914. 40% {
  915. top: 16px;
  916. }
  917. 80% {
  918. top: 17px;
  919. }
  920. 100% {
  921. top: 18px;
  922. }
  923. }
  924. }
  925. }
  926. }
  927. }
  928. }
  929. .data_statistics {
  930. width: 100%;
  931. height: 32px;
  932. line-height: 32px;
  933. // background-color: rgba(0, 24, 68, 0.8);
  934. background-color: rgba(96, 103, 105, 0.4);
  935. padding: 0 12px;
  936. .icon-photovoltaic {
  937. color: #ff8100;
  938. }
  939. .el-col {
  940. height: 32px;
  941. }
  942. .el-col + .el-col {
  943. padding-left: 0;
  944. }
  945. .el-col:first-child {
  946. flex: 0 0 auto;
  947. margin-right: 10px;
  948. font-family: AgencyFB-Reg;
  949. color: #05bb4c;
  950. font-size: 14px;
  951. i {
  952. margin-right: 5px;
  953. font-size: 15px;
  954. position: relative;
  955. top: 3px;
  956. }
  957. }
  958. .el-col:not(:first-child) {
  959. flex: 1 0 auto;
  960. color: #b3b3b3;
  961. display: flex;
  962. align-items: center;
  963. span {
  964. font-family: Arial;
  965. color: #9ca5a8;
  966. font-size: 12px;
  967. // display: inline-block;
  968. width: 45px;
  969. text-align: left;
  970. margin-left: 5px;
  971. vertical-align: middle;
  972. }
  973. }
  974. .el-col:nth-child(2) {
  975. span {
  976. color: #fff;
  977. }
  978. }
  979. .el-col:nth-child(3) {
  980. span {
  981. color: #1c99ff;
  982. }
  983. }
  984. .el-col:nth-child(4) {
  985. span {
  986. color: #05bb4c;
  987. }
  988. }
  989. .el-col:nth-child(5) {
  990. span {
  991. color: #ba3237;
  992. }
  993. }
  994. .el-col:nth-child(6) {
  995. span {
  996. color: #e17d24;
  997. }
  998. }
  999. .el-col:nth-child(7) {
  1000. span {
  1001. color: #c530c8;
  1002. }
  1003. }
  1004. .el-col:nth-child(8) {
  1005. span {
  1006. color: #ffffff;
  1007. }
  1008. }
  1009. .el-col:nth-child(9) {
  1010. span {
  1011. color: #606769;
  1012. }
  1013. }
  1014. }
  1015. .data_views {
  1016. padding: 5px 0;
  1017. display: grid;
  1018. justify-content: space-between;
  1019. grid-template-columns: repeat(auto-fill, 60px);
  1020. span {
  1021. cursor: pointer;
  1022. display: inline-block;
  1023. min-width: 60px;
  1024. height: 22px;
  1025. line-height: 22px;
  1026. text-align: center;
  1027. border: 1px solid #4b55ae;
  1028. color: #4b55ae;
  1029. border-radius: 2px;
  1030. margin-bottom: 3px;
  1031. margin-right: 4px;
  1032. font-size: 13px;
  1033. position: relative;
  1034. .lock {
  1035. width: 0;
  1036. height: 0;
  1037. border-top: 8px solid #fff;
  1038. border-right: 8px solid transparent;
  1039. position: absolute;
  1040. top: 0;
  1041. left: 0;
  1042. }
  1043. }
  1044. .card_hover {
  1045. background: #1a7ccd;
  1046. }
  1047. // 待机
  1048. .blue {
  1049. color: #1c99ff;
  1050. border-color: #1c99ff;
  1051. }
  1052. // 并网
  1053. .green {
  1054. color: #05bb4c;
  1055. border-color: #05bb4c;
  1056. }
  1057. // 限电
  1058. .pink {
  1059. color: #c530c8;
  1060. border-color: #c530c8;
  1061. }
  1062. // 故障
  1063. .red {
  1064. color: #fff;
  1065. border-color: #ba3237;
  1066. background-color: #ba3237;
  1067. }
  1068. // 检修
  1069. .orange {
  1070. color: #e17d24;
  1071. border-color: #e17d24;
  1072. }
  1073. // 受累
  1074. .write {
  1075. color: #ffffff;
  1076. border-color: rgba(255, 255, 255, 1);
  1077. }
  1078. // 离线
  1079. .gray {
  1080. color: #a7a7a7;
  1081. border-color: #606769;
  1082. background-color: rgba(96, 103, 105, 0.2);
  1083. }
  1084. .line_ll {
  1085. color: #ffffff !important;
  1086. border-color: #606701 !important;
  1087. background-color: #606239 !important;
  1088. }
  1089. }
  1090. }
  1091. </style>