From a09f0991bab9791e0c4911dbe4077579bc7016f4 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期三, 09 十月 2024 23:31:47 +0800
Subject: [PATCH] update
---
src/views/home/widgets/components/mdcEquipmentRun.vue | 23 +++++++++++++++--------
1 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/src/views/home/widgets/components/mdcEquipmentRun.vue b/src/views/home/widgets/components/mdcEquipmentRun.vue
index 994da5f..f3a3661 100644
--- a/src/views/home/widgets/components/mdcEquipmentRun.vue
+++ b/src/views/home/widgets/components/mdcEquipmentRun.vue
@@ -2,7 +2,7 @@
* @Author: lzhe lzhe@example.com
* @Date: 2024-04-16 15:22:46
* @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-06-21 09:55:24
+ * @LastEditTime: 2024-06-24 22:33:49
* @FilePath: /CPSnew/smart-web/src/views/home/widgets/components/mdcDeviceStatus.vue
* @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -37,6 +37,7 @@
:data="parentData"
:props="{ label: 'title' }"
style="width:80%;"
+ :default-checked-keys="selectedIds"
:render-after-expand="false" />
</div>
<div>
@@ -80,6 +81,7 @@
parentData: {},
list: [],
timeLevelList: [],
+ selectedIds: [],
topList: [],
search: {
workStationIdList: [],
@@ -87,8 +89,8 @@
top: ""
},
isSearch: false,
- timeLevel: "",
- top: "",
+ timeLevel: "24",
+ top: "5",
apiResource: {
workStationIdList: []
},
@@ -155,7 +157,7 @@
},
serchSubmit() {
this.apiResource = this.search;
- this.getRunData();
+ this.getRunData('search');
},
setCurrentKey(v) {
if (this.firstWorkKey) return
@@ -214,8 +216,15 @@
}
})
},
- getRunData() {
- var ids = this.extractLastLevelIds(this.parentData);
+ getRunData(type) {
+ this.isSearch = false;
+ if(type != "search") {
+ var ids = this.extractLastLevelIds(this.parentData);
+ this.selectedIds = ids;
+ this.search.workStationIdList = ids;
+ }else {
+ var ids = this.search.workStationIdList;
+ }
var obj = {
timeLevel: 24,
top: 7,
@@ -223,9 +232,7 @@
}
this.$HTTP.post(`/api/blade-visual/status/oee-top`,obj).then(res=> {
if(res.code == 200) {
- this.isSearch = false;
var recordDom = document.getElementById('equipment');
- if(res.data.categories.length == 0) return;
this.option.yAxis.data = res.data.categories;
this.option.series[0].data = res.data.series[0].data;
this.oeeTitle = res.data.series[0].name;
--
Gitblit v1.9.3