common/dataProductionDeviceType.js
@@ -54,8 +54,23 @@ case '6': return vocDeviceType; default: return dustDeviceTypebreak; return dustDeviceType; } } export { productionDevices }; function toLabel(sceneType, valueArr) { const labelArr = []; let options = productionDevices(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 { productionDevices, toLabel };