From 3f846916e15a5afae5c729a105d4e23f6d64f3d8 Mon Sep 17 00:00:00 2001
From: suixy <2277317060@qq.com>
Date: Wed, 7 Jan 2026 14:05:49 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=BE=E5=A4=87=E4=BF=A1?=
=?UTF-8?q?=E6=81=AF=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/board/board1/index.vue | 60 ++++++++++++++++++++------------
1 file changed, 37 insertions(+), 23 deletions(-)
diff --git a/src/views/board/board1/index.vue b/src/views/board/board1/index.vue
index 40597cc..80985d8 100644
--- a/src/views/board/board1/index.vue
+++ b/src/views/board/board1/index.vue
@@ -6,30 +6,30 @@
设备数量
:
- {{ deviceData.TOTALCOUNT }}
+ {{ runningData.TOTALCOUNT }}
台
开机率
:
- {{ deviceData.runningRate }}
+ {{ runningData.runningRate }}
运行
:
- {{ deviceData.RUNNINGCOUNT }}
+ {{ runningData.RUNNINGCOUNT }}
台
停机
:
- {{ deviceData.STOPPEDCOUNT }}
+ {{ runningData.STOPPEDCOUNT }}
台
待机
:
- {{ deviceData.STANDBYCOUNT }}
+ {{ runningData.STANDBYCOUNT }}
台
@@ -41,31 +41,31 @@
未开机
:
- {{ deviceData.NOTSTARTEDCOUNT }}
+ {{ runningData.NOTSTARTEDCOUNT }}
台
-
-
AE-MD-S10
+
+
{{ i.DEVICENAME }}
-
停机
-
待机
-
正常运行
-
待料
-
-
6
+
停机
+
待机
+
正常运行
+
未开机
+
+ {{ timeData[i.DEVICECODE] || '0' }}
min
-
-
6
+
+ {{ timeData[i.DEVICECODE] || '0' }}
min
-
-
6
+
+ {{ timeData[i.DEVICECODE] || '0' }}
min
-
-
6
+
+ {{ timeData[i.DEVICECODE] || '0' }}
min
待机时长
@@ -84,7 +84,7 @@
import Chart from "@/components/board/Chart.vue";
import * as echarts from "echarts";
-import {getDeviceStatusStatistics} from "@/api/baseDeviceParamVal/val";
+import {getDeviceStartTimeList, getDeviceStatusList, getDeviceStatusStatistics} from "@/api/baseDeviceParamVal/val";
let timer = null
@@ -96,7 +96,9 @@ export default {
name: "Liner",
data() {
return {
- deviceData: {}
+ runningData: {},
+ deviceData: [],
+ timeData: {}
}
},
mounted() {
@@ -242,8 +244,20 @@ export default {
methods: {
getData() {
getDeviceStatusStatistics().then(e => {
- this.deviceData = e.data
+ this.runningData = e.data
})
+ setTimeout(() => {
+ getDeviceStatusList().then(res => {
+ this.deviceData = res.data
+ })
+ }, 1000)
+ setTimeout(() => {
+ getDeviceStartTimeList().then(res => {
+ res.data.forEach(e => {
+ this.timeData[e.DEVICECODE] = e.STARTTIME / 60
+ })
+ })
+ }, 2000)
}
},
computed: {