From cf693a5227f17bbf2201512128d267281a8c5695 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期二, 13 八月 2024 23:49:20 +0800
Subject: [PATCH] 设备信息模块
---
common/dataTreatmentDeviceType.js | 47 +++++++++++++++++++++++------------------------
1 files changed, 23 insertions(+), 24 deletions(-)
diff --git a/common/dataTreatmentDeviceType.js b/common/dataTreatmentDeviceType.js
index c518f8f..7b4e081 100644
--- a/common/dataTreatmentDeviceType.js
+++ b/common/dataTreatmentDeviceType.js
@@ -3,10 +3,19 @@
label: '鎶�闃�',
value: '1',
children: [
- {
- label: '闆剧偖杞�',
- value: '1',
- },
+ { label: '鐜繚娲掓按杞︼紙澶у瀷闈炵數鍔級', value: '1' },
+ { label: '鐢靛姩闆剧偖杞�', value: '2' },
+ { label: '鐢靛姩娲掓按杞︼紙灏忓瀷锛�', value: '3' },
+ { label: '闆剧偖杞︼紙鍥哄畾鎴栬疆寮忥級', value: '4' },
+ { label: '鑷姩鍐叉礂瑁呯疆锛堝皝闂紡锛�', value: '5' },
+ { label: '楂樻晥娲楄疆鏈�', value: '6' },
+ { label: '楂樺帇姘存灙', value: '7' },
+ { label: '鏅�氭按绠℃垨娑堥槻鏍�', value: '8' },
+ { label: '濉斿悐鍠锋穻', value: '9' },
+ { label: '鍥村鍠锋穻', value: '10' },
+ { label: '鎵皹鐩戞祴涓庡柗娣嬭仈鍔�', value: '11' },
+ { label: '鍫嗗満鍠锋穻', value: '12' },
+ { label: '鐢熶骇鍖哄柗娣�', value: '13' },
],
},
];
@@ -15,12 +24,7 @@
{
label: '鍑�鍖�',
value: '1',
- children: [
- {
- label: '娌圭儫鍑�鍖�',
- value: '1',
- },
- ],
+ children: [{ label: '娌圭儫鍑�鍖�', value: '1' }],
},
];
@@ -28,30 +32,25 @@
{
label: '鍑�鍖�',
value: '1',
- children: [
- {
- label: '鍥哄簾鍑�鍖�',
- value: '1',
- },
- ],
+ children: [{ label: '鍥哄簾鍑�鍖�', value: '1' }],
},
];
// 娌荤悊璁惧绫诲瀷
function treatmentDevices(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