From 5036880fc037e5d112206b93a729f60be12bf8ab Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 07 十一月 2024 17:03:13 +0800
Subject: [PATCH] 2024.11.07 bug修复

---
 common/dataProductionDeviceType.js |   39 +++++++++++++++------------------------
 1 files changed, 15 insertions(+), 24 deletions(-)

diff --git a/common/dataProductionDeviceType.js b/common/dataProductionDeviceType.js
index abaac5b..856e2f3 100644
--- a/common/dataProductionDeviceType.js
+++ b/common/dataProductionDeviceType.js
@@ -3,10 +3,11 @@
     label: '闈為亾',
     value: '1',
     children: [
-      {
-        label: '鎸栨帢鏈�',
-        value: '1',
-      },
+      { label: '鎸栨帢鏈�', value: '1' },
+      { label: '鍙夎溅', value: '2' },
+      { label: '灞ュ甫鍚�', value: '3' },
+      { label: '閾茶溅', value: '4' },
+      { label: '鍙戝姩鏈�', value: '5' },
     ],
   },
 ];
@@ -15,12 +16,7 @@
   {
     label: '鍘ㄥ叿',
     value: '1',
-    children: [
-      {
-        label: '鍘ㄥ叿',
-        value: '1',
-      },
-    ],
+    children: [{ label: '鍘ㄥ叿', value: '1' }],
   },
 ];
 
@@ -28,30 +24,25 @@
   {
     label: 'VOC',
     value: '1',
-    children: [
-      {
-        label: 'VOC',
-        value: '1',
-      },
-    ],
+    children: [{ label: 'VOC', value: '1' }],
   },
 ];
 
 // 鐢熶骇璁惧绫诲瀷
 function productionDevices(sceneType) {
-  switch (sceneType) {
+  switch (parseInt(sceneType)) {
     // 宸ュ湴,鐮佸ご,鎼呮媽绔�,鍫嗗満
-    case '1':
-    case '2':
-    case '3':
-    case '14':
+    case 1:
+    case 2:
+    case 3:
+    case 14:
       return dustDeviceType;
     // 椁愰ギ
-    case '5':
+    case 5:
       return fumeDeviceType;
     // 宸ヤ笟浼佷笟,姹戒慨
-    case '4':
-    case '6':
+    case 4:
+    case 6:
       return vocDeviceType;
     default:
       return dustDeviceType;

--
Gitblit v1.9.3