common/dataProductionDeviceType.js
@@ -58,4 +58,19 @@ } } 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 };