common/dataTreatmentDeviceType.js
@@ -54,8 +54,23 @@ case '6': return vocDeviceType; default: return dustDeviceTypebreak; return dustDeviceType; } } export { treatmentDevices }; function toLabel(sceneType, valueArr) { const labelArr = []; let options = treatmentDevices(sceneType); valueArr.forEach(v => { if (options) { const op = options.find(o => { return o.value == v; }); labelArr.push(op.label); options = options.children; } }); return labelArr; } export { treatmentDevices, toLabel };