From c978996d3e0390c0050479be4684af895cfb72cd Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期二, 18 三月 2025 17:17:39 +0800
Subject: [PATCH] 1

---
 src/views/home/widgets/components/mdcRunning.vue |  110 ++++++++++++++++++++++++++----------------------------
 1 files changed, 53 insertions(+), 57 deletions(-)

diff --git a/src/views/home/widgets/components/mdcRunning.vue b/src/views/home/widgets/components/mdcRunning.vue
index 4211b6f..bdd6460 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@yxqiche.com
- * @LastEditTime: 2025-03-11 10:08:05
+ * @LastEditTime: 2025-03-14 15:07:08
  * @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
 -->
@@ -29,14 +29,14 @@
 							default-expand-all
 							size="small"
 							@change = "parentIdChange"
-						    v-model="search.workStationIdList"
-						    clearable
+							v-model="search.workStationIdList"
+							clearable
 							node-key="id"
-						    placeholder="涓婄骇鑿滃崟"
+							placeholder="涓婄骇鑿滃崟"
 							ref="parentTree"
-						    :data="parentData"
-						    :props="{ label: 'title' }"
-						    style="width:80%;"
+							:data="parentData"
+							:props="{ label: 'title' }"
+							style="width:80%;"
 							:default-checked-keys="selectedIds"
 							:render-after-expand="false" />
 					</div>
@@ -69,7 +69,7 @@
 	import * as ElementPlusIconsVue from '@element-plus/icons-vue'
 	let icons = []
 	for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
-	    icons.push(key)
+		icons.push(key)
 	}
 	export default {
 		title: "璁惧杩愯鏃堕暱鎺掑悕",
@@ -94,48 +94,48 @@
 					workStationIdList: []
 				},
 				cardData: {},
-				option: {  
+				option: {
 					grid: {
 						top: '0',
 						bottom: '0',
 						containLabel: true
 					},
-					yAxis: {  
-						type: 'category',  
-						data: [],  
-						axisLine: {  
-							show: false // 闅愯棌y杞磋酱绾�  
-						},  
-						axisTick: {  
-							show: false // 闅愯棌y杞村埢搴︾嚎  
+					yAxis: {
+						type: 'category',
+						data: [],
+						axisLine: {
+							show: false // 闅愯棌y杞磋酱绾�
 						},
-						splitLine: {  
-							show: false // 闅愯棌y杞寸綉鏍肩嚎  
+						axisTick: {
+							show: false // 闅愯棌y杞村埢搴︾嚎
+						},
+						splitLine: {
+							show: false // 闅愯棌y杞寸綉鏍肩嚎
 						}
-					},  
-					xAxis: {  
-						type: 'value',  
-						axisLabel: {  
-						show: false // 闅愯棌x杞存暟鎹爣绛�  
-						}  
-					},  
-					series: [  
-						{  
-						data: [],  
-						type: 'bar',  
-						label: {  
-							show: true, // 鏄剧ず鏍囩  
-							position: 'right', // 鏍囩浣嶇疆璁剧疆涓烘煴瀛愮殑鍙充晶  
-							formatter: function(params) {  
-							// 杩斿洖鏁版嵁鍊煎拰鎮ㄦ兂瑕佹坊鍔犵殑瀛楃涓茬殑缁勫悎  
-							return params.value + 'h'; // 渚嬪锛岃繑鍥� '3.96 鏂囧瓧'  
-							}  
+					},
+					xAxis: {
+						type: 'value',
+						axisLabel: {
+						show: false // 闅愯棌x杞存暟鎹爣绛�
+						}
+					},
+					series: [
+						{
+						data: [],
+						type: 'bar',
+						label: {
+							show: true, // 鏄剧ず鏍囩
+							position: 'right', // 鏍囩浣嶇疆璁剧疆涓烘煴瀛愮殑鍙充晶
+							formatter: function(params) {
+							// 杩斿洖鏁版嵁鍊煎拰鎮ㄦ兂瑕佹坊鍔犵殑瀛楃涓茬殑缁勫悎
+							return params.value + 'h'; // 渚嬪锛岃繑鍥� '3.96 鏂囧瓧'
+							}
 						},
 						itemStyle: {
 							color: '#5CBF7D'
 						}
-						}  
-					]  
+						}
+					]
 					},
 			}
 		},
@@ -191,20 +191,18 @@
 				return newData
 			},
 			extractLastLevelIds(items, result = []) {  //閫掑綊鑾峰彇children鏈�鍚庝竴绾х殑id鐨勬暟缁�
-			  items.forEach(item => {  
-			    // 濡傛灉褰撳墠椤规湁id灞炴�т笖娌℃湁children鎴朿hildren涓虹┖鏁扮粍  
-			    if (item.id && (!item.children || item.children.length === 0)) {  
-			      result.push(item.id);  
-			    }  
-			  
-			    // 濡傛灉褰撳墠椤规湁children灞炴�т笖鏄暟缁勶紝鍒欓�掑綊璋冪敤collectIds  
-			    if (Array.isArray(item.children)) {  
-			      this.extractLastLevelIds(item.children, result);  
-			    }  
-			  });  
-			  
-			  // 杩斿洖鏀堕泦鍒扮殑id鏁扮粍  
-			  return result;  
+				items.forEach(item => {
+					// 濡傛灉褰撳墠椤规湁id灞炴�т笖娌℃湁children鎴朿hildren涓虹┖鏁扮粍
+					if (item.id && (!item.children || item.children.length === 0)) {
+						result.push(item.id);
+					}
+					// 濡傛灉褰撳墠椤规湁children灞炴�т笖鏄暟缁勶紝鍒欓�掑綊璋冪敤collectIds
+					if (Array.isArray(item.children)) {
+						this.extractLastLevelIds(item.children, result);
+					}
+				});
+				// 杩斿洖鏀堕泦鍒扮殑id鏁扮粍
+				return result;
 			},
 			getParentData() {
 				this.$HTTP.post('/api/smis/group/groupWorkstation/type', {
@@ -258,9 +256,7 @@
 					}
 				})
 			},
-			goPage(item) {
-				
-			}
+			goPage(item) {}
 		}
 	}
 </script>
@@ -283,7 +279,7 @@
 	}
 	.no-list {
 		display: flex;
-    	justify-content: center;
+		justify-content: center;
 		font-weight: 500;
 		font-size: 14px;
 		color: #666;

--
Gitblit v1.9.3