|
@@ -0,0 +1,227 @@
|
|
|
|
+<template>
|
|
|
|
+ <div class="main">
|
|
|
|
+ <!-- 背景图片 -->
|
|
|
|
+ <div>
|
|
|
|
+ <img src="@/assets/img/drain/back.png" id="imgSwitch" />
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 12个按钮 -->
|
|
|
|
+ <div :class="['botton0', valve[0] ? 'green' : 'red']"></div>
|
|
|
|
+ <div :class="['botton1', valve[1] ? 'green' : 'red']"></div>
|
|
|
|
+ <div :class="['botton2', valve[2] ? 'green' : 'red']"></div>
|
|
|
|
+ <div :class="['botton3', valve[3] ? 'green' : 'red']"></div>
|
|
|
|
+ <div :class="['botton4', valve[4] ? 'green' : 'red']"></div>
|
|
|
|
+ <div :class="['botton5', valve[5] ? 'green' : 'red']"></div>
|
|
|
|
+ <div :class="['botton6', valve[6] ? 'green' : 'red']"></div>
|
|
|
|
+ <div :class="['botton7', valve[7] ? 'green' : 'red']"></div>
|
|
|
|
+ <div :class="['botton8', valve[8] ? 'green' : 'red']"></div>
|
|
|
|
+ <div :class="['botton9', valve[9] ? 'green' : 'red']"></div>
|
|
|
|
+ <div :class="['botton10', valve[10] ? 'green' : 'red']"></div>
|
|
|
|
+ <div :class="['botton11', valve[11] ? 'green' : 'red']"></div>
|
|
|
|
+ <!-- 3个数据表格 -->
|
|
|
|
+ <div class="table1">
|
|
|
|
+ <tableData :tableData="tableData1" id="1"></tableData>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="table2">
|
|
|
|
+ <tableData :tableData="tableData2" id="2"></tableData>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="table3">
|
|
|
|
+ <tableData :tableData="tableData3" id="3"></tableData>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+<script>
|
|
|
|
+import tableData from "@/views/drain/configImg/tableData";
|
|
|
|
+export default {
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ valve: [
|
|
|
|
+ true,
|
|
|
|
+ true,
|
|
|
|
+ true,
|
|
|
|
+ true,
|
|
|
|
+ true,
|
|
|
|
+ true,
|
|
|
|
+ true,
|
|
|
|
+ true,
|
|
|
|
+ true,
|
|
|
|
+ true,
|
|
|
|
+ true,
|
|
|
|
+ true,
|
|
|
|
+ ],
|
|
|
|
+ tableData1: {
|
|
|
|
+ pipelineFlow: 0.0,
|
|
|
|
+ pipelineFlowTotal: 0.0,
|
|
|
|
+ runningTime: 0,
|
|
|
|
+ UnattendedRuntime: 0,
|
|
|
|
+ positivePressure: 0,
|
|
|
|
+ negativePressure: 0,
|
|
|
|
+ frontAxleTemp: 0,
|
|
|
|
+ rearAxleTemp: 0,
|
|
|
|
+ liquidLevel: 0,
|
|
|
|
+ },
|
|
|
|
+ tableData2: {
|
|
|
|
+ pipelineFlow: 0.0,
|
|
|
|
+ pipelineFlowTotal: 0.0,
|
|
|
|
+ runningTime: 0,
|
|
|
|
+ UnattendedRuntime: 0,
|
|
|
|
+ positivePressure: 0,
|
|
|
|
+ negativePressure: 0,
|
|
|
|
+ frontAxleTemp: 0,
|
|
|
|
+ rearAxleTemp: 0,
|
|
|
|
+ liquidLevel: 0,
|
|
|
|
+ },
|
|
|
|
+ tableData3: {
|
|
|
|
+ pipelineFlow: 0.0,
|
|
|
|
+ pipelineFlowTotal: 0.0,
|
|
|
|
+ runningTime: 0,
|
|
|
|
+ UnattendedRuntime: 0,
|
|
|
|
+ positivePressure: 0,
|
|
|
|
+ negativePressure: 0,
|
|
|
|
+ frontAxleTemp: 0,
|
|
|
|
+ rearAxleTemp: 0,
|
|
|
|
+ liquidLevel: 0,
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ components: {
|
|
|
|
+ tableData,
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ this.valve = this.valve.map((item) => {
|
|
|
|
+ return (item = !item);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style scoped>
|
|
|
|
+.main {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 850px;
|
|
|
|
+ position: relative;
|
|
|
|
+ background-image: linear-gradient(
|
|
|
|
+ to right,
|
|
|
|
+ #06133c 0%,
|
|
|
|
+ #011669 5045 #06133c 100%
|
|
|
|
+ );
|
|
|
|
+}
|
|
|
|
+.table1 {
|
|
|
|
+ top: 0px;
|
|
|
|
+ left: -10px;
|
|
|
|
+ position: absolute;
|
|
|
|
+}
|
|
|
|
+.table2 {
|
|
|
|
+ top: 0px;
|
|
|
|
+ left: 450px;
|
|
|
|
+ position: absolute;
|
|
|
|
+}
|
|
|
|
+.table3 {
|
|
|
|
+ top: 0px;
|
|
|
|
+ left: 910px;
|
|
|
|
+ position: absolute;
|
|
|
|
+}
|
|
|
|
+#imgSwitch {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 800px;
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+ /* padding-bottom: 100px; */
|
|
|
|
+ /* left: 50px; */
|
|
|
|
+ /* margin-left: 30px; */
|
|
|
|
+}
|
|
|
|
+.botton0 {
|
|
|
|
+ width: 10px;
|
|
|
|
+ height: 30px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 64px;
|
|
|
|
+ left: 62px;
|
|
|
|
+}
|
|
|
|
+.botton1 {
|
|
|
|
+ width: 10px;
|
|
|
|
+ height: 30px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 371px;
|
|
|
|
+ left: 144px;
|
|
|
|
+}
|
|
|
|
+.botton2 {
|
|
|
|
+ width: 15px;
|
|
|
|
+ height: 15px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 378px;
|
|
|
|
+ left: 368px;
|
|
|
|
+}
|
|
|
|
+.botton3 {
|
|
|
|
+ width: 15px;
|
|
|
|
+ height: 15px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 305px;
|
|
|
|
+ left: 417px;
|
|
|
|
+}
|
|
|
|
+.botton4 {
|
|
|
|
+ width: 10px;
|
|
|
|
+ height: 30px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 140px;
|
|
|
|
+ left: 527px;
|
|
|
|
+}
|
|
|
|
+.botton5 {
|
|
|
|
+ width: 10px;
|
|
|
|
+ height: 30px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 375px;
|
|
|
|
+ left: 605px;
|
|
|
|
+}
|
|
|
|
+.botton6 {
|
|
|
|
+ width: 15px;
|
|
|
|
+ height: 15px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 378px;
|
|
|
|
+ left: 830px;
|
|
|
|
+}
|
|
|
|
+.botton7 {
|
|
|
|
+ width: 15px;
|
|
|
|
+ height: 15px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 305px;
|
|
|
|
+ left: 880px;
|
|
|
|
+}
|
|
|
|
+.botton8 {
|
|
|
|
+ width: 10px;
|
|
|
|
+ height: 30px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 140px;
|
|
|
|
+ left: 990px;
|
|
|
|
+}
|
|
|
|
+.botton9 {
|
|
|
|
+ width: 10px;
|
|
|
|
+ height: 30px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 375px;
|
|
|
|
+ left: 1070px;
|
|
|
|
+}
|
|
|
|
+.botton10 {
|
|
|
|
+ width: 15px;
|
|
|
|
+ height: 15px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 378px;
|
|
|
|
+ right: 240px;
|
|
|
|
+}
|
|
|
|
+.botton11 {
|
|
|
|
+ width: 15px;
|
|
|
|
+ height: 15px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 305px;
|
|
|
|
+ right: 190px;
|
|
|
|
+}
|
|
|
|
+.red {
|
|
|
|
+ background-color: #f90005;
|
|
|
|
+}
|
|
|
|
+.green {
|
|
|
|
+ background-color: #009966;
|
|
|
|
+}
|
|
|
|
+</style>
|