zhuguifei
2025-06-17 c1cc49dd93d38f51790558541d6835d1598ecccf
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
139
140
141
142
143
144
145
146
147
148
149
150
151
<script setup lang="ts">
import { ref, computed } from "vue";
import { useRouter } from "vue-router";
 
const router = useRouter();
 
const goBack = () => {
  router.back(); // 或者使用 router.go(-1);
};
</script>
 
<template>
  <div class="app">
    <div class="title-box">
      <van-nav-bar
        title="仪器维护"
        left-text="返回"
        left-arrow
        @click-left="goBack"
      >
        <template #right>
          <span class="text-xl ml-1 text-red-500 font-bold"
            >设备状态-[故障未定义]</span
          >
        </template>
      </van-nav-bar>
    </div>
    <van-divider />
 
    <div class="section-one">提示:读取水分仪固件版本号失败!</div>
    <van-divider />
    <div class="section-two">
      <div class="w-[120px]">
        <van-button icon="replay" size="large" type="primary"
          >仪器复位</van-button
        >
      </div>
 
      <div class="w-[120px]">
        <van-button icon="info-o" size="large" type="primary"
          >固件版本</van-button
        >
      </div>
    </div>
    <van-divider />
    <div class="section-three">
      <div class="item">
        <div class="w-[120px]">
          <van-button icon="coupon-o" size="large" type="primary"
            >上阀门开</van-button
          >
        </div>
        <div class="w-[120px]">
          <van-button icon="coupon-o" size="large" type="primary"
            >下阀门开</van-button
          >
        </div>
        <div class="w-[120px]">
          <van-button icon="coupon-o" size="large" type="primary"
            >双阀门开</van-button
          >
        </div>
        <div class="w-[120px]">
          <van-button disabled icon="coupon-o" size="large" type="primary"
            >振动开</van-button
          >
        </div>
      </div>
      <div class="item">
        <div class="w-[120px]">
          <van-button disabled icon="coupon-o" size="large" type="primary"
            >上阀门关</van-button
          >
        </div>
        <div class="w-[120px]">
          <van-button disabled icon="coupon-o" size="large" type="primary"
            >下阀门关</van-button
          >
        </div>
        <div class="w-[120px]">
          <van-button disabled icon="coupon-o" size="large" type="primary"
            >双阀门关</van-button
          >
        </div>
        <div class="w-[120px]">
          <van-button icon="coupon-o" size="large" type="primary"
            >振动关</van-button
          >
        </div>
      </div>
    </div>
  </div>
</template>
 
<style scoped lang="less">
.app {
  width: 100vw;
  display: flex;
  flex-direction: column;
 
  .title-box {
    height: 60px;
    align-items: center;
    background: white;
    margin: 10px 10px 0 10px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
  }
 
  .section-one {
    height: 80px;
    margin: 0 10px;
    background: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: 26px;
  }
 
  .section-two {
    height: 120px;
    margin: 0 10px;
    border-radius: 0 0 10px 10px;
    background: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
 
  .section-three {
    height: 265px;
    margin: 0 10px;
    border-radius: 0 0 10px 10px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
 
    .item {
      width: 100%;
      display: flex;
      justify-content: space-evenly;
    }
  }
}
 
:deep(.van-nav-bar__text) {
  font-size: 20px;
}
</style>