From 9fe29d060ff1b2259648e77305fca3eb6baed29b Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期六, 19 十月 2024 20:58:05 +0800
Subject: [PATCH] update
---
src/views/home/widgets/components/mdcRunning.vue | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/views/home/widgets/components/mdcRunning.vue b/src/views/home/widgets/components/mdcRunning.vue
index 8fe21e8..609e177 100644
--- a/src/views/home/widgets/components/mdcRunning.vue
+++ b/src/views/home/widgets/components/mdcRunning.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:54:33
+ * @LastEditTime: 2024-10-10 10:08:58
* @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>
@@ -76,6 +77,7 @@
description: "蹇�熸煡鐪嬭澶囪繍琛屾椂闀挎帓鍚�",
data() {
return {
+ selectedIds: [],
parentData: {},
list: [],
timeLevelList: [],
@@ -119,7 +121,7 @@
},
series: [
{
- data: [3.96, 3.95, 3.93, 3.91, 3.91, 3.9, 3.85],
+ data: [],
type: 'bar',
label: {
show: true, // 鏄剧ず鏍囩
@@ -128,7 +130,10 @@
// 杩斿洖鏁版嵁鍊煎拰鎮ㄦ兂瑕佹坊鍔犵殑瀛楃涓茬殑缁勫悎
return params.value + 'h'; // 渚嬪锛岃繑鍥� '3.96 鏂囧瓧'
}
- }
+ },
+ itemStyle: {
+ color: '#5CBF7D'
+ }
}
]
},
@@ -211,6 +216,8 @@
if(item.cardKey == "mdcRunning") {
if(item.apiResource == "") return;
this.apiResource = JSON.parse(item.apiResource);
+ this.selectedIds = this.apiResource.workStationIdList;
+ this.search.workStationIdList = this.apiResource.workStationIdList;
this.timeLevel = this.apiResource.timeLevel;
this.top = this.apiResource.top;
if(this.apiResource.workStationIdList.length > 0) {
@@ -226,7 +233,7 @@
var recordDom = document.getElementById('running');
if(res.data.categories.length == 0) return;
this.option.yAxis.data = res.data.categories;
- this.option.series.data = res.data.series;
+ this.option.series[0].data = res.data.series[0].data;
var myChart = echarts.init(recordDom);
myChart.setOption(this.option);
}
--
Gitblit v1.9.3