From fcb6eb2c02f00b0da864a8915af2afcb285a63a8 Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期二, 16 一月 2024 20:29:59 +0800 Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/mdc-front --- src/mixins/index.js | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/src/mixins/index.js b/src/mixins/index.js index 0ce398e..acbfad1 100644 --- a/src/mixins/index.js +++ b/src/mixins/index.js @@ -1,7 +1,7 @@ /* * @Date: 2024-01-07 22:18:41 * @LastEditors: Sneed - * @LastEditTime: 2024-01-16 01:02:46 + * @LastEditTime: 2024-01-16 01:10:15 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/mixins/index.js */ import { getUseDpts, getRequest } from '@/api/Api' @@ -11,6 +11,18 @@ deviceList: [], //寰呴�夎澶� deviceId: [], plantDeviceList: [], + info: { + runRate: '', + cutRate: '', + alarmRate: '', + threeShiftRate: '', + twoShiftRate: '', + run: '', + alarm: '', + stop: '', + idle: '', + }, + } }, watch: { @@ -25,6 +37,17 @@ machineName: item.machineName } }) || [] + this.info = { + runRate: res.data.runRate, + cutRate: res.data.cutRate, + alarmRate: res.data.alarmRate, + threeShiftRate: res.data.threeShiftRate, + twoShiftRate: res.data.twoShiftRate, + run: res.data.run, + alarm: res.data.alarm, + stop: res.data.stop, + idle: res.data.idle + } }) } } -- Gitblit v1.9.3