index.vue 30 KB

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