艺术家
2025-06-11 4b2e902503ac1fabde7340ca26a1adbc0018d118
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<template>
  <div class="Largescreen">
    <div
      style="
        display: flex;
        justify-content: center;
        color: #fff;
        font-size: 23rem;
        letter-spacing: 5rem;
        font-weight: bold;
      "
    >
      检13道
    </div>
    <div
      style="
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-size: 3rem;
        margin-top: 1rem;
      "
    >
      <div
        style="
          display: flex;
          justify-content: center;
          align-items: center;
          width: 50%;
          height: 3rem;
          background-color: #95f204;
          margin-top: 1rem;
          border-radius: 1.5rem;
        "
      ></div>
    </div>
 
    <div
      style="
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 20rem;
        color: #fff;
        font-weight: bold;
        margin-top: 5rem;
        font-size: 12rem;
      "
    >
      <span> CR400AF</span>
      <span>G7237</span>
    </div>
 
    <div
      style="
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 6%;
        padding-bottom: 10%;
        height: 60%;
        box-sizing: border-box;
        border-radius: 2rem;
        background-color: rgba(39, 136, 214, 0.5);
        box-shadow: 0px 0px 1rem 0rem rgba(18, 150, 219, 0.5);
      "
    >
      <div
        style="
          display: flex;
          width: 100%;
          justify-content: center;
          flex-direction: column;
          align-items: center;
          text-align: right;
          margin-top: 3rem;
        "
      >
        <div style="display: flex; flex-direction: column; width: 100%">
          <div
            style="
              height: 5rem;
              font-size: 7rem;
              font-weight: bold;
              display: flex;
              align-items: center;
              padding-left: 2rem;
              box-sizing: border-box;
            "
          >
            <img
              style="width: 6rem; height: 6rem"
              src="@/assets/imgs/下一个.png"
              alt=""
            />
            <div
              style="
                width: 30%;
                text-align: justify;
                text-justify: distribute-all-lines;
                text-align-last: justify;
                margin-left: 2rem;
                color: #fff;
              "
            >
              登顶人数
            </div>
          </div>
          <div
            style="
              margin-left: 2rem;
              display: flex;
              justify-content: space-around;
              align-items: center;
              margin-top: 5rem;
            "
          >
            <div
              style="
                width: 45%;
                font-size: 8rem;
                color: #fff;
                background-color: #058f66;
                border-radius: 1.5rem;
                padding: 0.5rem 1rem;
                text-align: center;
              "
            >
              已登记 <span>2人</span>
            </div>
            <div
              style="
                width: 45%;
                font-size: 8rem;
                color: #fff;
                background-color: #d9001b;
                border-radius: 1.5rem;
                padding: 0.5rem 1rem;
                text-align: center;
              "
            >
              已登顶 <span>2人</span>
            </div>
          </div>
        </div>
        <div
          style="
            color: #fff;
            font-size: 5rem;
            display: flex;
            width: 100%;
            justify-content: space-between;
            align-items: center;
            margin-top: 12rem;
            padding: 0 1rem;
          "
        >
          <div>
            <img
              style="width: 6rem; height: 6rem"
              src="@/assets/imgs/工单管理.png"
              alt=""
            />
            <span style="color: #fff; font-size: 7rem; font-weight: bold"
              >作业人员列表</span
            >
          </div>
          <div style="color: #fff; font-size: 4rem">
            正在作业人员数量:
            <span style="font-size: 4rem">{{ pageTotal }}</span
            >位
          </div>
        </div>
        <div style="width: 98%; margin-top: 2rem">
          <el-table
            empty-text="暂无数据"
            :data="tableData"
            style="width: 100%"
            height="400"
            :header-cell-style="{
              height: '1.61rem',
              color: '#fff',
              background: '#1860A8',
              fontSize: '2rem',
            }"
            :cell-style="{
              color: '#fff',
              background: 'rgba(23, 87, 149, 0.9)',
              fontSize: '2.5rem',
            }"
          >
            <el-table-column
              prop="userTrueName"
              label="姓名"
              align="center"
              min-width="1%"
            />
            <el-table-column
              prop="unit"
              label="单位"
              align="center"
              min-width="1%"
            />
            <el-table-column prop="userteam" label="班组" min-width="1%" />
            <el-table-column
              prop="maintenanceStatus"
              label="检修状态"
              align="center"
              min-width="1%"
            >
              <template #default="scope">
                <span v-if="scope.row.maintenanceStatus === 0">未开始</span>
                <span v-else-if="scope.row.maintenanceStatus === 1"
                  >进行中</span
                >
                <span v-else-if="scope.row.maintenanceStatus === 2"
                  >已结束</span
                ></template
              >
            </el-table-column>
            <el-table-column
              prop="maintenancStartTime"
              label="开始时间"
              align="center"
              min-width="2%"
            />
          </el-table>
        </div>
 
        <div
          style="
            position: absolute;
            bottom: 2%;
            color: #fff;
            font-weight: bold;
            font-size: 5rem;
          "
        >
          {{ currentTime }}
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
import { onMounted, reactive, ref, toRef, onUnmounted } from "vue";
import {
  PersonnelMonitoring,
  UpstreamInspectionRoad,
} from "@/api/newapi/Maintenance";
import { formatTime } from "@/utils/index";
 
const tableData = ref([]);
const pageTotal = ref(0);
const totalCount = ref(0);
//分页请求参数
const pageQuery = ref({
  page: 1, //当前页面
  rows: 1000, //每页显示条数
  order: "desc", //排序方式
  sort: "", //排序字段
  wheres: "", //条件查询
});
const obj = {
  selectType: "",
  inputcontent: "",
};
const queryForm = toRef({ ...obj });
const initData = () => {
  PersonnelMonitoring({
    pageIndex: pageQuery.value.page,
    pageSize: pageQuery.value.rows,
    searchKeyword: queryForm.value.inputcontent,
  }).then((res) => {
    tableData.value = res.data.items;
    pageTotal.value = res.data.totalCount;
    totalCount.value = res.data.items.filter(
      (v) => v.maintenanceStatus == 1
    ).length;
  });
};
const currentTime = ref("");
const timer = ref(null);
onMounted(async () => {
  clearInterval(timer.value);
  initData();
  //获取当前时间
  const date = new Date();
  timer.value = setInterval(() => {
    currentTime.value = formatTime(date, "yyyy-MM-dd hh:mm:ss");
    date.setSeconds(date.getSeconds() + 1);
  }, 1000);
  // await UpstreamInspectionRoad();
});
onUnmounted(() => {
  clearInterval(timer.value);
});
</script>
<style lang="scss" scoped>
.Largescreen {
  display: flex;
  flex-direction: column;
  // background-color: rgba($color: #000000, $alpha: 0.2);
  .shadow {
    box-shadow: 0px 0px 1rem 0.5rem rgb(18, 150, 219);
  }
}
:deep(.el-table__empty-block) {
  background-color: rgba(23, 87, 149, 0.9);
}
:deep(.el-scrollbar__wrap) {
  background-color: rgba(23, 87, 149, 0.9);
}
</style>