whychdw
2021-08-03 a82b6eb05820368bd047d7a47fac6797567e99b3
src/pages/boostingTransformer/boostingTransformer.vue
@@ -1,7 +1,7 @@
<template>
<div class="body_box">
    <!-- 大功率整流电源监控 -->
     <div class="tipTitle">开关柜监控</div>
    <!-- 升压变压器监控 -->
     <div class="tipTitle">升压变压器监控</div>
    <div class="left_Box">
       
        <div class="diagram-content">
@@ -51,14 +51,14 @@
            <div class="clear"></div>
        </div>
        <div class="content_bottom">
            <p class="title_into">告警情况</p>
            <p class="title_into">报警情况</p>
            <!-- 表单 -->
            <div class="flex-page-content">
                <div class="batteryrHistoryquery" style="width: 100%;height: 100%;">
                    <el-table :data="tableData" style="width: 100%" max-height="145px"> 
                        <el-table-column prop="date" label="告警时间" width="180"></el-table-column>
                        <el-table-column prop="name" label="告警名称" width="180"></el-table-column>
                        <el-table-column prop="address" label="告警描述"></el-table-column>
                        <el-table-column prop="date" label="报警时间" width="180"></el-table-column>
                        <el-table-column prop="name" label="报警名称" width="180"></el-table-column>
                        <el-table-column prop="address" label="报警描述"></el-table-column>
                    </el-table>
                </div>
            </div>
@@ -86,6 +86,7 @@
import getWsUrl from "@/assets/js/getWsUrl";
import * as echarts from 'echarts';
import gridCircuitDiagram from '@/pages/boostingTransformer/js/gridCircuitDiagram'
import diagramStates from '@/pages/boostingTransformer/js/diagramStates'
let diagram;
export default {
    chart: {},
@@ -121,6 +122,7 @@
        
        let self = this;
        diagram = gridCircuitDiagram(this.$refs.static, this.$refs.flush);
        diagramStates(diagram, 'run1');
        self.initEcharts();
        self.openSocket();
    },
@@ -206,7 +208,7 @@
            // 关闭websocket
            if (this.isOpen) {
                // 打印关闭信息
                console.log("关闭电源实时告警WebSocket");
                console.log("关闭电源实时报警WebSocket");
                this.socket.close();
            }
        },
@@ -222,6 +224,7 @@
                        bottom: '30'
                    },
                    tooltip: {
                        "trigger":"axis",
                        show: true
                    },
                    xAxis: {
@@ -249,6 +252,7 @@
                        // xAxisIndex: 0,
                        yAxisIndex: 0,//使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用。
                        type: 'line',
                        symbol: 'none',
                        step: false,
                        smooth: true
                    }]
@@ -322,13 +326,13 @@
    padding: 1%;
}
.content_top{
    height: 25%;
    height: 12%;
}
.content_cent{
    height: 40%;
    height: 28%;
}
.content_bottom{
    height: 33%;
    height: 58%;
}
.content_cent{
    margin: 1% 0;