indexGF.vue 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472
  1. <template>
  2. <div class="photovoltaicStation matrix-body">
  3. <div style="display: flex; margin-top: 10px">
  4. <div style="margin-right: 10px">
  5. <eselect
  6. :data="levels1Data"
  7. v-model="typeNode"
  8. placeholder="请选择"
  9. labelKey="name"
  10. valueKey="type"
  11. @change="levels1DataChang"
  12. style="margin-right: 8px; width: 132px"
  13. />
  14. </div>
  15. <div class="provice-data">
  16. <img
  17. src="@assets/img/images/area.png"
  18. style="width: 14px; display: inline-block; margin-right: 10px"
  19. />
  20. <span>{{ province && province.name }}</span>
  21. </div>
  22. </div>
  23. <div class="photovoltaic-chart3">
  24. <div class="chart-card power-statistics">
  25. <div class="chart-card-title-wrapper">
  26. <div class="chart-card-title">发电统计</div>
  27. <div class="right-bar">
  28. <div
  29. :class="datetype === 'r' ? 'type-button-on' : 'day-button'"
  30. @click="handleChangeDay('r')"
  31. >
  32. <div class="day-name">日</div>
  33. </div>
  34. <div
  35. :class="datetype === 'y' ? 'type-button-on' : 'day-button'"
  36. @click="handleChangeDay('y')"
  37. >
  38. <div class="day-name">月</div>
  39. </div>
  40. <div
  41. :class="datetype === 'n' ? 'type-button-on' : 'day-button'"
  42. @click="handleChangeDay('n')"
  43. >
  44. <div class="day-name">年</div>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="chart-content">
  49. <div class="chart-img">
  50. <div class="img">
  51. <img src="../../../../assets/img/images/equipment-progress.png" />
  52. <div class="img-unit">
  53. <div class="information">
  54. {{ companyPowerStationData?.fdtj?.gnlyl?.toFixed(2) || 0 }}
  55. </div>
  56. </div>
  57. </div>
  58. <p>光能利用率(%)</p>
  59. </div>
  60. <ul class="chart-list">
  61. <li class="statistics-li">
  62. <span class="statistics-name">发电量</span>
  63. <div>
  64. <span class="statistics-data">{{
  65. companyPowerStationData?.fdtj?.rfdl?.toFixed(2) || 0
  66. }}</span>
  67. </div>
  68. <span class="statistics-unit">万kWh</span>
  69. </li>
  70. <li class="statistics-li">
  71. <span class="statistics-name">理论发电量</span>
  72. <div>
  73. <span class="statistics-data">{{
  74. companyPowerStationData?.fdtj?.llfdl?.toFixed(2) || 0
  75. }}</span>
  76. </div>
  77. <span class="statistics-unit">万kWh</span>
  78. </li>
  79. <li class="statistics-li">
  80. <span class="statistics-name">损失电量</span>
  81. <div>
  82. <span class="statistics-data">{{
  83. companyPowerStationData?.fdtj?.ssdl?.toFixed(2) || 0
  84. }}</span>
  85. </div>
  86. <span class="statistics-unit">万kWh</span>
  87. </li>
  88. </ul>
  89. </div>
  90. </div>
  91. <div class="chart-card station-status">
  92. <div class="chart-card-title">五项损失</div>
  93. <div class="chart-content">
  94. <div class="chart-pie">
  95. <div class="chart-total"></div>
  96. <!-- <pie-chart width="100%" height="100%" :lossPower="dayWindPieData" /> -->
  97. <pie-chart width="100%" height="100%" :series="dayWindPieData" />
  98. </div>
  99. <ul class="chart-list">
  100. <li
  101. v-for="item in dayWindPieData"
  102. :key="item.name"
  103. class="state-li"
  104. :class="item.class"
  105. >
  106. <span class="station-state">{{ item?.name }}</span>
  107. <span class="station-data"
  108. >{{
  109. item?.value
  110. ? ((item?.value / wxssTotal) * 100)?.toFixed(2)
  111. : 0
  112. }}
  113. <i class="unit">%</i></span
  114. >
  115. </li>
  116. </ul>
  117. </div>
  118. </div>
  119. <div class="chart-card">
  120. <div class="chart-card-title">场站损失(前5)</div>
  121. <div class="chart-content">
  122. <div class="chart-online">
  123. <div class="chart-total"></div>
  124. <pie-chart width="100%" height="100%" :series="stationTop5" />
  125. </div>
  126. <ul class="chart-list">
  127. <li
  128. class="online-li"
  129. v-for="(item, index) in stationTop5"
  130. :key="item.index"
  131. :class="'online' + index"
  132. >
  133. <span class="online-name">{{ item?.name }}</span>
  134. <div>
  135. <span class="online-data">{{
  136. item?.value
  137. ? ((item?.value / stationTopTotal) * 100)?.toFixed(2)
  138. : 0
  139. }}</span>
  140. <span class="online-percent">%</span>
  141. </div>
  142. </li>
  143. </ul>
  144. </div>
  145. </div>
  146. </div>
  147. <div class="photovoltaic-filter">
  148. <div class="photovoltaic-left">
  149. <!-- <span>排序方式:</span>
  150. <el-select
  151. v-model="sortCode"
  152. placeholder="请选择"
  153. collapse-tags
  154. size="mini"
  155. clearable
  156. @change="sortFilterchange"
  157. >
  158. <el-option
  159. v-for="(item, indexe) in sortArrData"
  160. :key="indexe"
  161. :label="item.label"
  162. :value="item.value"
  163. >
  164. </el-option>
  165. </el-select> -->
  166. <eselect
  167. v-model="sortCode"
  168. placeholder="排序方式"
  169. clearable
  170. :data="sortArrData"
  171. labelKey="label"
  172. valueKey="value"
  173. @change="sortFilterchange"
  174. style="width: 165px"
  175. />
  176. <div
  177. class="photovoltaic-sort"
  178. v-show="sortCode"
  179. @click="sortTypechange"
  180. >
  181. <i
  182. :class="sortType ? 'icon-descending-order' : 'icon-ascending-order'"
  183. ></i>
  184. </div>
  185. <div class="search-form">
  186. <div class="form-box">
  187. <eselect
  188. v-model="checkNode"
  189. placeholder="请选择公司"
  190. multiple
  191. clearable
  192. :data="OrganizationLists"
  193. labelKey="aname"
  194. valueKey="id"
  195. @change="areaChange"
  196. style="width: 165px"
  197. />
  198. </div>
  199. <div class="form-box">
  200. <ebtn
  201. style="margin-right: 16px"
  202. @click="themeChange('maintenance')"
  203. :actived="themeType === 'maintenance'"
  204. >
  205. <template #img>
  206. <i class="icon-operate"></i>
  207. </template>
  208. 光能利用率
  209. </ebtn>
  210. <ebtn
  211. style="margin-right: 12px"
  212. @click="themeChange('operate')"
  213. :actived="themeType === 'operate'"
  214. >
  215. 损失明细
  216. <template #img>
  217. <i class="icon-maintenance"></i>
  218. </template>
  219. </ebtn>
  220. <eselect
  221. v-show="themeType === 'maintenance'"
  222. v-model="benchmarkingVal"
  223. placeholder="对标方式"
  224. clearable
  225. :data="benchmarking"
  226. @change="changeNum"
  227. style="width: 165px"
  228. />
  229. <el-badge
  230. v-if="
  231. themeType === 'maintenance' &&
  232. benchNum !== 0 &&
  233. benchmarkingVal !== ''
  234. "
  235. @click="hidenBenchList"
  236. :value="benchNum"
  237. style="margin-left: 20px; cursor: pointer"
  238. >
  239. <ebtn style="padding: 0 16px">
  240. <template #img>
  241. <i
  242. :class="
  243. sortType
  244. ? 'icon-descending-order'
  245. : 'icon-ascending-order'
  246. "
  247. ></i>
  248. </template>
  249. </ebtn>
  250. </el-badge>
  251. <div
  252. style="z-index: 999; width: 305px; background: #0c0f15"
  253. class="window"
  254. v-if="themeType === 'maintenance' && displaycheck === true"
  255. >
  256. <div class="stitBorder"></div>
  257. <p class="ststTit header">
  258. <span v-if="benchmarkingVal === 'bench2'"> 公司对标 </span>
  259. (<span style="color: #d8d8d9">{{ benchNum }}</span
  260. >)
  261. </p>
  262. <div class="lines"></div>
  263. <div class="overHidd" v-if="benchmarkingVal === 'bench2'">
  264. <ul
  265. v-for="(item, index) in cardBench"
  266. :key="index"
  267. class="stations"
  268. >
  269. <li
  270. style="
  271. width: 60%;
  272. white-space: nowrap;
  273. overflow: hidden;
  274. text-overflow: ellipsis;
  275. "
  276. >
  277. {{ item }}
  278. </li>
  279. <li @click="removeTable(index)" style="cursor: pointer">
  280. <i class="el-icon-close"></i>
  281. </li>
  282. </ul>
  283. </div>
  284. <el-row
  285. class="footerButton"
  286. style="position: absolute; bottom: 19px; left: 15px"
  287. >
  288. <el-button
  289. type="primary"
  290. :disabled="cardBench.length < 2"
  291. round
  292. @click="openCurvDatased"
  293. >开始对标</el-button
  294. >
  295. <div class="footTitle" @click="clearTable">
  296. <p>清空</p>
  297. <Delete
  298. style="
  299. width: 17px;
  300. height: 17px;
  301. margin-top: 6px;
  302. margin-left: 5px;
  303. color: rgba(255, 102, 0, 1);
  304. "
  305. />
  306. </div>
  307. </el-row>
  308. </div>
  309. </div>
  310. </div>
  311. </div>
  312. </div>
  313. <div class="photovoltaic-data">
  314. <Card
  315. :dataSource="cardData"
  316. ref="childCard"
  317. :typeStr="typeNode"
  318. :theme="themeType"
  319. :benchmarkingVal="benchmarkingVal"
  320. :electTarget="electTarget"
  321. />
  322. <!-- <List
  323. v-show="isActive === 'list'"
  324. :dataSource="companyPowerStationData?.wxsslb"
  325. :theme="themeType"
  326. :typeStr="typeNode"
  327. /> -->
  328. </div>
  329. <el-dialog
  330. class="dialogs"
  331. width="100%"
  332. fullscreen
  333. v-model="displaybench"
  334. :show-close="true"
  335. :destroy-on-close="true"
  336. >
  337. <template #title>
  338. <div class="dialog-title">
  339. <img
  340. class="dialog-title-img"
  341. src="@assets/img/images/dialog-title.png"
  342. />
  343. <div v-if="benchmarkingVal === 'bench2'" class="title">公司对标</div>
  344. </div>
  345. </template>
  346. <div class="dialog-body">
  347. <img class="dialog-img" src="@assets/img/images/dialog.png" />
  348. <companyBench v-if="benchmarkingVal === 'bench2'" ref="companyBench" />
  349. </div>
  350. </el-dialog>
  351. </div>
  352. </template>
  353. <script>
  354. import Card from "./components/card.vue";
  355. import List from "./components/list.vue";
  356. import PieChart from "@/components/chart/pie/dual-pie-chart-econey.vue";
  357. import companyBench from "@/views/layout/economicsOperation/benchmarkingManagement/companyBenchmarking/index.vue";
  358. import { homePage } from "@/api/economy-homepage.js";
  359. import { GetOrganization } from "@/api/econ-headerNav.js";
  360. import eselect from "@/components/eselect";
  361. import ebtn from "@/components/ebtn";
  362. import { GetRegionInfo } from "@/api/home.js";
  363. export default {
  364. name: "homePageGf", // 区域分析
  365. components: {
  366. Card,
  367. List,
  368. PieChart,
  369. eselect,
  370. ebtn,
  371. companyBench,
  372. },
  373. data() {
  374. return {
  375. benchmarking: [{ label: "公司对标", value: "bench2" }],
  376. benchNum: 0,
  377. benchChang: "",
  378. //风光类型
  379. levels1Data: [
  380. { type: -1, flag: true, id: "F", name: "风电", icon: -1 },
  381. { type: -2, flag: true, id: "G", name: "光伏", icon: -2 },
  382. ], //类型
  383. typeNode: "-2",
  384. windSpeedRota: null, // 发电统计仪表盘转动角度
  385. areaCode: null,
  386. province: {
  387. name: "",
  388. code: "",
  389. },
  390. timer: null, // 3秒调一次
  391. OrganizationLists: null,
  392. checkNode: [], // 选中区域
  393. themeType: "maintenance", // 主题模式 光能利用率类:maintenance 损失明细类:operate,
  394. isActive: "card", // 切换卡片或列表
  395. dayWindPieData: [],
  396. stationTop5: [],
  397. cardData: [],
  398. listData: [],
  399. allListData: [],
  400. companyPowerStationData: {},
  401. sortCode: "",
  402. sortType: true,
  403. datetype: "r",
  404. wxssTotal: 0,
  405. stationTopTotal: 0,
  406. displaycheck: false,
  407. displaybench: false,
  408. cardBench: [],
  409. a_benchmarkingVal: "",
  410. };
  411. },
  412. methods: {
  413. // 切换对标方式
  414. changeNum(val) {
  415. this.$refs.childCard.changenums();
  416. this.benchChang = val;
  417. },
  418. // 打开对标框
  419. async hidenBenchList(event) {
  420. this.displaycheck = !this.displaycheck;
  421. },
  422. // 点击确认后添加数据
  423. setdata(data) {
  424. this.cardBench = data;
  425. this.benchNum = data.length;
  426. if (data.length === 0) {
  427. this.displaycheck = false;
  428. }
  429. },
  430. // 开始对标框弹窗
  431. openCurvDatased() {
  432. this.displaycheck = false;
  433. this.displaybench = true;
  434. this.curvData();
  435. },
  436. curvData() {
  437. let arr = [];
  438. this.cardData.forEach((s) => {
  439. this.cardBench.forEach((d) => {
  440. if (s.name === d) {
  441. arr.push(s.id);
  442. }
  443. });
  444. });
  445. this.$nextTick(() => {
  446. this.$refs.companyBench &&
  447. this.$refs.companyBench.init(arr, this.typeNode);
  448. });
  449. },
  450. // 删除购物车内容
  451. removeTable(index) {
  452. if (this.benchmarkingVal === "bench2") {
  453. this.cardBench.splice(index, 1);
  454. this.benchNum = this.cardBench.length;
  455. if (this.cardBench.length === 0) {
  456. this.displaycheck = false;
  457. }
  458. this.$refs.childCard.changenBench(this.cardBench);
  459. }
  460. },
  461. // 清空购物车
  462. clearTable() {
  463. this.cardBench = [];
  464. this.benchNum = this.cardBench.length;
  465. this.displaycheck = false;
  466. if (this.benchmarkingVal === "bench2") {
  467. this.$refs.childCard.changenBench(this.cardBench);
  468. }
  469. },
  470. //初加载数据
  471. init() {
  472. let province = JSON.parse(localStorage.getItem("GlobalConfig"));
  473. if (!province) {
  474. this.getProvinceCode();
  475. } else {
  476. this.province = {
  477. name: province.name,
  478. code: province.code,
  479. };
  480. }
  481. this.typeNode = this.levels1Data[1].type;
  482. this.getOrganizationList();
  483. this.getDataDetial();
  484. },
  485. async getProvinceCode() {
  486. const data = await GetRegionInfo();
  487. this.province = {
  488. name: data.name,
  489. code: data.code,
  490. };
  491. localStorage.setItem("GlobalConfig", JSON.stringify(data));
  492. },
  493. //切换类型
  494. levels1DataChang() {
  495. this.checkNode = [];
  496. this.resetFilter();
  497. this.$router.push({ path: "/economicsOperation/homePage" });
  498. },
  499. //调接口获取数据
  500. async getDataDetial() {
  501. clearInterval(this.timer);
  502. this.timer = null;
  503. let { data: res } = await homePage({
  504. companyId: this.province.code,
  505. type: this.typeNode,
  506. statype: 0,
  507. datetype: this.datetype,
  508. });
  509. this.companyPowerStationData = res; //所有页面数据
  510. this.listData = this.companyPowerStationData?.wxsslb; //列表数据
  511. this.allListData = this.companyPowerStationData?.wxsslb; //存储备用列表(筛选使用)
  512. this.cardData = this.getSortList(this.listData, this.sortCode);
  513. // 五项损失统计饼图
  514. this.dayWindPieData = [
  515. {
  516. name: "性能损失",
  517. value: this.companyPowerStationData?.wxsstb?.xnss,
  518. class: "state-xn",
  519. },
  520. {
  521. name: "故障损失",
  522. value: this.companyPowerStationData?.wxsstb?.gzss,
  523. class: "state-gz",
  524. },
  525. {
  526. name: "维护损失",
  527. value: this.companyPowerStationData?.wxsstb?.whss,
  528. class: "state-wh",
  529. },
  530. {
  531. name: "限电损失",
  532. value: this.companyPowerStationData?.wxsstb?.xdss,
  533. class: "state-xd",
  534. },
  535. {
  536. name: "受累损失",
  537. value: this.companyPowerStationData?.wxsstb?.slss,
  538. class: "state-sl",
  539. },
  540. ];
  541. this.wxssTotal = this.dayWindPieData?.reduce((a, b) => {
  542. return a + b.value * 1;
  543. }, 0);
  544. this.stationTop5 = this.companyPowerStationData?.czwxss?.map((item) => {
  545. return { name: item.name, value: item.wxss };
  546. });
  547. this.stationTopTotal = this.stationTop5?.reduce((a, b) => {
  548. return a + b.value * 1;
  549. }, 0);
  550. },
  551. // 获取公司列表
  552. getOrganizationList() {
  553. GetOrganization({ type: this.typeNode }).then(({ data }) => {
  554. this.OrganizationLists = data.filter(
  555. (item) => item.id != this.province.code
  556. );
  557. });
  558. },
  559. //排序方式改变(升序降序)
  560. sortTypechange() {
  561. this.sortType = !this.sortType;
  562. this.cardData = this.getSortList(this.listData, this.sortCode);
  563. },
  564. //排序条件改变
  565. sortFilterchange(val) {
  566. this.sortCode = val;
  567. this.cardData = this.getSortList(this.listData, this.sortCode);
  568. },
  569. //切换日月年
  570. handleChangeDay(val) {
  571. this.datetype = val;
  572. this.getDataDetial();
  573. },
  574. // 切换公司
  575. areaChange(val) {
  576. clearInterval(this.timer);
  577. this.timer = null;
  578. this.resetFilter();
  579. if (val && val.length) {
  580. this.checkNode = val;
  581. let allListData = this.allListData;
  582. const params = val.length > 0 ? val : this.areaCode;
  583. let listData1 = allListData.filter((item) =>
  584. params.some((i) => i == item.id)
  585. );
  586. this.listData = listData1;
  587. this.cardData = this.getSortList(this.listData, this.sortCode);
  588. } else {
  589. this.checkNode = [];
  590. this.listData = this.allListData;
  591. this.cardData = this.getSortList(this.listData, this.sortCode);
  592. }
  593. },
  594. // 切换主题
  595. themeChange(type) {
  596. this.sortCode = "";
  597. this.themeType = type;
  598. },
  599. // 重置筛选条件
  600. resetFilter() {
  601. this.sortCode = "";
  602. this.sortType = true;
  603. },
  604. //列表排序
  605. getSortList(list, sort) {
  606. const _this = this;
  607. if (sort) {
  608. let cloneArr = JSON.parse(JSON.stringify(list));
  609. let sortArr = cloneArr.sort(function (a, b) {
  610. if (_this.sortType) {
  611. return Number(b[sort]) - Number(a[sort]);
  612. } else {
  613. return Number(a[sort]) - Number(b[sort]);
  614. }
  615. });
  616. return sortArr;
  617. } else {
  618. return this.listData;
  619. }
  620. },
  621. },
  622. created() {
  623. this.init();
  624. },
  625. mounted() {},
  626. unmounted() {
  627. clearInterval(this.timer);
  628. this.timer = null;
  629. },
  630. computed: {
  631. benchmarkingVal: {
  632. get() {
  633. return this.a_benchmarkingVal;
  634. },
  635. set(v) {
  636. if (
  637. v != this.a_benchmarkingVal &&
  638. this.benchNum != 0 &&
  639. this.benchChang !== ""
  640. ) {
  641. let t;
  642. if (!v) {
  643. t = "清空";
  644. } else {
  645. t = "切换";
  646. }
  647. this.$confirm(`是否${t}对标方式?`, "提示", {
  648. confirmButtonText: "确定",
  649. cancelButtonText: "取消",
  650. type: "warning",
  651. })
  652. .then(async () => {
  653. this.$message({
  654. type: "success",
  655. message: `${t}成功!`,
  656. offset: 200,
  657. center: true,
  658. customClass: "s",
  659. });
  660. this.selectTime = "";
  661. this.a_benchmarkingVal = v;
  662. this.benchChang = v;
  663. this.$refs.childCard.changenums();
  664. this.displaycheck = false;
  665. })
  666. .catch(() => {
  667. if (!v) {
  668. const te = this.a_benchmarkingVal;
  669. this.a_benchmarkingVal = "";
  670. this.$nextTick(() => {
  671. this.a_benchmarkingVal = te;
  672. });
  673. }
  674. });
  675. } else {
  676. this.a_benchmarkingVal = v;
  677. this.benchChang = v;
  678. }
  679. },
  680. },
  681. sortArrData() {
  682. if (this.themeType === "operate") {
  683. return [
  684. { label: "故障损失", value: "gzssdl" },
  685. { label: "维护损失", value: "whssdl" },
  686. { label: "限电损失", value: "xdssdl" },
  687. { label: "性能损失", value: "xnssdl" },
  688. { label: "受累损失", value: "slssdl" },
  689. ];
  690. } else {
  691. return [
  692. { label: "光能利用率", value: "gnlyl" },
  693. { label: "发电量", value: "fdl" },
  694. { label: "理论发电量", value: "llfdl" },
  695. { label: "损失电量", value: "ssdl" },
  696. ];
  697. }
  698. },
  699. },
  700. watch: {},
  701. };
  702. </script>
  703. <style lang="less" scoped>
  704. .search-form {
  705. /deep/ .el-badge__content--danger {
  706. background: #ff6600;
  707. border: 1px solid #a5a5a5;
  708. }
  709. /deep/ .el-badge__content.is-fixed {
  710. top: 5px;
  711. right: 10px;
  712. }
  713. }
  714. .window {
  715. position: absolute;
  716. top: 88%;
  717. right: -60%;
  718. height: 350px;
  719. border: 1px solid #094493;
  720. border-image: linear-gradient(
  721. 0deg,
  722. rgba(28, 156, 255, 0),
  723. rgba(28, 156, 255, 0.6),
  724. rgba(28, 156, 255, 0.8)
  725. )
  726. 1 1;
  727. background: rgba(29, 34, 43, 0.9) !important;
  728. border-radius: 3px;
  729. box-shadow: 0 0 22px rgba(0, 70, 199, 0.2) inset !important;
  730. .stitBorder {
  731. position: absolute;
  732. width: 70%;
  733. height: 2px;
  734. top: 0;
  735. background-image: linear-gradient(to right, #1c99ff, rgba(0, 70, 199, 0));
  736. }
  737. //box-shadow: 0 0 22px rgb(0 70 199 / 20%) inset !important;
  738. }
  739. .ststTit {
  740. width: 100%;
  741. text-align: center;
  742. height: 44px;
  743. color: #1c99ff;
  744. font-size: 16px;
  745. line-height: 44px;
  746. box-sizing: border-box;
  747. //cursor: move;
  748. }
  749. .lines {
  750. width: 99%;
  751. height: 1px;
  752. margin-left: 1px;
  753. position: relative;
  754. background: #3a3f43;
  755. &:after {
  756. content: "";
  757. display: block;
  758. width: 9px;
  759. height: 1px;
  760. background-color: #fff;
  761. position: absolute;
  762. right: 0;
  763. }
  764. &:before {
  765. content: "";
  766. display: block;
  767. width: 8px;
  768. height: 1px;
  769. background-color: #fff;
  770. position: absolute;
  771. left: 0;
  772. }
  773. }
  774. .overHidd {
  775. overflow: scroll;
  776. height: 70%;
  777. width: 100%;
  778. }
  779. .footerButton {
  780. display: flex;
  781. justify-content: space-between;
  782. width: 90%;
  783. .footTitle {
  784. height: 30px;
  785. line-height: 30px;
  786. display: flex;
  787. p {
  788. font-size: 14px;
  789. font-family: Microsoft YaHei;
  790. font-weight: 300;
  791. color: #d3d3d3;
  792. }
  793. }
  794. .el-button:last-of-type {
  795. width: 88px;
  796. color: rgba(28, 108, 255, 1);
  797. border-radius: 3px;
  798. background: rgba(28, 108, 255, 0);
  799. border: 1px solid !important;
  800. border-image: linear-gradient(0deg, rgba(28, 156, 255, 0), #1d74eb, #1d74eb)
  801. 1 1 !important;
  802. }
  803. /deep/ .el-button.is-round {
  804. padding: 0 10px !important;
  805. }
  806. }
  807. .stations {
  808. height: 39px;
  809. line-height: 39px;
  810. width: 100%;
  811. display: flex;
  812. border-bottom: 1px solid rgba(76, 85, 90, 1);
  813. justify-content: space-between;
  814. font-size: 13px;
  815. padding-right: 20px;
  816. padding-left: 20px;
  817. color: rgba(211, 211, 211, 1);
  818. }
  819. // :deep(.el-input) {
  820. // .el-input__inner {
  821. // background: #222832 !important;
  822. // border: 1px solid #465166 !important;
  823. // height: 25px !important;
  824. // width: 140px;
  825. // }
  826. // }
  827. .photovoltaicStation {
  828. display: flex;
  829. flex-direction: column;
  830. height: 100%;
  831. padding: 0 20px;
  832. .provice-data {
  833. padding: 0 12px;
  834. height: 28px;
  835. line-height: 28px;
  836. background: #1b6bff66;
  837. border-radius: 4px;
  838. // text-align: center;
  839. // margin-right: 15px;
  840. // cursor: pointer;
  841. span {
  842. font-size: 14px;
  843. font-family: Microsoft YaHei;
  844. font-weight: 400;
  845. color: #fff;
  846. }
  847. img {
  848. vertical-align: top;
  849. height: 14px;
  850. margin-top: 6px;
  851. }
  852. }
  853. .photovoltaic-chart3 {
  854. margin-top: 20px;
  855. display: flex;
  856. .chart-card {
  857. height: 284px;
  858. flex: 1;
  859. margin-right: 25px;
  860. background: rgba(11, 11, 11, 0.45);
  861. border-radius: 8px;
  862. padding: 25px 15px;
  863. .chart-card-title-wrapper {
  864. display: flex;
  865. justify-content: space-between;
  866. }
  867. .chart-card-title {
  868. position: relative;
  869. top: -8px;
  870. left: 7px;
  871. font-size: 16px;
  872. color: #fff;
  873. }
  874. .right-bar {
  875. display: flex;
  876. flex-direction: row;
  877. align-items: center;
  878. margin-top: -8px;
  879. }
  880. .day-button {
  881. display: flex;
  882. flex-direction: row;
  883. align-items: center;
  884. justify-content: center;
  885. border: 1px solid #5e6778;
  886. border-radius: 16px;
  887. text-align: center;
  888. margin-right: 20px;
  889. cursor: pointer;
  890. color: #b3b3b3;
  891. font-size: 16px;
  892. height: 32px;
  893. min-width: 54px;
  894. .type-name {
  895. font-size: 14px;
  896. font-family: Microsoft YaHei;
  897. font-weight: 400;
  898. line-height: 32px;
  899. }
  900. }
  901. .type-button {
  902. display: flex;
  903. flex-direction: row;
  904. align-items: center;
  905. justify-content: center;
  906. padding: 0 14px;
  907. background: rgba(0, 70, 199, 0.2);
  908. border-radius: 16px;
  909. text-align: center;
  910. margin-right: 20px;
  911. cursor: pointer;
  912. color: #b3b3b3;
  913. font-size: 16px;
  914. height: 32px;
  915. min-width: 54px;
  916. .type-name {
  917. margin-left: 9px;
  918. font-size: 14px;
  919. font-family: Microsoft YaHei;
  920. font-weight: 400;
  921. line-height: 32px;
  922. }
  923. }
  924. .type-button-on {
  925. display: flex;
  926. flex-direction: row;
  927. align-items: center;
  928. justify-content: center;
  929. padding: 0 14px;
  930. background: rgba(0, 70, 199, 0.5);
  931. border-radius: 16px;
  932. text-align: center;
  933. margin-right: 20px;
  934. cursor: pointer;
  935. color: #1c99ff;
  936. font-size: 16px;
  937. height: 32px;
  938. min-width: 54px;
  939. .type-name {
  940. margin-left: 9px;
  941. color: #ffffff;
  942. font-size: 14px;
  943. font-family: Microsoft YaHei;
  944. font-weight: 400;
  945. line-height: 32px;
  946. }
  947. .day-name {
  948. color: #ffffff;
  949. font-size: 14px;
  950. font-family: Microsoft YaHei;
  951. font-weight: 400;
  952. line-height: 32px;
  953. }
  954. }
  955. .chart-content {
  956. display: flex;
  957. align-items: center;
  958. // justify-content: space-around;
  959. height: 200px;
  960. .chart-pie {
  961. position: relative;
  962. // flex: 1;
  963. width: 52%;
  964. height: 100%;
  965. .chart-total {
  966. position: absolute;
  967. text-align: center;
  968. z-index: 0;
  969. background: url("../../../../assets/img/images/piaBack.png")
  970. no-repeat;
  971. width: 80px;
  972. height: 80px;
  973. background-size: cover;
  974. left: 50%;
  975. margin-left: -40px;
  976. top: 50%;
  977. margin-top: -40px;
  978. .chart-num {
  979. font-family: Bicubik;
  980. font-size: 22px;
  981. color: #fff;
  982. margin-top: 16px;
  983. }
  984. .chart-name {
  985. color: #b3b3b3;
  986. font-size: 14px;
  987. }
  988. }
  989. }
  990. .chart-img {
  991. position: relative;
  992. width: 173px;
  993. height: 156px;
  994. background: url("../../../../assets/img/images/equipment-dashboard.png")
  995. no-repeat;
  996. background-size: cover;
  997. .img-unit {
  998. font-family: Bicubik;
  999. display: flex;
  1000. position: absolute;
  1001. top: 44%;
  1002. left: 19%;
  1003. color: #fff;
  1004. align-items: baseline;
  1005. width: 110px;
  1006. justify-content: center;
  1007. .information {
  1008. font-size: 20px;
  1009. }
  1010. }
  1011. img {
  1012. position: absolute;
  1013. top: 53%;
  1014. left: 9%;
  1015. transform: rotateZ(360deg);
  1016. transform-origin: right top;
  1017. }
  1018. p {
  1019. position: absolute;
  1020. bottom: 0;
  1021. width: 100%;
  1022. text-align: center;
  1023. color: #fff;
  1024. font-size: 12px;
  1025. }
  1026. }
  1027. .chart-online {
  1028. position: relative;
  1029. width: 52%;
  1030. height: 100%;
  1031. .chart-total {
  1032. position: absolute;
  1033. text-align: center;
  1034. z-index: 0;
  1035. background: url("../../../../assets/img/images/piaBack.png")
  1036. no-repeat;
  1037. width: 80px;
  1038. height: 80px;
  1039. background-size: cover;
  1040. left: 50%;
  1041. margin-left: -40px;
  1042. top: 50%;
  1043. margin-top: -40px;
  1044. .chart-num {
  1045. font-family: Bicubik;
  1046. font-size: 22px;
  1047. color: #fff;
  1048. margin-top: 16px;
  1049. }
  1050. .chart-name {
  1051. color: #b3b3b3;
  1052. font-size: 14px;
  1053. }
  1054. }
  1055. }
  1056. .chart-list {
  1057. width: 45%;
  1058. display: flex;
  1059. flex-direction: column;
  1060. text-align: center;
  1061. color: #b3b3b3;
  1062. span {
  1063. display: inline-block;
  1064. }
  1065. .statistics-li {
  1066. display: flex;
  1067. align-items: center;
  1068. margin-bottom: 25px;
  1069. font-size: 14px;
  1070. .statistics-name {
  1071. width: 80px;
  1072. text-align: left;
  1073. }
  1074. .statistics-data {
  1075. font-family: Bicubik;
  1076. color: #fff;
  1077. margin: 0 10px 0 20px;
  1078. width: 90px;
  1079. text-align: right;
  1080. font-size: 16px;
  1081. }
  1082. .statistics-unit {
  1083. color: #fff;
  1084. white-space: nowrap;
  1085. font-size: 12px;
  1086. }
  1087. }
  1088. .state-li {
  1089. display: flex;
  1090. align-items: center;
  1091. justify-content: space-between;
  1092. padding-bottom: 5px;
  1093. border-bottom: 1px solid #4c545a;
  1094. margin-bottom: 10px;
  1095. .station-state {
  1096. display: flex;
  1097. align-items: center;
  1098. font-size: 16px;
  1099. }
  1100. .station-state:before {
  1101. content: "";
  1102. width: 10px;
  1103. height: 10px;
  1104. display: inline-block;
  1105. background: #1c99ff;
  1106. margin-right: 10px;
  1107. border: 2px solid rgba(20, 24, 27, 0.25);
  1108. }
  1109. .station-data {
  1110. font-family: Bicubik;
  1111. color: #1c99ff;
  1112. font-size: 16px;
  1113. .unit {
  1114. color: #b3b3b3;
  1115. font-size: 12px;
  1116. font-family: PingFangSC-Regular, PingFang SC;
  1117. }
  1118. }
  1119. }
  1120. .state-xn {
  1121. .station-state:before {
  1122. background: #1986e0;
  1123. }
  1124. .station-data {
  1125. color: #1986e0;
  1126. }
  1127. }
  1128. .state-gz {
  1129. .station-state:before {
  1130. background: #ba3237;
  1131. }
  1132. .station-data {
  1133. color: #ba3237;
  1134. }
  1135. }
  1136. .state-wh {
  1137. .station-state:before {
  1138. background: #e17d24;
  1139. }
  1140. .station-data {
  1141. color: #e17d24;
  1142. }
  1143. }
  1144. .state-xd {
  1145. .station-state:before {
  1146. background: #c531cb;
  1147. }
  1148. .station-data {
  1149. color: #c531cb;
  1150. }
  1151. }
  1152. .state-sl {
  1153. .station-state:before {
  1154. background: #a7a7a7;
  1155. }
  1156. .station-data {
  1157. color: #a7a7a7;
  1158. }
  1159. }
  1160. .online-li {
  1161. display: flex;
  1162. font-size: 15px;
  1163. margin-bottom: 15px;
  1164. align-items: center;
  1165. justify-content: space-between;
  1166. .online-name:before {
  1167. content: "";
  1168. display: inline-block;
  1169. width: 5px;
  1170. height: 5px;
  1171. background: #a7a7a7;
  1172. margin-right: 5px;
  1173. }
  1174. .online-name {
  1175. display: flex;
  1176. align-items: center;
  1177. font-size: 16px;
  1178. }
  1179. .online-data {
  1180. font-family: Bicubik;
  1181. min-width: 67px;
  1182. text-align: right;
  1183. margin-right: 10px;
  1184. color: #a7a7a7;
  1185. font-size: 16px;
  1186. }
  1187. .online-percent {
  1188. min-width: 55px;
  1189. font-size: 12px;
  1190. color: #b3b3b3;
  1191. text-align: left;
  1192. font-family: PingFangSC-Regular, PingFang SC;
  1193. }
  1194. &.online0 {
  1195. .online-name:before {
  1196. background: #1986e0;
  1197. }
  1198. .online-data {
  1199. color: #1986e0;
  1200. }
  1201. }
  1202. &.online1 {
  1203. .online-name:before {
  1204. background: #ba3237;
  1205. }
  1206. .online-data {
  1207. color: #ba3237;
  1208. }
  1209. }
  1210. &.online2 {
  1211. .online-name:before {
  1212. background: #e17d24;
  1213. }
  1214. .online-data {
  1215. color: #e17d24;
  1216. }
  1217. }
  1218. &.online3 {
  1219. .online-name:before {
  1220. background: #c531cb;
  1221. }
  1222. .online-data {
  1223. color: #c531cb;
  1224. }
  1225. }
  1226. &.online4 {
  1227. .online-name:before {
  1228. background: #a7a7a7;
  1229. }
  1230. .online-data {
  1231. color: #a7a7a7;
  1232. }
  1233. }
  1234. }
  1235. .online-li:last-child {
  1236. margin-bottom: 0;
  1237. }
  1238. }
  1239. }
  1240. }
  1241. .chart-card:last-child {
  1242. margin-right: 0;
  1243. }
  1244. .power-statistics {
  1245. .chart-content {
  1246. margin-left: 66px;
  1247. .chart-img {
  1248. margin-right: 52px;
  1249. position: relative;
  1250. top: -13px;
  1251. }
  1252. .chart-list {
  1253. width: auto;
  1254. }
  1255. }
  1256. }
  1257. }
  1258. .photovoltaic-filter {
  1259. display: flex;
  1260. justify-content: space-between;
  1261. align-items: center;
  1262. .photovoltaic-left {
  1263. display: flex;
  1264. height: 50px;
  1265. align-items: center;
  1266. color: #b3b3b3;
  1267. .photovoltaic-sort {
  1268. //display: flex;
  1269. //margin-right: 10px;
  1270. padding: 0 4px;
  1271. color: #1b99ff;
  1272. cursor: pointer;
  1273. //.active-sort {
  1274. // cursor: pointer;
  1275. // margin-right: 10px;
  1276. //
  1277. // i {
  1278. // font-size: 14px;
  1279. // }
  1280. //}
  1281. //
  1282. //.actived-sort {
  1283. // color: rgb(27, 124, 204);
  1284. //}
  1285. }
  1286. .search-form {
  1287. display: flex;
  1288. align-items: center;
  1289. margin-left: 10px;
  1290. .form-box {
  1291. display: flex;
  1292. height: 50px;
  1293. align-items: center;
  1294. margin-right: 10px;
  1295. position: relative;
  1296. .theme-change {
  1297. display: flex;
  1298. align-items: center;
  1299. cursor: pointer;
  1300. margin-right: 10px;
  1301. i {
  1302. margin-right: 5px;
  1303. font-size: 16px;
  1304. }
  1305. span {
  1306. font-size: 14px;
  1307. }
  1308. }
  1309. .active-theme {
  1310. color: #1b99ff;
  1311. }
  1312. :deep(.el-input__inner) {
  1313. color: #b3b3b3;
  1314. }
  1315. .label {
  1316. white-space: nowrap;
  1317. margin-right: 5px;
  1318. }
  1319. }
  1320. .search-btn {
  1321. background: rgba(0, 69, 199, 0.45);
  1322. width: 100px;
  1323. height: 25px;
  1324. line-height: 25px;
  1325. text-align: center;
  1326. border-radius: 10px;
  1327. }
  1328. }
  1329. }
  1330. .photovoltaic-toggle {
  1331. display: flex;
  1332. align-items: center;
  1333. border: 1px solid #455066;
  1334. border-radius: 13px;
  1335. height: 25px;
  1336. box-sizing: border-box;
  1337. div:first-child {
  1338. // border-right: 1px solid #455066;
  1339. }
  1340. div {
  1341. width: 50px;
  1342. height: 100%;
  1343. background: #242b37;
  1344. cursor: pointer;
  1345. display: flex;
  1346. align-items: center;
  1347. justify-content: center;
  1348. i {
  1349. font-size: 16px;
  1350. }
  1351. }
  1352. .type-card {
  1353. border-top-left-radius: 12px;
  1354. border-bottom-left-radius: 12px;
  1355. }
  1356. .type-list {
  1357. border-top-right-radius: 12px;
  1358. border-bottom-right-radius: 12px;
  1359. }
  1360. .actived-toggle {
  1361. background: #1c3c77;
  1362. i {
  1363. color: #fff;
  1364. }
  1365. }
  1366. }
  1367. }
  1368. .photovoltaic-data {
  1369. height: 624px;
  1370. }
  1371. }
  1372. </style>