riku
2024-08-13 1a0e4972f80278bfa9e53283374b745b6c968341
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 };