|
@@ -0,0 +1,318 @@
|
|
|
+<template>
|
|
|
+ <div id="table">
|
|
|
+ <h1 align="center" style="color: rgb(121, 73, 255)">供电系统组态图</h1>
|
|
|
+
|
|
|
+ <img src="@/assets/img/OPEN.svg" id="imgswitch" />
|
|
|
+ <el-main>
|
|
|
+ <table border="0" cellspacing="6" class="table1">
|
|
|
+ <tr>
|
|
|
+ <th></th>
|
|
|
+ <th style="width: 120px">1#变压器出线</th>
|
|
|
+ <th style="width: 120px">2#变压器出线</th>
|
|
|
+ <th style="width: 120px">机修车间</th>
|
|
|
+ <th style="width: 120px">1#空压机</th>
|
|
|
+ <th style="width: 120px">10KVI母PT</th>
|
|
|
+ <th style="width: 120px">1#进线</th>
|
|
|
+ <th style="width: 220px">10KVI母线分段</th>
|
|
|
+ <th style="width: 150px; right: 400px">#2进线</th>
|
|
|
+ <th style="width: 150px; right: 400px">10KVI母PT</th>
|
|
|
+ <th style="width: 150px; right: 400px">3#变压器出线</th>
|
|
|
+ <th style="width: 150px; right: 400px">4#变压器出线</th>
|
|
|
+ <th style="width: 150px; right: 400px">行政办公楼</th>
|
|
|
+ <th style="width: 150px; right: 400px">2#空压机</th>
|
|
|
+ </tr>
|
|
|
+ <tr align="center">
|
|
|
+ <td>Ia:</td>
|
|
|
+ <td>{{ six.transformerOut_1.Ia }}</td>
|
|
|
+ <td>{{ six.transformerOut_2.Ia }}</td>
|
|
|
+ <td>{{ six.workshop.Ia }}</td>
|
|
|
+ <td>{{ six.airCompressor_1.Ia }}</td>
|
|
|
+ <td></td>
|
|
|
+ <td>{{ six.out_1.Ia }}</td>
|
|
|
+ <td>{{ six.busSection.Ia }}</td>
|
|
|
+ <td>{{ six.out_2.Ia }}</td>
|
|
|
+ <td></td>
|
|
|
+ <td>{{ six.transformerOut_3.Ia }}</td>
|
|
|
+ <td>{{ six.transformerOut_4.Ia }}</td>
|
|
|
+ <td>{{ six.administration.Ia }}</td>
|
|
|
+ <td>{{ six.airCompressor_2.Ia }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr align="center">
|
|
|
+ <td>P:</td>
|
|
|
+ <td>{{ six.transformerOut_1.p }}</td>
|
|
|
+ <td>{{ six.transformerOut_2.p }}</td>
|
|
|
+ <td>{{ six.workshop.p }}</td>
|
|
|
+ <td>{{ six.airCompressor_1.p }}</td>
|
|
|
+ <td></td>
|
|
|
+ <td>{{ six.out_1.p }}</td>
|
|
|
+ <td>{{ six.busSection.p }}</td>
|
|
|
+ <td>{{ six.out_2.p }}</td>
|
|
|
+ <td></td>
|
|
|
+ <td>{{ six.transformerOut_3.p }}</td>
|
|
|
+ <td>{{ six.transformerOut_4.p }}</td>
|
|
|
+ <td>{{ six.administration.p }}</td>
|
|
|
+ <td>{{ six.airCompressor_2.p }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr align="center">
|
|
|
+ <td>Q:</td>
|
|
|
+ <td>{{ six.transformerOut_1.q }}</td>
|
|
|
+ <td>{{ six.transformerOut_2.q }}</td>
|
|
|
+ <td>{{ six.workshop.q }}</td>
|
|
|
+ <td>{{ six.airCompressor_1.q }}</td>
|
|
|
+ <td></td>
|
|
|
+ <td>{{ six.out_1.q }}</td>
|
|
|
+ <td>{{ six.busSection.q }}</td>
|
|
|
+ <td>{{ six.out_2.q }}</td>
|
|
|
+ <td></td>
|
|
|
+ <td>{{ six.transformerOut_3.q }}</td>
|
|
|
+ <td>{{ six.transformerOut_4.q }}</td>
|
|
|
+ <td>{{ six.administration.q }}</td>
|
|
|
+ <td>{{ six.airCompressor_2.q }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr align="center">
|
|
|
+ <td>Cos:</td>
|
|
|
+ <td>{{ six.transformerOut_1.cos }}</td>
|
|
|
+ <td>{{ six.transformerOut_2.cos }}</td>
|
|
|
+ <td>{{ six.workshop.cos }}</td>
|
|
|
+ <td>{{ six.airCompressor_1.cos }}</td>
|
|
|
+ <td></td>
|
|
|
+ <td>{{ six.out_1.cos }}</td>
|
|
|
+ <td>{{ six.busSection.cos }}</td>
|
|
|
+ <td>{{ six.out_2.cos }}</td>
|
|
|
+ <td></td>
|
|
|
+ <td>{{ six.transformerOut_3.cos }}</td>
|
|
|
+ <td>{{ six.transformerOut_4.cos }}</td>
|
|
|
+ <td>{{ six.administration.cos }}</td>
|
|
|
+ <td>{{ six.airCompressor_2.cos }}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </el-main>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :offset="6" :span="6"
|
|
|
+ ><div class="grid-content bg-purple">
|
|
|
+ <table border="0" cellspacing="20" class="table2">
|
|
|
+ <tr align="left">
|
|
|
+ <td>Ua(KV):{{ four.right.Ua }}KV</td>
|
|
|
+ <td>Uab(KV):{{ four.right.Uab }} KV</td>
|
|
|
+ </tr>
|
|
|
+ <tr align="left">
|
|
|
+ <td>Ub(KV):{{ four.right.Ub }} KV</td>
|
|
|
+ <td>Ubc(KV):{{ four.right.Ubc }} KV</td>
|
|
|
+ </tr>
|
|
|
+ <tr align="left">
|
|
|
+ <td>Uc(KV):{{ four.right.Uc }} KV</td>
|
|
|
+ <td>Uca(KV):{{ four.right.Uca }} KV</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div></el-col
|
|
|
+ >
|
|
|
+ <el-col :span="6"
|
|
|
+ ><div class="grid-content bg-purple">
|
|
|
+ <table border="0" cellspacing="20" class="table3">
|
|
|
+ <tr align="left">
|
|
|
+ <td>Ua(KV):{{ four.left.Ua }} KV</td>
|
|
|
+ <td>Uab(KV):{{ four.left.Uab }} KV</td>
|
|
|
+ </tr>
|
|
|
+ <tr align="left">
|
|
|
+ <td>Ub(KV):{{ four.left.Ub }} KV</td>
|
|
|
+ <td>Ubc(KV):{{ four.left.Ubc }} KV</td>
|
|
|
+ </tr>
|
|
|
+ <tr align="left">
|
|
|
+ <td>Uc(KV):{{ four.left.Uc }}KV</td>
|
|
|
+ <td>Uca(KV):{{ four.left.Uca }} KV</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div></el-col
|
|
|
+ >
|
|
|
+ <el-col :span="6"
|
|
|
+ ><div class="grid-content bg-purple">
|
|
|
+ <table border="0" class="table4">
|
|
|
+ <router-link to="/power_supply/panelPage"
|
|
|
+ ><img border="5" src="@/assets/img/访问数据看板.png"
|
|
|
+ /></router-link>
|
|
|
+ </table></div
|
|
|
+ ></el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import axios from "axios";
|
|
|
+export default {
|
|
|
+ name: "Table",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ six: {
|
|
|
+ transformerOut_1: {
|
|
|
+ p: "",
|
|
|
+ q: "",
|
|
|
+ cos: "",
|
|
|
+ Ia: "",
|
|
|
+ duration: "",
|
|
|
+ },
|
|
|
+ transformerOut_2: {
|
|
|
+ p: "",
|
|
|
+ q: "",
|
|
|
+ cos: "",
|
|
|
+ Ia: "",
|
|
|
+ duration: "",
|
|
|
+ },
|
|
|
+ workshop: {
|
|
|
+ p: "",
|
|
|
+ q: "",
|
|
|
+ cos: "",
|
|
|
+ Ia: "",
|
|
|
+ duration: "",
|
|
|
+ },
|
|
|
+ airCompressor_1: {
|
|
|
+ p: "",
|
|
|
+ q: "",
|
|
|
+ cos: "",
|
|
|
+ Ia: "",
|
|
|
+ duration: "",
|
|
|
+ },
|
|
|
+ out_1: {
|
|
|
+ p: "",
|
|
|
+ q: "",
|
|
|
+ cos: "",
|
|
|
+ Ia: "",
|
|
|
+ duration: "",
|
|
|
+ },
|
|
|
+ busSection: {
|
|
|
+ p: "",
|
|
|
+ q: "",
|
|
|
+ cos: "",
|
|
|
+ Ia: "",
|
|
|
+ duration: "",
|
|
|
+ },
|
|
|
+ out_2: {
|
|
|
+ p: "",
|
|
|
+ q: "",
|
|
|
+ cos: "",
|
|
|
+ Ia: "",
|
|
|
+ duration: "",
|
|
|
+ },
|
|
|
+ transformerOut_3: {
|
|
|
+ p: "",
|
|
|
+ q: "",
|
|
|
+ cos: "",
|
|
|
+ Ia: "",
|
|
|
+ duration: "",
|
|
|
+ },
|
|
|
+ transformerOut_4: {
|
|
|
+ p: "",
|
|
|
+ q: "",
|
|
|
+ cos: "",
|
|
|
+ Ia: "",
|
|
|
+ duration: "",
|
|
|
+ },
|
|
|
+ administration: {
|
|
|
+ p: "",
|
|
|
+ q: "",
|
|
|
+ cos: "",
|
|
|
+ Ia: "",
|
|
|
+ duration: "",
|
|
|
+ },
|
|
|
+ airCompressor_2: {
|
|
|
+ p: "",
|
|
|
+ q: "",
|
|
|
+ cos: "",
|
|
|
+ Ia: "",
|
|
|
+ duration: "",
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+ four: {
|
|
|
+ right: {
|
|
|
+ Ua: "",
|
|
|
+ Uab: "",
|
|
|
+ Ub: "",
|
|
|
+ Ubc: "",
|
|
|
+ Uc: "",
|
|
|
+ Uca: "",
|
|
|
+ },
|
|
|
+ left: {
|
|
|
+ Ua: "",
|
|
|
+ Uab: "",
|
|
|
+ Ub: "",
|
|
|
+ Ubc: "",
|
|
|
+ Uc: "",
|
|
|
+ Uca: "",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getData() {
|
|
|
+ axios
|
|
|
+ .get("/table")
|
|
|
+ .then((response) => {
|
|
|
+ this.six = response.data.six;
|
|
|
+ this.four = response.data.four;
|
|
|
+ })
|
|
|
+ .catch(function (err) {
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ setTime() {
|
|
|
+ this.intervalId = setInterval(() => {
|
|
|
+ this.getData();
|
|
|
+ }, 1000);
|
|
|
+ // 通过$once来监听定时器,在beforeDestroy钩子可以被清除。
|
|
|
+ this.$once("hook:beforeDestroy", () => {
|
|
|
+ clearInterval(this.intervalId);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ // this.setTime()
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+.table1 {
|
|
|
+ left: 0px;
|
|
|
+ width: 99%;
|
|
|
+ height: 300px;
|
|
|
+ bottom: 150px;
|
|
|
+ color: white;
|
|
|
+ margin: 0px auto;
|
|
|
+}
|
|
|
+
|
|
|
+.table2 {
|
|
|
+ /* margin: 60px;
|
|
|
+ width: 550px;
|
|
|
+ bottom: 20px; */
|
|
|
+ font-size: 17px;
|
|
|
+ line-height: 20px;
|
|
|
+ color: white;
|
|
|
+ /* position: absolute; */
|
|
|
+}
|
|
|
+
|
|
|
+.table3 {
|
|
|
+ /* margin: 50px;
|
|
|
+ width: 550px;
|
|
|
+ right: 280px;
|
|
|
+ bottom: 20px; */
|
|
|
+ font-size: 17px;
|
|
|
+ line-height: 20px;
|
|
|
+ color: white;
|
|
|
+ /* position: absolute; */
|
|
|
+}
|
|
|
+
|
|
|
+.table4 {
|
|
|
+ width: 300px;
|
|
|
+ bottom: 0px;
|
|
|
+ right: 0px;
|
|
|
+ line-height: 10px;
|
|
|
+ color: white;
|
|
|
+ position: absolute;
|
|
|
+}
|
|
|
+
|
|
|
+#imgswitch {
|
|
|
+ width: 95%;
|
|
|
+ height: 50%;
|
|
|
+ left: 50px;
|
|
|
+}
|
|
|
+</style>
|