index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. <template>
  2. <div class="swiperBox">
  3. <el-carousel style="width: 100%; margin: 5vh 0" trigger="click" type="card" height="80vh" :autoplay="false" indicator-position="none" :initial-index="1" arrow="none" @change="changeSwiper">
  4. <!-- card-1 -->
  5. <el-carousel-item style="padding: 20px; background: rgb(4, 12, 11)">
  6. <div class="itemBox">
  7. <p class="itemTitle">
  8. 记录查询
  9. </p>
  10. <div class="df-table">
  11. <div class="sjcx-item" v-for="item in earlyAlarmColumn" :key="item" @click="jumpUrl(item.url)">
  12. <div class="sjcx-name">{{item.name}}</div>
  13. <div class="sjcx-value">{{earlyAlarmData[item.key] || '0'}}</div>
  14. </div>
  15. </div>
  16. </div>
  17. </el-carousel-item>
  18. <!-- card-2 -->
  19. <el-carousel-item style="padding: 20px; background: rgb(4, 12, 11)">
  20. <div class="itemBox">
  21. <p class="itemTitle">
  22. 报表管理
  23. <!-- <i class="itemMoreBtn el-icon-more" @click="jumpUrl('/realSearch')"></i> -->
  24. </p>
  25. <div class="imageBox1">
  26. <div class="imgItem1" @click="jumpUrl('/others/tjfx')">
  27. <el-image class="img1" src="./static/img/o统计分析.png" fit="fill" />
  28. <p class="imgTitle">统计分析</p>
  29. </div>
  30. <div class="imgItem1" @click="jumpUrl('/others/bdzcx')">
  31. <el-image class="img1" src="./static/img/o表底值查询.png" fit="fill" />
  32. <p class="imgTitle">表底值查询</p>
  33. </div>
  34. <div class="imgItem1" @click="jumpUrl('/others/xnyrb')">
  35. <el-image class="img1" src="./static/img/o新能源日报.png" fit="fill" />
  36. <p class="imgTitle">新能源日报</p>
  37. </div>
  38. <div class="imgItem1" @click="jumpUrl('/others/xnyfdscyb')">
  39. <el-image class="img1" src="./static/img/o新能源月报.png" fit="fill" />
  40. <p class="imgTitle">新能源风电生产月报</p>
  41. </div>
  42. <div class="imgItem1" @click="jumpUrl('/others/fdczzdy')">
  43. <el-image class="img1" src="./static/img/o风场自定义.png" fit="fill" />
  44. <p class="imgTitle">风电场站自定义</p>
  45. </div>
  46. <div class="imgItem1" @click="jumpUrl('/others/fdxmzdy')">
  47. <el-image class="img1" src="./static/img/o风电自定义.png" fit="fill" />
  48. <p class="imgTitle">风电项目自定义</p>
  49. </div>
  50. </div>
  51. </div>
  52. </el-carousel-item>
  53. <!-- card-3 -->
  54. <el-carousel-item style="padding: 20px; background: rgb(4, 12, 11)">
  55. <div class="itemBox">
  56. <p class="itemTitle">
  57. 数据查询
  58. </p>
  59. <div class="df-table" @click="jumpUrl('/others/realSearch')">
  60. <div class="sjcx-item" v-for="(value, key) in wppointColumn" :key="key">
  61. <div class="sjcx-name">{{value}}</div>
  62. <div class="sjcx-value">{{wppointnum[key]}}</div>
  63. </div>
  64. </div>
  65. </div>
  66. </el-carousel-item>
  67. <!-- card-4 -->
  68. <!-- <el-carousel-item style="padding: 20px; background: rgb(4, 12, 11)">
  69. <div class="itemBox">
  70. <p class="itemTitle">
  71. 统计分析
  72. <i class="itemMoreBtn el-icon-more" @click="jumpUrl('/realSearch')"></i>
  73. </p>
  74. <ComTable height="30vh" :data="tableData7" :pageSize="20">
  75. </ComTable>
  76. <ComTable height="30vh" :data="tableData8" :pageSize="20">
  77. </ComTable>
  78. </div>
  79. </el-carousel-item> -->
  80. <!-- card-5 -->
  81. <el-carousel-item style="padding: 20px; background: rgb(4, 12, 11)">
  82. <div class="itemBox">
  83. <p class="itemTitle">
  84. 专家知识
  85. <!-- <i class="itemMoreBtn el-icon-more" @click="jumpUrl('/realSearch')"></i> -->
  86. </p>
  87. <div class="df-table">
  88. <ComTable height="30vh" :data="tableData3" >
  89. </ComTable>
  90. </div>
  91. </div>
  92. </el-carousel-item>
  93. </el-carousel>
  94. </div>
  95. </template>
  96. <script>
  97. import $ from "jquery";
  98. import ComTable from "./table.vue";
  99. export default {
  100. // 名称
  101. name: "cutAnalyse",
  102. // 使用组件
  103. components: {
  104. ComTable,
  105. },
  106. // 数据
  107. data() {
  108. const that = this;
  109. return {
  110. wppointnum: {},
  111. wppointColumn: {
  112. MHS_FDC: "麻黄山风电场",
  113. NSS_FDC: "牛首山风电场",
  114. QS_FDC: "青山风电场",
  115. SBQ_FDC: "石板泉风电场",
  116. XS_FDC: "香山风电场",
  117. DWK_GDC: "大武口电站",
  118. PL_GDC: "平罗光伏电站",
  119. XH_GDC: "宣和光伏发电站",
  120. MCH_GDC: "马场湖光发伏电站",
  121. JSFW: "计算服务测点",
  122. },
  123. earlyAlarmData: {},
  124. earlyAlarmColumn: [
  125. { name: "升压站告警", key: "syzgj", url: "/others/alarmCenter/boosterAlarm" },
  126. { name: "升压站动作", key: "", url: "/others/alarmCenter/boosterAlarm" },
  127. { name: "限电事件", key: "xd", url: "/others/alarmCenter/xdgl" },
  128. { name: "停机事件", key: "tj", url: "/others/alarmCenter/tjsj" },
  129. { name: "状态转换记录", key: "", url: "" },
  130. { name: "风机告警", key: "fjgj", url: "/others/alarmCenter/scadaAlarm" },
  131. { name: "风机预警", key: "fjyj", url: "/others/alarmCenter/alarmcenter" },
  132. { name: "操作记录", key: "", url: "" },
  133. ],
  134. tableData1: {
  135. column: [
  136. {
  137. name: "名称",
  138. field: "pointId",
  139. is_num: false,
  140. is_light: false,
  141. sortable: true,
  142. },
  143. {
  144. name: "发电量",
  145. field: "pointName",
  146. is_num: false,
  147. is_light: false,
  148. sortable: true,
  149. },
  150. {
  151. name: "设备结构",
  152. field: "timeDate",
  153. is_num: false,
  154. is_light: false,
  155. sortable: true,
  156. },
  157. {
  158. name: "关键参数",
  159. field: "value",
  160. is_num: false,
  161. is_light: false,
  162. sortable: true,
  163. },
  164. ],
  165. data: [],
  166. },
  167. tableData2: {
  168. column: [
  169. {
  170. name: "状态",
  171. field: "pointId",
  172. is_num: false,
  173. is_light: false,
  174. sortable: true,
  175. },
  176. {
  177. name: "当日数量",
  178. field: "pointName",
  179. is_num: false,
  180. is_light: false,
  181. sortable: true,
  182. },
  183. {
  184. name: "类型",
  185. field: "timeDate",
  186. is_num: false,
  187. is_light: false,
  188. sortable: true,
  189. },
  190. {
  191. name: "等级",
  192. field: "value",
  193. is_num: false,
  194. is_light: false,
  195. sortable: true,
  196. },
  197. ],
  198. data: [],
  199. },
  200. tableData3: {
  201. column: [
  202. {
  203. name: "名称",
  204. field: "pointId",
  205. is_num: false,
  206. is_light: false,
  207. sortable: true,
  208. },
  209. {
  210. name: "数量",
  211. field: "pointName",
  212. is_num: false,
  213. is_light: false,
  214. sortable: true,
  215. },
  216. ],
  217. data: [],
  218. },
  219. tableData4: {
  220. column: [
  221. {
  222. name: "名称",
  223. field: "pointId",
  224. is_num: false,
  225. is_light: false,
  226. sortable: true,
  227. },
  228. {
  229. name: "数量",
  230. field: "pointName",
  231. is_num: false,
  232. is_light: false,
  233. sortable: true,
  234. },
  235. ],
  236. data: [],
  237. },
  238. };
  239. },
  240. // 函数
  241. methods: {
  242. // 切换走马灯,并重新渲染样式
  243. changeSwiper(index) {
  244. this.$nextTick(() => {
  245. const swiperDom = $(".swiperBox .el-carousel__item");
  246. swiperDom
  247. .eq(index)
  248. .css({ background: "rgb(4, 12, 11)", border: "1px solid #05bb4c" });
  249. for (let i = 0; i < swiperDom.length; i++) {
  250. if (i !== index) {
  251. swiperDom.eq(i).find(".el-carousel__mask").css({
  252. background: "rgb(4, 12, 11)",
  253. });
  254. swiperDom.eq(i).css({
  255. background: "rgb(4, 12, 11)",
  256. border: "1px solid rgba(5, 187, 76, 0.5)",
  257. });
  258. }
  259. }
  260. });
  261. },
  262. // 页面跳转
  263. jumpUrl(url) {
  264. this.$router.push(url);
  265. },
  266. //获取表格数据
  267. getTableData() {
  268. let that = this;
  269. let tableArr1 = [
  270. {
  271. index: 1,
  272. pointId: "青山风电场",
  273. pointName: 3763,
  274. timeDate: "1号机",
  275. value: "16.93",
  276. },
  277. {
  278. index: 2,
  279. pointId: "石板泉风电场",
  280. pointName: 4500,
  281. timeDate: "2号机",
  282. value: "20.56",
  283. },
  284. {
  285. index: 3,
  286. pointId: "牛首山风电场",
  287. pointName: 3863,
  288. timeDate: "3号机",
  289. value: "38",
  290. },
  291. {
  292. index: 4,
  293. pointId: "香山风电场",
  294. pointName: 3654,
  295. timeDate: "4号机",
  296. value: "54",
  297. },
  298. {
  299. index: 5,
  300. pointId: "麻黄山风电场",
  301. pointName: 1863,
  302. timeDate: "5号机",
  303. value: "18",
  304. },
  305. ];
  306. that.tableData1.data = tableArr1;
  307. console.log("tableData1:", that.tableData1);
  308. let tableArr2 = [
  309. {
  310. index: 1,
  311. pointId: "停机事件管理",
  312. pointName: 11.93,
  313. timeDate: "升压站动作",
  314. value: "2",
  315. },
  316. {
  317. index: 2,
  318. pointId: "限电管理",
  319. pointName: 21.56,
  320. timeDate: "升压站告警",
  321. value: "5",
  322. },
  323. {
  324. index: 3,
  325. pointId: "状态转换记录",
  326. pointName: 82,
  327. timeDate: "风机告警",
  328. value: "3",
  329. },
  330. {
  331. index: 4,
  332. pointId: "操作记录",
  333. pointName: 54,
  334. timeDate: "风机预警",
  335. value: "1",
  336. },
  337. ];
  338. that.tableData2.data = tableArr2;
  339. console.log("tableData2:", that.tableData2);
  340. let tableArr3 = [
  341. {
  342. index: 1,
  343. pointId: "故障知识列表",
  344. pointName: 16.93,
  345. },
  346. {
  347. index: 2,
  348. pointId: "安全措施知识",
  349. pointName: 20.56,
  350. },
  351. {
  352. index: 3,
  353. pointId: "排查检修方案",
  354. pointName: 38,
  355. },
  356. {
  357. index: 4,
  358. pointId: "预警知识",
  359. pointName: 54,
  360. },
  361. {
  362. index: 5,
  363. pointId: "特征参数",
  364. pointName: 44,
  365. },
  366. {
  367. index: 6,
  368. pointId: "风险辨识知识",
  369. pointName: 24,
  370. },
  371. {
  372. index: 7,
  373. pointId: "作业指导知识",
  374. pointName: 14,
  375. },
  376. ];
  377. that.tableData3.data = tableArr3;
  378. console.log("tableData3:", that.tableData3);
  379. let tableArr4 = [
  380. {
  381. index: 1,
  382. pointId: "风电场站自定义",
  383. pointName: 16.93,
  384. },
  385. {
  386. index: 2,
  387. pointId: "风电项目自定义",
  388. pointName: 20.56,
  389. },
  390. {
  391. index: 3,
  392. pointId: "光伏场站自定义",
  393. pointName: 38,
  394. },
  395. {
  396. index: 4,
  397. pointId: "光伏项目自定义",
  398. pointName: 54,
  399. },
  400. ];
  401. that.tableData4.data = tableArr4;
  402. console.log("tableData4:", that.tableData4);
  403. },
  404. getWppointnum() {
  405. const that = this;
  406. that.API.requestData({
  407. method: "POST",
  408. subUrl: "yaw/getWppointnum",
  409. success(res) {
  410. that.wppointnum = res.data;
  411. },
  412. });
  413. },
  414. async getEarlyAlarmData() {
  415. const that = this;
  416. const {data} = await that.API.requestData({
  417. method: "GET",
  418. baseURL: "http://192.168.1.18:8075/",
  419. subUrl: "alarm/count/todaycount",
  420. success(res) {
  421. },
  422. });
  423. this.earlyAlarmData = data.data;
  424. },
  425. },
  426. created() {},
  427. mounted() {
  428. let that = this;
  429. this.$nextTick(() => {
  430. this.changeSwiper(1);
  431. });
  432. that.getTableData();
  433. this.getWppointnum();
  434. this.getEarlyAlarmData();
  435. },
  436. unmounted() {},
  437. };
  438. </script>
  439. <style lang="less" scoped>
  440. .swiperBox,
  441. .itemBox {
  442. width: 100%;
  443. height: 100%;
  444. font-size: 20px;
  445. .df-table {
  446. /deep/ .com-table thead tr th {
  447. background-color: rgba(83, 98, 104, 0.2);
  448. height: 30px;
  449. line-height: 30px;
  450. color: #9ca5a8;
  451. font-weight: 400;
  452. font-size: 20px !important;
  453. position: sticky;
  454. top: 0;
  455. cursor: pointer;
  456. }
  457. /deep/ .com-table tbody tr td {
  458. padding: 4px;
  459. color: #393a3a;
  460. text-align: center;
  461. font-size: 20px !important;
  462. white-space: nowrap;
  463. overflow: hidden;
  464. text-overflow: ellipsis;
  465. }
  466. .sjcx-item:nth-child(2n) {
  467. background-color: rgba(96, 103, 105, 0.2);
  468. }
  469. .sjcx-item:hover {
  470. color: #05bb4c;
  471. }
  472. .sjcx-item {
  473. cursor: pointer;
  474. // background-color: #edbf03;
  475. display: flex;
  476. height: 6.68vh;
  477. line-height: 6.68vh;
  478. font-size: 18pt;
  479. text-align: center;
  480. color: #9ca5a8;
  481. .sjcx-name {
  482. // background-color:aqua;
  483. flex: 0 0 50%;
  484. }
  485. .sjcx-value {
  486. // text-align: left;
  487. // background-color:rosybrown;
  488. flex: 0 0 50%;
  489. }
  490. }
  491. }
  492. .itemTitle {
  493. width: 100%;
  494. display: flex;
  495. justify-content: center;
  496. align-items: center;
  497. position: relative;
  498. .itemMoreBtn {
  499. cursor: pointer;
  500. font-size: 22px;
  501. position: absolute;
  502. right: 0;
  503. top: 0;
  504. }
  505. }
  506. .inline {
  507. display: flex;
  508. justify-content: space-around;
  509. align-items: center;
  510. font-size: 24px;
  511. margin-bottom: 30px;
  512. width: 100%;
  513. margin: 0 0 30px 0;
  514. transition: 0.2s;
  515. .l {
  516. color: #b3bdc0;
  517. width: 46%;
  518. display: flex;
  519. justify-content: flex-end;
  520. align-items: center;
  521. margin-right: 4%;
  522. transition: 0.2s;
  523. }
  524. .r {
  525. color: #05bb4c;
  526. position: relative;
  527. width: 46%;
  528. display: flex;
  529. justify-content: start;
  530. align-items: center;
  531. margin-left: 4%;
  532. &::after {
  533. content: "";
  534. position: absolute;
  535. height: 10px;
  536. left: 30px;
  537. top: calc(50% - 5px);
  538. background-color: #edbf03;
  539. border-radius: 2px;
  540. }
  541. }
  542. .r1::after {
  543. width: 30px;
  544. }
  545. .r2::after {
  546. width: 60px;
  547. }
  548. .r3::after {
  549. width: 90px;
  550. }
  551. .r4::after {
  552. width: 120px;
  553. }
  554. &:hover {
  555. width: 80%;
  556. margin: 0 10% 30px 10%;
  557. color: #05bb4c;
  558. transition: 0.2s;
  559. }
  560. &:hover .l {
  561. color: #05bb4c;
  562. transition: 0.2s;
  563. }
  564. }
  565. .imageBox {
  566. width: 100%;
  567. display: flex;
  568. // justify-content: start;
  569. justify-content: space-around;
  570. align-items: center;
  571. flex-wrap: wrap;
  572. margin-top: 100px;
  573. .imgItem {
  574. cursor: pointer;
  575. border: none;
  576. margin-right: 1%;
  577. margin-bottom: 20px;
  578. display: flex;
  579. justify-content: start;
  580. align-items: center;
  581. flex-direction: column;
  582. // width: 32%;
  583. width: 45%;
  584. .img {
  585. width: 100%;
  586. // height: 150px;
  587. height: 300px;
  588. border: 1px solid #b3bdc0;
  589. transition: 0.2s;
  590. &:hover {
  591. border: 1px solid #05bb4c;
  592. transition: 0.2s;
  593. }
  594. }
  595. p {
  596. width: 100%;
  597. font-size: 16px;
  598. color: #b3bdc0;
  599. text-align: center;
  600. transition: 0.2s;
  601. }
  602. &:hover p {
  603. transition: 0.2s;
  604. color: #05bb4c;
  605. }
  606. }
  607. }
  608. .imageBox1 {
  609. width: 100%;
  610. display: flex;
  611. // justify-content: start;
  612. justify-content: space-around;
  613. align-items: center;
  614. flex-wrap: wrap;
  615. margin-top: 100px;
  616. .imgItem1 {
  617. cursor: pointer;
  618. border: none;
  619. margin-right: 1%;
  620. margin-bottom: 20px;
  621. display: flex;
  622. // justify-content: start;
  623. justify-content: space-around;
  624. align-items: center;
  625. flex-direction: column;
  626. width: 32%;
  627. .img1 {
  628. width: 100%;
  629. height: 150px;
  630. border: 1px solid #b3bdc0;
  631. transition: 0.2s;
  632. &:hover {
  633. border: 1px solid #05bb4c;
  634. transition: 0.2s;
  635. }
  636. }
  637. p {
  638. width: 100%;
  639. font-size: 16px;
  640. color: #b3bdc0;
  641. text-align: center;
  642. transition: 0.2s;
  643. }
  644. &:hover p {
  645. transition: 0.2s;
  646. color: #05bb4c;
  647. }
  648. }
  649. }
  650. .imageBox2 {
  651. width: 100%;
  652. display: flex;
  653. justify-content: space-around;
  654. align-items: center;
  655. flex-wrap: wrap;
  656. margin-top: 100px;
  657. .imgItem2 {
  658. cursor: pointer;
  659. border: none;
  660. margin-right: 1%;
  661. margin-bottom: 20px;
  662. display: flex;
  663. justify-content: space-around;
  664. align-items: center;
  665. flex-direction: column;
  666. width: 45%;
  667. .img2 {
  668. width: 100%;
  669. height: 180px;
  670. border: 1px solid #b3bdc0;
  671. transition: 0.2s;
  672. &:hover {
  673. border: 1px solid #05bb4c;
  674. transition: 0.2s;
  675. }
  676. }
  677. p {
  678. width: 100%;
  679. font-size: 16px;
  680. color: #b3bdc0;
  681. text-align: center;
  682. transition: 0.2s;
  683. }
  684. &:hover p {
  685. transition: 0.2s;
  686. color: #05bb4c;
  687. }
  688. }
  689. }
  690. .iframe {
  691. border: 0;
  692. overflow: scroll;
  693. background: #fff;
  694. }
  695. }
  696. </style>
  697. <style lang="less">
  698. .itemBox {
  699. .el-form-item,
  700. .el-form-item__label {
  701. font-size: 16px;
  702. }
  703. .el-form-item__label {
  704. text-align: left;
  705. }
  706. }
  707. </style>