index.vue 18 KB

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