123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753 |
- <template>
- <div class="swiperBox">
- <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">
- <!-- card-1 -->
- <el-carousel-item style="padding: 20px; background: rgb(4, 12, 11)">
- <div class="itemBox">
- <p class="itemTitle">
- 记录查询
- </p>
- <div class="df-table">
- <div class="sjcx-item" v-for="item in earlyAlarmColumn" :key="item" @click="jumpUrl(item.url)">
- <div class="sjcx-name">{{item.name}}</div>
- <div class="sjcx-value">{{earlyAlarmData[item.key] || '0'}}</div>
- </div>
- </div>
- </div>
- </el-carousel-item>
-
- <!-- card-2 -->
- <el-carousel-item style="padding: 20px; background: rgb(4, 12, 11)">
- <div class="itemBox">
- <p class="itemTitle">
- 报表管理
- <!-- <i class="itemMoreBtn el-icon-more" @click="jumpUrl('/realSearch')"></i> -->
- </p>
- <div class="imageBox1">
- <div class="imgItem1" @click="jumpUrl('/others/tjfx')">
- <el-image class="img1" src="./static/img/o统计分析.png" fit="fill" />
- <p class="imgTitle">统计分析</p>
- </div>
- <div class="imgItem1" @click="jumpUrl('/others/bdzcx')">
- <el-image class="img1" src="./static/img/o表底值查询.png" fit="fill" />
- <p class="imgTitle">表底值查询</p>
- </div>
- <div class="imgItem1" @click="jumpUrl('/others/xnyrb')">
- <el-image class="img1" src="./static/img/o新能源日报.png" fit="fill" />
- <p class="imgTitle">新能源日报</p>
- </div>
- <div class="imgItem1" @click="jumpUrl('/others/xnyfdscyb')">
- <el-image class="img1" src="./static/img/o新能源月报.png" fit="fill" />
- <p class="imgTitle">新能源风电生产月报</p>
- </div>
- <div class="imgItem1" @click="jumpUrl('/others/fdczzdy')">
- <el-image class="img1" src="./static/img/o风场自定义.png" fit="fill" />
- <p class="imgTitle">风电场站自定义</p>
- </div>
- <div class="imgItem1" @click="jumpUrl('/others/fdxmzdy')">
- <el-image class="img1" src="./static/img/o风电自定义.png" fit="fill" />
- <p class="imgTitle">风电项目自定义</p>
- </div>
- </div>
- </div>
- </el-carousel-item>
- <!-- card-3 -->
- <el-carousel-item style="padding: 20px; background: rgb(4, 12, 11)">
- <div class="itemBox">
- <p class="itemTitle">
- 数据查询
- </p>
- <div class="df-table" @click="jumpUrl('/others/realSearch')">
- <div class="sjcx-item" v-for="(value, key) in wppointColumn" :key="key">
- <div class="sjcx-name">{{value}}</div>
- <div class="sjcx-value">{{wppointnum[key]}}</div>
- </div>
- </div>
- </div>
- </el-carousel-item>
- <!-- card-4 -->
- <!-- <el-carousel-item style="padding: 20px; background: rgb(4, 12, 11)">
- <div class="itemBox">
- <p class="itemTitle">
- 统计分析
- <i class="itemMoreBtn el-icon-more" @click="jumpUrl('/realSearch')"></i>
- </p>
- <ComTable height="30vh" :data="tableData7" :pageSize="20">
- </ComTable>
- <ComTable height="30vh" :data="tableData8" :pageSize="20">
- </ComTable>
- </div>
- </el-carousel-item> -->
- <!-- card-5 -->
- <el-carousel-item style="padding: 20px; background: rgb(4, 12, 11)">
- <div class="itemBox">
- <p class="itemTitle">
- 专家知识
- <!-- <i class="itemMoreBtn el-icon-more" @click="jumpUrl('/realSearch')"></i> -->
- </p>
- <div class="df-table">
- <ComTable height="30vh" :data="tableData3" >
- </ComTable>
- </div>
- </div>
- </el-carousel-item>
-
- </el-carousel>
- </div>
- </template>
- <script>
- import $ from "jquery";
- import ComTable from "./table.vue";
- export default {
- // 名称
- name: "cutAnalyse",
- // 使用组件
- components: {
- ComTable,
- },
- // 数据
- data() {
- const that = this;
- return {
- wppointnum: {},
- wppointColumn: {
- MHS_FDC: "麻黄山风电场",
- NSS_FDC: "牛首山风电场",
- QS_FDC: "青山风电场",
- SBQ_FDC: "石板泉风电场",
- XS_FDC: "香山风电场",
- DWK_GDC: "大武口电站",
- PL_GDC: "平罗光伏电站",
- XH_GDC: "宣和光伏发电站",
- MCH_GDC: "马场湖光发伏电站",
- JSFW: "计算服务测点",
- },
- earlyAlarmData: {},
- earlyAlarmColumn: [
- { name: "升压站告警", key: "syzgj", url: "/others/alarmCenter/boosterAlarm" },
- { name: "升压站动作", key: "", url: "/others/alarmCenter/boosterAlarm" },
- { name: "限电事件", key: "xd", url: "/others/alarmCenter/xdgl" },
- { name: "停机事件", key: "tj", url: "/others/alarmCenter/tjsj" },
- { name: "状态转换记录", key: "", url: "" },
- { name: "风机告警", key: "fjgj", url: "/others/alarmCenter/scadaAlarm" },
- { name: "风机预警", key: "fjyj", url: "/others/alarmCenter/alarmcenter" },
- { name: "操作记录", key: "", url: "" },
- ],
- tableData1: {
- column: [
- {
- name: "名称",
- field: "pointId",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- {
- name: "发电量",
- field: "pointName",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- {
- name: "设备结构",
- field: "timeDate",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- {
- name: "关键参数",
- field: "value",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- ],
- data: [],
- },
- tableData2: {
- column: [
- {
- name: "状态",
- field: "pointId",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- {
- name: "当日数量",
- field: "pointName",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- {
- name: "类型",
- field: "timeDate",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- {
- name: "等级",
- field: "value",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- ],
- data: [],
- },
- tableData3: {
- column: [
- {
- name: "名称",
- field: "pointId",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- {
- name: "数量",
- field: "pointName",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- ],
- data: [],
- },
- tableData4: {
- column: [
- {
- name: "名称",
- field: "pointId",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- {
- name: "数量",
- field: "pointName",
- is_num: false,
- is_light: false,
- sortable: true,
- },
- ],
- data: [],
- },
- };
- },
- // 函数
- methods: {
- // 切换走马灯,并重新渲染样式
- changeSwiper(index) {
- this.$nextTick(() => {
- const swiperDom = $(".swiperBox .el-carousel__item");
- swiperDom
- .eq(index)
- .css({ background: "rgb(4, 12, 11)", border: "1px solid #05bb4c" });
- for (let i = 0; i < swiperDom.length; i++) {
- if (i !== index) {
- swiperDom.eq(i).find(".el-carousel__mask").css({
- background: "rgb(4, 12, 11)",
- });
- swiperDom.eq(i).css({
- background: "rgb(4, 12, 11)",
- border: "1px solid rgba(5, 187, 76, 0.5)",
- });
- }
- }
- });
- },
- // 页面跳转
- jumpUrl(url) {
- this.$router.push(url);
- },
- //获取表格数据
- getTableData() {
- let that = this;
- let tableArr1 = [
- {
- index: 1,
- pointId: "青山风电场",
- pointName: 3763,
- timeDate: "1号机",
- value: "16.93",
- },
- {
- index: 2,
- pointId: "石板泉风电场",
- pointName: 4500,
- timeDate: "2号机",
- value: "20.56",
- },
- {
- index: 3,
- pointId: "牛首山风电场",
- pointName: 3863,
- timeDate: "3号机",
- value: "38",
- },
- {
- index: 4,
- pointId: "香山风电场",
- pointName: 3654,
- timeDate: "4号机",
- value: "54",
- },
- {
- index: 5,
- pointId: "麻黄山风电场",
- pointName: 1863,
- timeDate: "5号机",
- value: "18",
- },
- ];
- that.tableData1.data = tableArr1;
- console.log("tableData1:", that.tableData1);
- let tableArr2 = [
- {
- index: 1,
- pointId: "停机事件管理",
- pointName: 11.93,
- timeDate: "升压站动作",
- value: "2",
- },
- {
- index: 2,
- pointId: "限电管理",
- pointName: 21.56,
- timeDate: "升压站告警",
- value: "5",
- },
- {
- index: 3,
- pointId: "状态转换记录",
- pointName: 82,
- timeDate: "风机告警",
- value: "3",
- },
- {
- index: 4,
- pointId: "操作记录",
- pointName: 54,
- timeDate: "风机预警",
- value: "1",
- },
- ];
- that.tableData2.data = tableArr2;
- console.log("tableData2:", that.tableData2);
- let tableArr3 = [
- {
- index: 1,
- pointId: "故障知识列表",
- pointName: 16.93,
- },
- {
- index: 2,
- pointId: "安全措施知识",
- pointName: 20.56,
- },
- {
- index: 3,
- pointId: "排查检修方案",
- pointName: 38,
- },
- {
- index: 4,
- pointId: "预警知识",
- pointName: 54,
- },
- {
- index: 5,
- pointId: "特征参数",
- pointName: 44,
- },
- {
- index: 6,
- pointId: "风险辨识知识",
- pointName: 24,
- },
- {
- index: 7,
- pointId: "作业指导知识",
- pointName: 14,
- },
- ];
- that.tableData3.data = tableArr3;
- console.log("tableData3:", that.tableData3);
- let tableArr4 = [
- {
- index: 1,
- pointId: "风电场站自定义",
- pointName: 16.93,
- },
- {
- index: 2,
- pointId: "风电项目自定义",
- pointName: 20.56,
- },
- {
- index: 3,
- pointId: "光伏场站自定义",
- pointName: 38,
- },
- {
- index: 4,
- pointId: "光伏项目自定义",
- pointName: 54,
- },
- ];
- that.tableData4.data = tableArr4;
- console.log("tableData4:", that.tableData4);
- },
- getWppointnum() {
- const that = this;
- that.API.requestData({
- method: "POST",
- subUrl: "yaw/getWppointnum",
- success(res) {
- that.wppointnum = res.data;
- },
- });
- },
- async getEarlyAlarmData() {
- const that = this;
- const {data} = await that.API.requestData({
- method: "GET",
- baseURL: "http://192.168.1.18:8075/",
- subUrl: "alarm/count/todaycount",
- success(res) {
- },
- });
- this.earlyAlarmData = data.data;
- },
- },
- created() {},
- mounted() {
- let that = this;
- this.$nextTick(() => {
- this.changeSwiper(1);
- });
- that.getTableData();
- this.getWppointnum();
- this.getEarlyAlarmData();
- },
- unmounted() {},
- };
- </script>
- <style lang="less" scoped>
- .swiperBox,
- .itemBox {
- width: 100%;
- height: 100%;
- font-size: 20px;
- .df-table {
- /deep/ .com-table thead tr th {
- background-color: rgba(83, 98, 104, 0.2);
- height: 30px;
- line-height: 30px;
- color: #9ca5a8;
- font-weight: 400;
- font-size: 20px !important;
- position: sticky;
- top: 0;
- cursor: pointer;
- }
- /deep/ .com-table tbody tr td {
- padding: 4px;
- color: #393a3a;
- text-align: center;
- font-size: 20px !important;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .sjcx-item:nth-child(2n) {
- background-color: rgba(96, 103, 105, 0.2);
- }
- .sjcx-item:hover {
- color: #05bb4c;
- }
- .sjcx-item {
- cursor: pointer;
- // background-color: #edbf03;
- display: flex;
- height: 6.68vh;
- line-height: 6.68vh;
- font-size: 18pt;
- text-align: center;
- color: #9ca5a8;
- .sjcx-name {
- // background-color:aqua;
- flex: 0 0 50%;
- }
- .sjcx-value {
- // text-align: left;
- // background-color:rosybrown;
- flex: 0 0 50%;
- }
- }
- }
- .itemTitle {
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- position: relative;
- .itemMoreBtn {
- cursor: pointer;
- font-size: 22px;
- position: absolute;
- right: 0;
- top: 0;
- }
- }
- .inline {
- display: flex;
- justify-content: space-around;
- align-items: center;
- font-size: 24px;
- margin-bottom: 30px;
- width: 100%;
- margin: 0 0 30px 0;
- transition: 0.2s;
- .l {
- color: #b3bdc0;
- width: 46%;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- margin-right: 4%;
- transition: 0.2s;
- }
- .r {
- color: #05bb4c;
- position: relative;
- width: 46%;
- display: flex;
- justify-content: start;
- align-items: center;
- margin-left: 4%;
- &::after {
- content: "";
- position: absolute;
- height: 10px;
- left: 30px;
- top: calc(50% - 5px);
- background-color: #edbf03;
- border-radius: 2px;
- }
- }
- .r1::after {
- width: 30px;
- }
- .r2::after {
- width: 60px;
- }
- .r3::after {
- width: 90px;
- }
- .r4::after {
- width: 120px;
- }
- &:hover {
- width: 80%;
- margin: 0 10% 30px 10%;
- color: #05bb4c;
- transition: 0.2s;
- }
- &:hover .l {
- color: #05bb4c;
- transition: 0.2s;
- }
- }
- .imageBox {
- width: 100%;
- display: flex;
- // justify-content: start;
- justify-content: space-around;
- align-items: center;
- flex-wrap: wrap;
- margin-top: 100px;
- .imgItem {
- cursor: pointer;
- border: none;
- margin-right: 1%;
- margin-bottom: 20px;
- display: flex;
- justify-content: start;
- align-items: center;
- flex-direction: column;
- // width: 32%;
- width: 45%;
- .img {
- width: 100%;
- // height: 150px;
- height: 300px;
- border: 1px solid #b3bdc0;
- transition: 0.2s;
- &:hover {
- border: 1px solid #05bb4c;
- transition: 0.2s;
- }
- }
- p {
- width: 100%;
- font-size: 16px;
- color: #b3bdc0;
- text-align: center;
- transition: 0.2s;
- }
- &:hover p {
- transition: 0.2s;
- color: #05bb4c;
- }
- }
- }
- .imageBox1 {
- width: 100%;
- display: flex;
- // justify-content: start;
- justify-content: space-around;
- align-items: center;
- flex-wrap: wrap;
- margin-top: 100px;
- .imgItem1 {
- cursor: pointer;
- border: none;
- margin-right: 1%;
- margin-bottom: 20px;
- display: flex;
- // justify-content: start;
- justify-content: space-around;
- align-items: center;
- flex-direction: column;
- width: 32%;
- .img1 {
- width: 100%;
- height: 150px;
- border: 1px solid #b3bdc0;
- transition: 0.2s;
- &:hover {
- border: 1px solid #05bb4c;
- transition: 0.2s;
- }
- }
- p {
- width: 100%;
- font-size: 16px;
- color: #b3bdc0;
- text-align: center;
- transition: 0.2s;
- }
- &:hover p {
- transition: 0.2s;
- color: #05bb4c;
- }
- }
- }
- .imageBox2 {
- width: 100%;
- display: flex;
- justify-content: space-around;
- align-items: center;
- flex-wrap: wrap;
- margin-top: 100px;
- .imgItem2 {
- cursor: pointer;
- border: none;
- margin-right: 1%;
- margin-bottom: 20px;
- display: flex;
- justify-content: space-around;
- align-items: center;
- flex-direction: column;
- width: 45%;
- .img2 {
- width: 100%;
- height: 180px;
- border: 1px solid #b3bdc0;
- transition: 0.2s;
- &:hover {
- border: 1px solid #05bb4c;
- transition: 0.2s;
- }
- }
- p {
- width: 100%;
- font-size: 16px;
- color: #b3bdc0;
- text-align: center;
- transition: 0.2s;
- }
- &:hover p {
- transition: 0.2s;
- color: #05bb4c;
- }
- }
- }
- .iframe {
- border: 0;
- overflow: scroll;
- background: #fff;
- }
- }
- </style>
- <style lang="less">
- .itemBox {
- .el-form-item,
- .el-form-item__label {
- font-size: 16px;
- }
- .el-form-item__label {
- text-align: left;
- }
- }
- </style>
|