index.vue 20 KB

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