liulijun
2025-11-17 da4257bc32483409af02a06dd342c6981ec786ec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<template>
  <dv-border-box-12 id="content">
    <div class="Box">
      <div style="margin-top: -10px;position: absolute;top: 28px;left: 20px;">
       <span>
      <icon
        name="chart-line"
        class="text-icon"
        style="margin-left: 5px"          
      ></icon>
      </span>
      <span class="fs-xl text mb-1 pl-3" style="font-size: 20px;font-weight: bold;"
        >加压动态</span>
      </div>
      <div style="width:680px;height:70px; position: absolute;left: 135px;top: 10px;background-color: red;border-radius: 15px; display: flex;justify-content: space-around;">
        <div style="width: 260px;text-align: center;">
          <span style="font-size: 30px;font-weight: bold;color: #fff;line-height: 70px;">保压压力:</span>
          <span style="font-size: 30px;font-weight: bold;color: #fff;line-height: 70px;">{{pressure_value!=""?pressure_value+"(吨)":"待保压"}}</span>
        </div> 
        <div style="width: 280px;text-align: center;">
          <span style="font-size: 30px;font-weight: bold;color: #fff;line-height: 70px;">保压时间:</span>
          <span style="font-size: 30px;font-weight: bold;color: #fff;line-height: 70px;">{{pressuretime!=""?pressuretime:"待保压"}}</span>
        </div>
        <div style="width: 140px;text-align: center;">
          <span style="font-size: 30px;font-weight: bold;color: #fff;line-height: 70px;">{{ pressureresult }}</span>
        </div> 
      </div>
      <div style="margin-top: -10px;position: absolute;top: 28px;right: 360px;">
       <span>
      <icon
        name="chart-bar"
        class="text-icon"
        style="margin-left: 5px"          
      ></icon>
      </span>
      <span class="fs-xl text mb-1 pl-3" style="font-size: 20px;font-weight: bold;"
        >设备稼动</span>
      </div>
      <div style="position: absolute;height: 1px; width: 865px;left: 44px;top: 355px; background-color:#ffff00;">
 
      </div>   
      <div style="position: absolute;height: 375px; width: 1px;left: 821px;top: 88px; background-color:#ffff00;">
 
      </div>               
      <div class="bottomLeft">
        <bottomLeft />
      </div>
      <div class="bottomCenter">
        <bottomCenter />
      </div>
    </div>
  </dv-border-box-12>
</template>
  <script>
import axios from "@/api/ajax.js";
import bottomLeft from "../components/echart/bottom/bottomLeftChart";
import bottomCenter from "../components/echart/bottom/bottomCenterChart";
export default {
  components: {
    bottomLeft,
    bottomCenter,
  },
  data() {
    return {
      areaD: ["D9", "D8", "D7", "D6", "D5", "D4", "D3", "D2", "D1"],
      areaA: ["A9", "A8", "A7", "A6", "A5", "A4", "A3", "A2", "A1"],
      areaBC: [
        { name1: "C6", name2: "B6" },
        { name1: "C5", name2: "B5" },
        { name1: "C4", name2: "B4" },
        { name1: "C3", name2: "B3" },
      ],
      areaB: [
        { name1: "B2", img: require("../assets/red0.png") },
        { name1: "B1", img: require("../assets/red1.png") },
      ],
      ScStyle: {
        top: "600px",
        left: "1180px",
      },
      pressure_value:"30.5",
      pressuretime:"18时60分",
      pressureresult:"加压合格",
      IsPrevalue:true,
    };
  },
  mounted() {
    this.GetPressInfo();
  },
  methods: {
    GetPressInfo() {
      axios.post("/api/dt_WorkOrder/getPressInfo", null, "").then((res) => {
        if (res.data.status) {
          var data=res.data.data;
          if(data==null)
            return;
          this.pressure_value=data.pressure_value;
          this.pressuretime=data.pressuretime;
          this.pressureresult=data.pressureresult;
        }
        if(this.IsPrevalue){
            setInterval(() => {
              this.GetPressInfo();
            },2000);
            this.IsPrevalue=false;
          }
      });
    }
  },
};
</script>
<style lang="scss" scoped>
$box-height: 520px;
$box-width: 1420px;
#content {
  position: absolute;
  right: 20px;
  width: $box-width;
  height: $box-height;
  margin: 10px auto;
}
.bottomLeft {
  width: 920px;
  height: 520px;
  margin-top: 30px;
}
.bottomCenter {
  width: 480px;
  height: 520px;
  margin-top: 30px;
  margin-left: 10px;
}
.Box{
  width:1870px;
  margin: 0px auto;
  display: flex;
}
</style>