From 3dc041ae9759bf1befc1d8d95d27dcf790c69439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Thu, 10 Oct 2024 09:38:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=87=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/mork2.js | 2 +- src/pages/modules/home/right/right.vue | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/config/mork2.js b/src/config/mork2.js index 40aecc1..5f11a6a 100644 --- a/src/config/mork2.js +++ b/src/config/mork2.js @@ -283,7 +283,7 @@ export const homepageDataLeft = () => { */ export const homepageDataRight = () => { let res = { - 'capacityRate': [{'device_name': '混料设备', 'numerical': '60'}, {'device_name': '压制设备', 'numerical': '60'}, {'device_name': '压制设备2', 'numerical': '60'}, {'device_name': '压制设备3', 'numerical': '60'}], + 'capacityRate': [{'device_name': '混料设备', 'numerical': '60'}, {'device_name': '压制设备', 'numerical': '60'}, {'device_name': '干燥设备', 'numerical': '60'}, {'device_name': '包装设备', 'numerical': '60'}], 'stateStatistics': { count: '20', fourState: [{'status': '5', 'stateName': '正常运行'}, {'status': '5', 'stateName': '暂未生产'}, {'status': '5', 'stateName': '空闲设备'}, {'status': '5', 'stateName': '故障设备'}] diff --git a/src/pages/modules/home/right/right.vue b/src/pages/modules/home/right/right.vue index d665733..ce2fb70 100644 --- a/src/pages/modules/home/right/right.vue +++ b/src/pages/modules/home/right/right.vue @@ -153,6 +153,11 @@ export default { let res = await homepageDataRight() clearInterval(this.chart7Timer) clearInterval(this.chart9Timer) + // 假数据start + res.capacityRate[2].numerical = 50 + res.stateStatistics.count = '40' + res.stateStatistics.fourState = [{'status': '37', 'stateName': '正常运行'}, {'status': '2', 'stateName': '暂未生产'}, {'status': '1', 'stateName': '空闲设备'}, {'status': '0', 'stateName': '故障设备'}] + // 假数据end this.capacityRate = [...res.capacityRate] res.stateStatistics.fourState.map(el => { let rate = Number(el.status) * 100 / Number(res.stateStatistics.count)