|
@@ -1,402 +1,78 @@
|
|
<template>
|
|
<template>
|
|
- <div>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <!-- 1-1 -->
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <span>
|
|
|
|
- <p>
|
|
|
|
- <font color=#FFFFFF>报警记录</font>
|
|
|
|
- </p>
|
|
|
|
- </span>
|
|
|
|
- <el-card1>
|
|
|
|
- <el-table
|
|
|
|
- :data="alertData"
|
|
|
|
- style="width:750px;height:300px"
|
|
|
|
- >
|
|
|
|
- <el-table-column
|
|
|
|
- prop="name"
|
|
|
|
- label="报警名称"
|
|
|
|
- width="180"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="time"
|
|
|
|
- label="报警时间"
|
|
|
|
- width="180"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="rank"
|
|
|
|
- label="级别"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="result"
|
|
|
|
- label="处理结果"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- </el-card1>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- <!-- 1-2 -->
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <span>
|
|
|
|
- <p>
|
|
|
|
- <font color=#FFFFFF>操作记录</font>
|
|
|
|
- </p>
|
|
|
|
- </span>
|
|
|
|
- <el-card1>
|
|
|
|
- <el-table
|
|
|
|
- :data="operateData"
|
|
|
|
- style="width:750px;height:300px"
|
|
|
|
- >
|
|
|
|
- <el-table-column
|
|
|
|
- prop="date"
|
|
|
|
- label="时间"
|
|
|
|
- width="180"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="name"
|
|
|
|
- label="操作"
|
|
|
|
- width="180"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- </el-card1>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <!-- 2-1 -->
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <span>
|
|
|
|
- <p>
|
|
|
|
- <font color=#FFFFFF>回路耗能分析</font>
|
|
|
|
- </p>
|
|
|
|
- </span>
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- class="chart"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <energyCunsumption></energyCunsumption>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <!-- 2-2 -->
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <span>
|
|
|
|
- <p>
|
|
|
|
- <font color=#FFFFFF>回路参数曲线</font>
|
|
|
|
- </p>
|
|
|
|
- </span>
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- id="chart-wrap1"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <!-- <ReturnCircuit></ReturnCircuit>-->
|
|
|
|
- <ReturnCircuitTest></ReturnCircuitTest>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- id="chart-wrap2"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <ReturnCircuit2></ReturnCircuit2>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- id="chart-wrap3"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <ReturnCircuit3></ReturnCircuit3>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- id="chart-wrap4"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <ReturnCircuit4></ReturnCircuit4>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- id="chart-wrap5"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <ReturnCircuit5></ReturnCircuit5>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- id="chart-wrap6"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <ReturnCircuit6></ReturnCircuit6>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- id="chart-wrap7"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <ReturnCircuit7></ReturnCircuit7>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- id="chart-wrap8"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <ReturnCircuit8></ReturnCircuit8>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="table-wrapper">
|
|
|
|
+ <el-table :data="tableData" border style="width: 100%">
|
|
|
|
+ <el-table-column prop="name" label="名称" width="180"> </el-table-column>
|
|
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- id="chart-wrap9"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <ReturnCircuit9></ReturnCircuit9>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- id="chart-wrap10"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <ReturnCircuit10></ReturnCircuit10>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <div class="grid-content ">
|
|
|
|
- <el-card>
|
|
|
|
- <div class="panel_bar">
|
|
|
|
- <div
|
|
|
|
- id="chart-wrap11"
|
|
|
|
- style="width:1300px;height:300px"
|
|
|
|
- >
|
|
|
|
- <ReturnCircuit11></ReturnCircuit11>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-footer"></div>
|
|
|
|
- </div>
|
|
|
|
- </el-card>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
|
|
+ <el-table-column prop="problem" label="记录" width="180">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import axios from "axios";
|
|
|
|
-import ReturnCircuitTest from "@/components/power_supply/configImg/ReturnCircuitTest";
|
|
|
|
-import EnergyCunsumption from "@/components/power_supply/configImg/EnergyCunsumption";
|
|
|
|
-// import ReturnCircuit from '@/components/ReturnCircuit'
|
|
|
|
-import ReturnCircuit2 from "@/components/power_supply/configImg/ReturnCircuit2";
|
|
|
|
-import ReturnCircuit3 from "@/components/power_supply/configImg/ReturnCircuit3";
|
|
|
|
-import ReturnCircuit4 from "@/components/power_supply/configImg/ReturnCircuit4";
|
|
|
|
-import ReturnCircuit5 from "@/components/power_supply/configImg/ReturnCircuit5";
|
|
|
|
-import ReturnCircuit6 from "@/components/power_supply/configImg/ReturnCircuit6";
|
|
|
|
-import ReturnCircuit7 from "@/components/power_supply/configImg/ReturnCircuit7";
|
|
|
|
-import ReturnCircuit8 from "@/components/power_supply/configImg/ReturnCircuit8";
|
|
|
|
-import ReturnCircuit9 from "@/components/power_supply/configImg/ReturnCircuit9";
|
|
|
|
-import ReturnCircuit10 from "@/components/power_supply/configImg/ReturnCircuit10";
|
|
|
|
-import ReturnCircuit11 from "@/components/power_supply/configImg/ReturnCircuit11";
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- // 报警记录
|
|
|
|
- alertData: [
|
|
|
|
|
|
+ tableData: [
|
|
{
|
|
{
|
|
- name: "过热",
|
|
|
|
- time: "2021-12-26 22:00",
|
|
|
|
- rank: "1级",
|
|
|
|
- result: "已处理",
|
|
|
|
|
|
+ name: 1,
|
|
|
|
+ problem: 2,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- name: "嗡嗡响",
|
|
|
|
- time: "2021-12-26 22:05",
|
|
|
|
- rank: "2级",
|
|
|
|
- result: "未处理",
|
|
|
|
|
|
+ name: 1,
|
|
|
|
+ problem: 2,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: 1,
|
|
|
|
+ problem: 2,
|
|
},
|
|
},
|
|
- ],
|
|
|
|
- // 操作记录
|
|
|
|
- operateData: [
|
|
|
|
{
|
|
{
|
|
- date: "2021-12-26 22:06",
|
|
|
|
- name: "1号回路开启",
|
|
|
|
|
|
+ name: 1,
|
|
|
|
+ problem: 2,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- mounted() {
|
|
|
|
- this.getAlertData();
|
|
|
|
- this.getOperateData();
|
|
|
|
- },
|
|
|
|
- methods: {
|
|
|
|
- getAlertData() {
|
|
|
|
- axios
|
|
|
|
- .get("AlertData")
|
|
|
|
- .then((response) => {
|
|
|
|
- console.log(response.data);
|
|
|
|
- this.alertData = response.data;
|
|
|
|
- })
|
|
|
|
- .catch((err) => {
|
|
|
|
- console.log(err);
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- getOperateData() {
|
|
|
|
- axios
|
|
|
|
- .get("OperateData")
|
|
|
|
- .then((response) => {
|
|
|
|
- console.log(response.data);
|
|
|
|
- this.operateData = response.data;
|
|
|
|
- })
|
|
|
|
- .catch((err) => {
|
|
|
|
- console.log(err);
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- components: {
|
|
|
|
- ReturnCircuitTest,
|
|
|
|
- EnergyCunsumption,
|
|
|
|
- // ReturnCircuit,
|
|
|
|
- ReturnCircuit2,
|
|
|
|
- ReturnCircuit3,
|
|
|
|
- ReturnCircuit4,
|
|
|
|
- ReturnCircuit5,
|
|
|
|
- ReturnCircuit6,
|
|
|
|
- ReturnCircuit7,
|
|
|
|
- ReturnCircuit8,
|
|
|
|
- ReturnCircuit9,
|
|
|
|
- ReturnCircuit10,
|
|
|
|
- ReturnCircuit11,
|
|
|
|
- },
|
|
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
-<style scoped>
|
|
|
|
-.grid-content {
|
|
|
|
- height: 400px;
|
|
|
|
-}
|
|
|
|
-.el-card {
|
|
|
|
- height: 350px;
|
|
|
|
- width: 1500px;
|
|
|
|
-}
|
|
|
|
-.el-card1 {
|
|
|
|
- height: 350px;
|
|
|
|
- width: 750px;
|
|
|
|
|
|
+
|
|
|
|
+<style lang='scss' scoped>
|
|
|
|
+.table-wrapper {
|
|
|
|
+ height: 80%;;
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+ ::v-deep .el-table--enable-row-hover .el-table__body tr:hover > td {
|
|
|
|
+ background-color: rgba(70, 130, 180, 0.2);
|
|
|
|
+ color: #fff;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+/* 删除表格下横线 */
|
|
|
|
+.table-wrapper ::v-deep .el-table::before {
|
|
|
|
+ left: 0;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 0px;
|
|
|
|
+ border: none;
|
|
}
|
|
}
|
|
|
|
|
|
-.sapn {
|
|
|
|
- font-family: sans-serif;
|
|
|
|
|
|
+.table-wrapper ::v-deep .el-table,
|
|
|
|
+.el-table__expanded-cell {
|
|
|
|
+ background-color: transparent;
|
|
|
|
+ border: none;
|
|
}
|
|
}
|
|
|
|
|
|
-.panel_bar {
|
|
|
|
- width: 100%;
|
|
|
|
|
|
+.table-wrapper ::v-deep .el-table tr {
|
|
|
|
+ background-color: transparent !important;
|
|
|
|
+ border: none;
|
|
|
|
+}
|
|
|
|
+.table-wrapper ::v-deep .el-table th {
|
|
|
|
+ background-color: transparent !important;
|
|
|
|
+ border: none;
|
|
|
|
+ color:#4ADEFE;
|
|
}
|
|
}
|
|
-</style>>
|
|
|
|
|
|
+.table-wrapper ::v-deep .el-table td, .el-table th.is-leaf {
|
|
|
|
+ background-color: transparent !important;
|
|
|
|
+ color:#F3DB5C;
|
|
|
|
+ border: none;
|
|
|
|
+}
|
|
|
|
+</style>
|
|
|
|
+
|